尝试调试空应用程序时收到"'Resource.Attribute‘不包含’actionBarSize‘的定义“错误。我已经重新安装了android SDK。
public static void UpdateIdValues()
{
global::Xamarin.Forms.Platform.Android.Resource.Attribute.actionBarSize = global::L1NQ.Droid.Resource.Attribute.actionBarSize;
}
public partial class A
我需要在dimens资源文件夹中有actionbar大小,我需要有不同的api版本不同的大小。
我尝试过这些代码,但都遇到了错误:
?android:attr/actionBarSize
?attr/actionBarSize
?actionBarSize
当我启动这个应用程序时,我得到这个错误:
You must supply a layout_height attribute.
如何在资源文件夹中放置actionbar大小?
我需要得到操作栏的宽度我见过很多东西才能得到高度,但不能得到宽度?有人能帮上忙吗?代码见下文:
if(Build.VERSION.SDK_INT >= 11.0){
TypedValue tv = new TypedValue();
((Activity) context).getTheme().obtainStyledAttributes(
new int[] { android.R.attr.actio
在与android和HoloEverywhere+ActionBarSherlock吵了几个小时之后,我终于把一切都安排好了;在android中找到了全息教室。但是,在对我的项目进行“生成”或“编译”时,我会得到以下错误:
Gradle: Error retrieving parent for item: No resource found that matches the given name 'Holo.Theme'.
Gradle: No resource found that matches the given name: attr 'actionBarSize