草庐IT

xp-theme

全部标签

android - 为 DatePicker 自定义样式 Theme.Holo.Light.Dialog.MinWidth

我正在使用datePicker输入日期。@android:dimen/dialog_min_width_major@android:dimen/dialog_min_width_minor在Activity.java中publicvoidshowDatePickerDialog(Viewv){DialogFragmentnewFragment=newLogin.DatePickerFragment();newFragment.show(getSupportFragmentManager(),"datePicker");}publicstaticclassDatePickerFragme

Android 搜索对话框和建议 ListView : Change theme and colours

我已经实现了一个简单的搜索对话框,它根据此处的指南(通过自定义提供程序)在我的应用程序中执行数据的自定义搜索:http://developer.android.com/guide/topics/search/search-dialog.html问题是搜索栏的颜色和大小(超过操作栏的高度等)在我的应用程序设计中不起作用。我知道如何在我的styles.xml文件中创建主题,但我不知道如何定位Android搜索对话框和建议ListView。有谁知道我该怎么做? 最佳答案 在这个问题上花费了13个小时后,由于某种原因证明这是不可能的。具有视

android - 我的风格有什么问题?无法解析符号 Theme.AppCompat.Light.NoActionBar

目前,我的styles.xml文件显示不正确。Theme.AppCompat.Light.NoActionBar无法解析。我已经重启了androidstudio但它仍然无法正常工作。我尝试了使缓存无效/重新启动,但它不起作用。它不会让我的应用程序崩溃,但它为什么会发生。看下图:这是我的build.gradle文件importorg.apache.tools.ant.taskdefs.condition.Osapplyplugin:'com.android.application'applyplugin:'com.google.gms.google-services'android{co

android - 是什么导致android异常 "You need to use a Theme.AppCompat theme (or descendant) with this activity."

我正在尝试在Android中试用新的MaterialTheme。我目前被这个异常困住了03-0609:35:50.177:D/AndroidRuntime(30607):ShuttingdownVM03-0609:35:50.178:E/AndroidRuntime(30607):FATALEXCEPTION:main03-0609:35:50.178:E/AndroidRuntime(30607):Process:com.example.vivz,PID:3060703-0609:35:50.178:E/AndroidRuntime(30607):java.lang.RuntimeE

android - list 合并失败 : Attribute application@theme

我正在尝试使用thisProgressWheellibrery,但在运行项目后我遇到了这个错误。Error:Executionfailedfortask':app:processDebugManifest'.Manifestmergerfailed:Attributeapplication@themevalue=(@style/AppTheme)fromAndroidManifest.xml:11:9-40isalsopresentat[com.github.Todd-Davies:ProgressWheel:1.2]AndroidManifest.xml:13:9-56value=(

java.lang.IllegalStateException : You need to use a Theme. AppCompat 主题(或后代)与此 Activity

我在尝试运行我的android应用程序时遇到此错误。奇怪的是:只有在使用Jenkins构建(并签名)android应用程序时才会发生这种情况。当我使用eclipse中的本地apk文件并将其推送到我的设备(或模拟器)时,一切正常有什么想法吗?编辑:AndroidManifest.xml还有themes.xml文件:@style/MyActionBar@drawable/ic_up_arrowtrue@android:color/white@null@style/MyActionBar@drawable/ic_up_arrow@color/my_highlight@color/my_hig

android - 在 Android 源代码中哪里可以找到 styles.xml 和 themes.xml?

我指的是两个链接here已损坏:“Android样式(styles.xml)”和“Android主题(themes.xml)”我在哪里可以找到这些资源?我知道Android源代码isclonedtogithub但我不知道去哪里找。具体来说,我想要这些的蜂窝(或IceCreamSandwich)版本,这样我就可以看到一些Holo主题是如何定义的。 最佳答案 确保您的开发机器具有HC/ICSSDK。然后你就可以在你的机器上找到这些文件了。例如,对于Android4.0,这些文件位于\platforms\android-14\data\r

android - 为什么我会收到 "Error Retrieving parent for item: No resource found that matches the given name ' @android :style/Theme. Dialog.Alert'”?

在我的项目属性中,我有Android2.2,团队中的另一个人能够很好地构建。我在res->values下的themes.xml文件中收到错误ErrorRetrievingparentforitem:Noresourcefoundthatmatchesthegivenname'@android:style/Theme.Dialog.Alert'.因此我无法构建我的项目。这是一个正确的项目,我从SVN存储库获取并导入到Eclipse中。@style/DA.TextView 最佳答案 我遇到了同样的问题。尝试增加list文件中的min-s

Android ADT Eclipse (Juno) 如何应用Dark UI Theme?

您好,我下载了AndroidADT(Eclipse)我找到了这个主题:https://github.com/rogerdudler/eclipse-ui-themes提供的说明如下:下载ZIP包并将其解压到您的eclipsedropins文件夹中:https://github.com/downloads/rogerdudler/eclipse-ui-themes/com.github.eclipsecolortheme.themes_1.0.0.201207121019.zip重新启动Eclipse并转到Preferences>General>Appearance并选择DarkJuno

android - 如何修改 Theme.Holo.Light.Dialog 以占用更少的屏幕空间?

我的应用目前使用的是HoloLight主题,但我添加了自定义项的地方除外。这基本上没问题,但我在设置对话框样式时遇到了困难。全息主题有我想要的颜色,但Theme.Dialog更紧凑,即它在屏幕上占用的空间更少,这也是我想要的。当我使用Holo主题时,具有以下自定义@style/general_button_style@color/my_blue看起来像这样:当我将对话框恢复为非全息主题时@style/general_button_style@color/my_blue显示如下:我需要更改什么才能使用全息主题,但要让它占用更少的屏幕空间? 最佳答案