android-appcompat

Language change issue after updating to androidx.appcompat:appcompat:1.1.0

狂风中的少年 提交于 2019-12-12 07:53:46
问题 The link of the latest app-compat which is 1.1.0. After upgrading my app to the latest app-compat my language settings stopped working for phones below API 24 (roughly, doesn't work on API 21 and below for sure). For API 24 and above, I have used the ContextWrapper and set the locale hence works. My question is if the androidx.appcompat:appcompat:1.1.0 is the stable version why does it work for me in alpha and beta versions unlike the others here & the questions which I have tried. After

v7 widget toolbar not showing, why?

依然范特西╮ 提交于 2019-12-12 07:04:13
问题 I am so close. I have the android studio project set up correctly with libs, the project compiles, and the emulators and device run the app. I am trying to get rid of the bottom button popup menu of older devices and replace with v7 appcompat toolbar. The old action bar is gone but the menu inflate still inflates to the old popup menu. I start off using a splashscreen then the app main shows the database view activity. This means I have to dynamically load the toolbar. My thinking now is the

No resource found that matches the given name 'Theme.AppCompat.Light'

不羁岁月 提交于 2019-12-12 01:29:04
问题 I am having problems setting up my eclipse program with Android for my first project. After installing eclipse together with the android developer tools, I tried to create a new 'Android Project' with a minimum sdk of Android 2.2, a target sdk of Android 6.0 and a sdk compiler of Android 7.1.1. After clicking run, Eclipse displayed an error, which indicated that there was issues with my empty activity: Error retrieving parent for item: No resource found that matches the given name 'Theme

How to use custom inline attributes in xml layout files for customizing style of views

*爱你&永不变心* 提交于 2019-12-12 01:09:04
问题 since when I upgraded the Android Support Library, I'm struggling with setting custom colors for buttons, textviews and other views. Apparently, inline attributes get overridden by values defined in the application theme. I have defined an application theme in values/styles.xml: <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name=

Android Studio Error “AppCompat does not support theme” [duplicate]

家住魔仙堡 提交于 2019-12-11 19:27:19
问题 This question already has answers here : Upgraded to AppCompat v22.1.0 and now getting IllegalArgumentException: AppCompat does not support the current theme features (4 answers) Closed 4 years ago . So I believe this a common issue with v22 but the current solutions don't seem to be solving my error. I tried setting android:windowActionBar to false and android:windowNoTitle to true but this doesn't seem to help. Here is my Error Message 05-13 07:33:50.943: E/AndroidRuntime(14440): FATAL

Bug in lib support V7 with startSupportActionMode

∥☆過路亽.° 提交于 2019-12-11 19:25:53
问题 In a ActionBarActivity (lib support V7), when i call startSupportActionMode() from my nexus 4 (4.3), in callback, i have a double call to onPrepareActionMode() because the onDestroyActionMode is also called. In other terms, the bug is: 1 > startSupportActionMode(callback); 2 > callback.onPrepareActionMode() is triggered 3 > callback.onDestroyActionMode() is triggered (not by me, not normal) 4 > callback.onPrepareActionMode() is triggered The good result must be: 1 > startSupportActionMode

Android ActionBar missing after extending Appcompatactivity

筅森魡賤 提交于 2019-12-11 19:04:49
问题 I've recently updated my app extending Appcompatactivity in my Activities . Since then, the Actionbar is gone when I launch an external library Intent. For example, I'm using the HockeyApp SDK to launch their FeedbackActivity Here is my code: FeedbackManager.showFeedbackActivity(this, Uri.fromFile(file)); And here a screenshot (you can see the ActionBar is gone). It used to work before until I started extending Appcompatactivity. For the rest of Activities it works. The ActionBar is gone only

Android. ActionBar. How to change ActionBar title color?

你离开我真会死。 提交于 2019-12-11 17:28:47
问题 I am trying to change ActionBar title color. I tried different ways to do it. But I could not solve this problem. I have created my own actionbar theme in values/styles.xml and values-14/styles.xml values/styles.xml <style name="CustomActionBarTheme" parent="@style/Theme.AppCompat.Light"> <item name="actionBarStyle">@style/MyActionBar</item> </style> <style name="MyActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"> <item name="background">@color/grey_actionbar

How can I hide the actionbar in a single fragment?

梦想与她 提交于 2019-12-11 17:26:32
问题 I am using AppCompat for my theme in my app. Also, I am using a viewpager to manage some fragments. Now I would to hide the actionbar in one of my fragments. How can I do that. I tried to hide the actionbar manually in the fragment like this import android.support.v7.app.ActionBar; import android.support.v7.app.ActionBarActivity; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ActionBarActivity activity = (ActionBarActivity) this.getActivity();

Why are there two Fragment classes in Android? [duplicate]

孤街醉人 提交于 2019-12-11 17:17:59
问题 This question already has answers here : Difference between android.app.Fragment and android.support.v4.app.Fragment (6 answers) Closed last year . In a recent question, the OP received an unexpected error message due to importing Fragment from the android.app package. The solution to fix the error was to import android.support.v4.app.Fragment instead. Why are there two different Fragment classes that appear to have the same functionality? 回答1: According to the documentation, fragments were