jjzjj

Appcompat

全部标签

android - 在 android 支持库中哪里可以找到 AppCompat.getReferrer()

我在哪里可以找到ActivityCompat.getReferrer()的android支持库?这个功能?我以为会在我的build.gradle看起来像这样:编译'com.android.support:support-v4:24.0.1'但它不起作用。dependencies{compilefileTree(include:['*.jar'],dir:'libs')//Googlecompile'com.android.support:appcompat-v7:24.2.1'compile'com.android.support:design:24.2.1'compile'com.a

android - 检索项目 : No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' . 的父项时出错 visual studio xamarin

嗯,它给了我9style.xml错误,说Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Theme.AppCompat.Light.DarkActionBar'ErrorNoresourcefoundthatmatchesthegivenname:attr'windowNoTitle'.就像我正在使用带有xamarin的visualstudio@drawable/splashscreentruefalsetruefalse#a84849#444#a84849true@style/AppCompatD

android - 链接引用失败 - 在 appcompat 中找不到样式属性 '@android:attr/textColor'

我正在尝试从我们的项目中删除即将删除的选项android.enableAapt2=false。这很痛苦,但我希望我能到达那里。现在我遇到了BuildException:Failedtoprocessresources,seeaaptoutputabovefordetails。问题似乎是这样的:error:styleattribute'@android:attr/textColor'notfound.Message{kind=ERROR,text=error:styleattribute'@android:attr/textColor'notfound.,sources=[/Users/

android - 布局高度 AppCompat 非全屏

AppCompat有什么问题?我的应用程序不使用AppCompat,XML布局也没有问题但是在我使用AppCompat之后,为什么屏幕上的XML布局不完整?我尝试创建一个新的XML布局,但结果是一样的。 最佳答案 将此主题添加到您的Activity在style.xml中truefalsetrue@null并在AndroidManifest中为您的Activity定义此样式:默认情况下,使用它会删除toolbar的额外空间。 关于android-布局高度AppCompat非全屏,我们在St

android - 如何获得有关 Android appcompat 或支持库更新的通知?

我想知道是否有办法获得有关GoogleAndroid库更新的通知,例如com.android.support:support-v4、com.android.support:appcompat-v7等等。我知道我可以在我的gradle构建中使用compile"com.android.support:support-v4:18.0.+"和+。但是如果能收到一封电子邮件或一个RSS提要,其中包含所有不同的android库的新版本,那将是很好的。这对保持依赖关系最新并将我的应用程序的新版本发布到Play商店有很大帮助。编辑:我找到了这个网址https://dl.google.com/andro

android - 将 Theme.Material.Light.DarkActionBar 与 Theme.AppCompat.Light.DarkActionBar 一起使用会使 android L(api v21) 上的应用程序崩溃

这是我的资源的样子res/values/styles.xml@color/colorPrimary@color/colorPrimaryDarktruetrue就像它说的hereres/values-v21/styles.xmlAndroidManifest.xml有在我的MainActivity.java中,我继承自ActionBarActivitypublicclassMainActivityextendsActionBarActivity{.......}现在,当我在KitKat(API19)上运行该应用程序时,该应用程序运行并且我看到DarkAction栏和Material设计

android - 切换到 API21 AppCompat 后缺少 ActionBar

在处理BigNerdRanch的CriminalIntent项目时,当我将我的AppCompat库从API19更新到API21时,我丢失了ActionBar。我试过改变主题,但找不到获取ActionBar的方法。完整的源代码可用here.AndroidManifest.xmlstyle.xml谢谢。 最佳答案 要使用appcompat-v7,您必须继承ActionBarActivity。CrimeListActivity继承自SingleFragmentActivity,后者又继承自FragmentActivity,而不是Actio

android - 使用 android.support.v7.app.AlertDialog 自定义默认的 Theme.AppCompat.Dialog.Alert

我最近将应用中的AlertDialog实例切换为使用android.support.v7.app.AlertDialog,但在应用自定义主题时遇到了问题,并且警报对话框的样式。在我的styles.xml中,我有以下样式:@color/theme_accent_1@color/theme_component_background@color/theme_component_background在我的themes.xml中,我根据需要在我的主题中设置了以下内容:@style/AlertDialog由于某些原因,自定义样式从未应用于AlertDialog实例,它们仍然是默认的Theme.Ap

android - 使用 Appcompat 在 pre-Lollipop 上错误的 Button textColor 和 drawablePadding

我在Lollipop之前的设备上有错误的按钮样式。使用appcompat库编译。compile'com.android.support:appcompat-v7:23.0.1'值/styles.xml@android:color/holo_orange_light@android:color/holo_orange_dark@android:color/holo_green_light@android:color/holo_purple@android:color/holo_red_light@android:color/holo_green_light@style/ButtonThe

Android Studio Gradle Project Sync - 无法解决 Espresso-Core 和 Appcompat

我正在学习位于https://developer.android.com/training/basics/firstapp/index.html的“第一个应用程序”教程.但是,在创建默认的“空Activity”项目并尝试构建它时,我收到以下错误:Error:(23,24)Failedtoresolve:com.android.support.test:espresso-core:2.2.2Error:(26,13)Failedtoresolve:com.android.support:appcompat-v7:26.+我的(默认/自动生成的)build.gradle:applyplug