android-support-library

Auto Mirroring for RTL layout doesn't work in Android versions below 6.0

心不动则不痛 提交于 2019-12-10 15:23:32
问题 As you know Vector Drawables was added in Android Support Library 23.2 which announced in Android Developer Blog that for all versions of android we can use it instead of adding extra icons in different sizes. However "enable auto mirroring for RTL layout" option doesn't work in android versions below 6.0! Is there any additional setting to use it in other android versions? My Test Project uses a simple method to changing the Locale of my application. These are results of my test: Nexus 6P

Robolectric 3.0 not working with AppCompat 21+

試著忘記壹切 提交于 2019-12-10 15:13:53
问题 After upgrading to AppCompat 21, a lot of our Robolectric tests fail. It looks like there is an issue with the Toolbar and AppCompatDelegate I tried both with support-v4/appcompat 22.2.1 and the versions used in the official sample for appcompat: https://github.com/robolectric/robolectric-samples/tree/master/android-appcompat-v7 Android Studio 1.3 RC4, Android Gradle Plugin 1.2.3 compileSdkVersion 21 buildToolsVersion "21.1.2" minSdkVersion 10 targetSdkVersion 21 compile 'com.android.support

ClassCastException on support-library-v7 , using version 21

我们两清 提交于 2019-12-10 15:10:52
问题 Background Over the past 2 weeks I've been moving my app from ActionBarSherlock to the official support library of Google, to also gain Material-Design style. I've updated to the newest one (which is 21), and I've included both v4 and v7 of it. My app has a simple navigation-drawer , an action-bar, and a fragment container to switch between the fragments (which I only have 2). The rest of the screens are the settings screen and shortcuts to OS's tools. I also have a widget-configuration

Nested fragments getchildfragmentmanager causing crash

南笙酒味 提交于 2019-12-10 14:57:34
问题 I have viewPager which contains fragments each of these fragment has viewpager to display Images and banners now to each fragment Image adapter I am passing getChildFragmentManager() as below CarouselAdapter carouselAdapter = new CarouselAdapter(getChildFragmentManager()); But above code is causing crash while changing viewpager tabs showing following message java.lang.IllegalArgumentException: No view found for id 0x7f1000ef But if I pass getFragmentManager() it is not crashing but adapter

Even I'm using MenuItemCompat.setOnActionExpandListener my app crashes with advise to use MenuItemCompat.setOnActionExpandListener [duplicate]

随声附和 提交于 2019-12-10 14:52:04
问题 This question already has answers here : Android Support Repo 46.0.0 with Android Studio 2.3 (7 answers) Closed 2 years ago . Today Android Studio (set to Stable channel updates) has offered me to download an update to Android Support Repository 46.0.0, so I did it. Then suddenly our app has started to crash each time because of MenuItemCompat.setOnActionExpandListener . Yes I've should have check release notes yet, but I did not - that's a fact. Now what's our problem - Even we're using

Support libraries to add for Autosizing TextViews

只愿长相守 提交于 2019-12-10 13:49:38
问题 I am confused about adding the correct support libraries in Android Studio to be able to use AutoSizing TextViews. https://developer.android.com/guide/topics/ui/look-and-feel/autosizing-textview.html The description of what support libraries to use is kind of vague on this page. I have tried to import the suggested libraries, but either I am requesting the wrong libraries (they are not found, such as the android.support.v4.widget package) or I am doing something else incorrectly. My min SDK

NullPointerException on TextInputLayout.passwordVisibilityToggleRequested

无人久伴 提交于 2019-12-10 13:47:49
问题 I got an error in Firebase crash reporting about Password toggle button on an app in release mode in some real devices. The problem is the stack trace error is all about android.support.design code like you will see in the following log taken from firebase console: Exception java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference android.graphics.drawable.AnimatedVectorDrawable.isStarted (AnimatedVectorDrawable.java:427)

Dialog view must contain an EditText with id @android:id/edit

匆匆过客 提交于 2019-12-10 13:26:21
问题 I'm using support:preference-v7:25.0.1 and in my app I'm using an PreferenceActivity to set username with an EditText . When I run my app, at runtime I get the following error: E/AndroidRuntime: FATAL EXCEPTION: main Process: it.company.android.aaaa, PID: 8023 java.lang.IllegalStateException: Dialog view must contain an EditText with id @android:id/edit at android.support.v7.preference.EditTextPreferenceDialogFragmentCompat.onBindDialogView(EditTextPreferenceDialogFragmentCompat.java:67) at

How to use NumberPicker in Android app with API 7?

被刻印的时光 ゝ 提交于 2019-12-10 13:22:37
问题 The minimum sdk of my app is 7, but I can use DialogFragment which is from sdk version 11, because it is in the support library which is in my lib directory. I'd like to make something like this example: http://developer.android.com/guide/topics/ui/controls/pickers.html But I want to use the NumberPicker widget, which is from sdk version 11 too, but my app does not allow this. Do I have to add other support library? How can I use this component? Thank you. 回答1: Do I have to add other support

Why is DialogFragment.onCreateView called when Activity is being Destroyed?

不问归期 提交于 2019-12-10 12:48:22
问题 I'm using the android support library v4 revision 11 and time to time, I see the stack trace below ; I suspect it's happening due to a launch from recents, hence the model I'm trying to access is null. Anyhow, this trace has made me wonder why onCreateView is called when the activity is being destroyed, and what's the best way to handle such cases? java.lang.NullPointerException at com.example.dialogs.ExampleDialogFragment.onCreateView(ExampleDialogFragment.java:53) at android.support.v4.app