android-support-library

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=

Set layout_anchor at runtime on FloatingActionButton

冷暖自知 提交于 2019-12-21 07:23:21
问题 I am trying to animate a android.support.design.widget.FloatingActionButton that is pinned to my AppBarLayout. I can set it fine within the layout xml and it shows up fine. However i am doing a Shared Element Transition to this layout and the FAB is showing up before the view is set. I tried to set the visibility to GONE and INVISIBLE but they seem to be disregarded if the layout_anchor is set in the layout xml. Is there anyway around this? I would like the activity to load with the shared

Bottom Sheet landscape issue

纵然是瞬间 提交于 2019-12-21 06:57:35
问题 I'm getting an wrong behavior when showing an Bottom Sheet Dialog in landscape mode. The problem occurs in the 24.+ version of the design library. According below image the Bottom Sheet is not showing correctly only in landscape. Im using BottomSheetDialog class and i'm following this tutorial: http://www.skholingua.com/blog/bottom-sheet-android, in my published apps the problem also occurs. I tested the 25.+ version and the problem was not solved. Error In landscape 24, 25.+ Library Same

The type android.support.v4.app.Fragment cannot be resolved. It is indirectly referenced from required .class files, Facebook [duplicate]

放肆的年华 提交于 2019-12-21 06:04:31
问题 This question already has answers here : ActionBarSherlock - The type android.support.v4.app.Fragment cannot be resolved. It is indirectly referenced from required .class files (9 answers) Closed 5 years ago . i want to publish photo and text in facebook, for that i have used below code from the facebook reference site https://developers.facebook.com/docs/android/link-to-your-native-app/#step6 i have copied all the code in my activity so code but in below line i am getting error Session

MultiDexApplication class in secondary dex file not found when using AndroidX

*爱你&永不变心* 提交于 2019-12-21 05:25:13
问题 I'm using 'androidx.multidex:multidex:2.0.0' and I'm pointing to the MultiDexApplication class from the manifest using: <application android:name="androidx.multidex.MultiDexApplication" ... On the build.gradle I also added the follwoing entry: defaultConfig { ... multiDexEnabled true ... When running the application in Android versions older than 5.0 (API 21) I get the following exception: java.lang.RuntimeException: Unable to instantiate application androidx.multidex.MultiDexApplication:

Cannot resolve symbol upon support library version change

那年仲夏 提交于 2019-12-21 04:23:10
问题 I'm hoping someone might shed some light on this issue. I am trying to change the support library versions from: compile 'com.android.support:support-annotations:23.1.0' compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:support-v13:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:design:23.1.0' compile 'com.android.support:cardview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' to compile 'com.android.support

Android password visibility toggle not working with support library 25?

旧城冷巷雨未停 提交于 2019-12-21 03:58:08
问题 I have implemented a TextInputLayout with a password field in the usual way: <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/returning_password" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/prompt_password" android:inputType="textPassword" android:maxLines="1" android:textSize="14sp" /> </android.support.design.widget.TextInputLayout> This

How to maintain ListView position when using the new Loader APIs?

时间秒杀一切 提交于 2019-12-21 03:54:28
问题 In Honeycomb the Loader APIs were introduced as the proper way to provide data to an application by doing the heavy lifting on a background thread. In my application I'm working to replace all my Cursor s with Loader s that return Cursor s. Since Cursor.requery() is depreciated now, it is recommended to just call restartLoader and allow the work to again be done on a background thread and then changeCursor when it returns in onLoadFinished . All of this works wonderfully except that the

Should I use AppCompat v7 if minsdk is 14

橙三吉。 提交于 2019-12-21 03:41:08
问题 should I still use app compat v7 if my app has minSdk = 14? Is there any advantage with ActionBar in Android L ? Should I use android.support.v4.app.FragmentActivity from support v4 or should I use the android.app.Activity class (which has support for fragments since honeycomb)? Should I also use android.app.Fragment or android.support.v4.app.Fragment? I guess that I should use support v4 FragmentActivity and Fragment, but there is no need for app compat v7, right? What do you think? 回答1:

Should I use AppCompat v7 if minsdk is 14

喜夏-厌秋 提交于 2019-12-21 03:40:03
问题 should I still use app compat v7 if my app has minSdk = 14? Is there any advantage with ActionBar in Android L ? Should I use android.support.v4.app.FragmentActivity from support v4 or should I use the android.app.Activity class (which has support for fragments since honeycomb)? Should I also use android.app.Fragment or android.support.v4.app.Fragment? I guess that I should use support v4 FragmentActivity and Fragment, but there is no need for app compat v7, right? What do you think? 回答1: