android-appcompat

Android appCompat issue with samsung and wiko

家住魔仙堡 提交于 2019-12-21 18:01:46
问题 currently I have a little problem with my application, everything works fine on most devices but on some samsung and wiko I get this error : java.lang.NoClassDefFoundError: android.support.v7.internal.view.menu.MenuBuilder I saw some answers on the internet where they said to add the line below in the proguard file, in my case this doesn't work -keep class !android.support.v7.internal.view.menu.**, ** { *; } My app is compound of 2 modules(so I have 2 proguard file), 1module is for the main

Change toolbar back arrow color

ε祈祈猫儿з 提交于 2019-12-21 17:49:10
问题 Hi. In the picture above you can see a back arrow and a (part of) title. I changed the title color using the attached .xml code. But I want to color the back arrow to white too. I read some answer on the internet, but they look too complicated for such a simple question. Is the any simple why to do it? <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="fill_parent" android:layout_height="?attr/actionBarSize" android:background="@color/colorPrimary" android

appcompat-v7:28.0.0-rc01 Build Issue

早过忘川 提交于 2019-12-21 17:10:27
问题 I am trying to create my new Kotlin project, I have updated my Android Studio to 3.1.4 and my Gradle to 4.9 and my SDK to 28 (Repository is installed too). so I get this error on my appcompat all the time. I even changed it to alpha1 but still nothing happens. inside my Gradle I have implementation 'com.android.support:appcompat-v7:28.0.0-rc01' and my log is: org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures. at Caused by: org.gradle.api.resources.ResourceException:

ActionBar with AppCompat actionBarItemBackground not working

折月煮酒 提交于 2019-12-21 12:28:51
问题 I am trying to change the color of an item when it pressed. I used the actionBarItemBackground item in the action bar style, but nothing happens.. The color not changed... Here my code: <style name="ActionBarStyle" parent="@style/Widget.AppCompat.ActionBar.Solid"> <item name="android:background">@color/actionbar_background</item> <item name="titleTextStyle">@style/ActionBarStyle.Title</item> <item name="actionBarItemBackground">@drawable/action_bar_item_selector</item> <item name="android

ActionBar with AppCompat actionBarItemBackground not working

我们两清 提交于 2019-12-21 12:26:34
问题 I am trying to change the color of an item when it pressed. I used the actionBarItemBackground item in the action bar style, but nothing happens.. The color not changed... Here my code: <style name="ActionBarStyle" parent="@style/Widget.AppCompat.ActionBar.Solid"> <item name="android:background">@color/actionbar_background</item> <item name="titleTextStyle">@style/ActionBarStyle.Title</item> <item name="actionBarItemBackground">@drawable/action_bar_item_selector</item> <item name="android

Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse

可紊 提交于 2019-12-21 08:24:09
问题 I'm creating an Android app in Android Studio. When I open the layout editor, I see that gray "popup window" on top of the layout, which says that it Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse. This happens when I change the "rendering version" to API 15 ( Android 4.0.3 ). It worked a minute ago, but when I switched back to the layout, I just got this error. Edit: I use the AppCompat library. The theme is defined like this <style name="AppTheme" parent="Base.Theme

Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse

时光毁灭记忆、已成空白 提交于 2019-12-21 08:22:04
问题 I'm creating an Android app in Android Studio. When I open the layout editor, I see that gray "popup window" on top of the layout, which says that it Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse. This happens when I change the "rendering version" to API 15 ( Android 4.0.3 ). It worked a minute ago, but when I switched back to the layout, I just got this error. Edit: I use the AppCompat library. The theme is defined like this <style name="AppTheme" parent="Base.Theme

Android colorControlNormal xml attributes doesn't work pre-Lollipop

只谈情不闲聊 提交于 2019-12-21 07:31:31
问题 I've been trying to change the color of the EditText line on the bottom, but my EditText still doesn't wanna change the color, but it's using the style from Material . I've tried to change the color following these answer: link So I have an EditText with the Material form but not the colors I've set. I've put appcompat-v7 in my Gradle config file, and it's already working for the color primary. <style name="AppBaseTheme.MiddleTheme.Widget.EditText" parent="Theme.AppCompat.Light"> <item name=

Is it possible to have a action bar menu using the appcompat library?

╄→尐↘猪︶ㄣ 提交于 2019-12-21 05:15:16
问题 recently I've switched from the regular action bar implementation to the recently released appcompat implementation. My app made heavy use of the action bar to provide functionality. Since switching, on older spots APIs (less than 11) don't have any menu items. And newer APIs do, but they don't show the image like configured (if room|withText). Has anyone else experienced this or came up with any solutions? 回答1: I found out what was up, when using the appcompat library. You can create your

Android: App Compat Theme - Dialog When Large

隐身守侯 提交于 2019-12-21 04:10:58
问题 I want to use AppCompat library, however there is no Dialog theme, and there is no DialogWhenLarge theme which I can either extend or use. Is there a way I can extend the base theme and make it DialogWhenLarge, probably using folders and custom styling items. Thanks 回答1: Closing this ticket down. For anyone who would like the answer see this. ActionBar in a DialogFragment and this custom style in folder values-large <style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light"> <!-- API 14