Tag: android-support-library

'Couldn't load RSSupport: findLibrary returned null' when using RenderScript on 2.3 emulator

RenderScript doesn’t work on the Android 2.3 emulator. 04-04 15:37:39.146: W/dalvikvm(863): Unable to resolve superclass of Landroid/support/v8/renderscript/RenderScript$2; (316) 04-04 15:37:39.146: W/dalvikvm(863): Link of class ‘Landroid/support/v8/renderscript/RenderScript$2;’ failed 04-04 15:37:39.146: E/dalvikvm(863): Could not find class ‘android.support.v8.renderscript.RenderScript$2’, referenced from method android.support.v8.renderscript.RenderScript.setErrorHandler 04-04 15:37:39.146: W/dalvikvm(863): VFY: unable to resolve new-instance 890 (Landroid/support/v8/renderscript/RenderScript$2;) in Landroid/support/v8/renderscript/RenderScript; 04-04 15:37:39.146: D/dalvikvm(863): VFY: replacing […]

TextInputLayout hint overlap issue

I’m using TextInputLayout from Android Design Library to show label on EditText. The problem is when I start activity with that EditText hint (label) text overlaps the actual text (for a second) and only then returns to its own place (at the top of the EditText). To illustrate this issue I recorded a short sample […]

Android doesn't resize my layout when there is a NestedScrollView in the hierarchy

I just observed the following behavior on my Nexus 9 with Android 7.1.1 and Android Support Library 25.3.1. Here is my activity’s layout: <?xml version=”1.0″ encoding=”utf-8″?> <ScrollView xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”match_parent”> <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:focusableInTouchMode=”false” android:orientation=”vertical” android:paddingBottom=”4dp”> <EditText android:layout_width=”match_parent” android:layout_height=”wrap_content” /> <View android:layout_width=”match_parent” android:layout_height=”300dp” android:background=”#fffaaa” /> <View android:id=”@+id/view” android:layout_width=”match_parent” android:layout_height=”300dp” android:background=”#bbbaaa” /> <View android:layout_width=”match_parent” android:layout_height=”10dp” android:background=”#f00″ […]

android – support libraries 23.2.0 cause app to crash

My app works well with support libraries 23.1.0 or 23.1.1, but when i start using 23.2.0 it crashes on launch. I use five support libraries, but the ones that seem to make it crash are these two: com.android.support:appcompat-v7:23.2.0 com.android.support:design:23.2.0 I have this issue on my galaxy nexus (API 17) but not on my Nexus 7 […]

Error inflating class Android support design

What I am trying to do is use the new android support design library mentioned here: http://android-developers.blogspot.com/2015/05/android-design-support-library.html. I have attempted to use the floating action button as follows in my xml layout (this is where the below error is coming from): <android.support.design.widget.FloatingActionButton android:id=”@+id/fab” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_alignTop=”@+id/adview” android:layout_marginTop=”500dp” /> When my app is launched this is […]

Using buildToolsVersion 23 fails because Multiple dex files define 'AnimRes'

Before you claim DUPLICATE please read the question. This only occurs with the latest version of the build tools. Older versions do not display this problem. I’ve already tried the solutions offered on other questions here for multiple definitions of @AnimRes. None have helped so far, which is why I posted a new question. Same […]

BottomSheetDialog remains hidden after dismiss by dragging down

I am pretty curious about the behavior of the BottomSheetDialog when it is dismissed : when the user draggs it down to hide it, it will remain hidden, even if bottomSheetDialog#show() is called after. This only happens when it is dragged down, not when the user touches outside or when bottomSheetDialog#dismiss() is called programatically. It […]

Failed to resolve: com.android.support:support-v4:23.0.0

After update with the latest Android support library 23.1 i get this error Failed to resolve: com.android.support:support-v4:23.0.0 I tried all combination of 23.+ and 23.1.0 and 23.1.+ etc. How to make it run properly? apply plugin: ‘com.android.application’ android { compileSdkVersion 23 buildToolsVersion “23.0.1” defaultConfig { applicationId “ua.g.tfinder” minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName “1.0” […]

Inner PreferenceScreen not opens with PreferenceFragmentCompat

My inner PreferenceScreen of PreferenceFragmentCompat is not showing, or seems to ignore tapping events. I created MyPreferenceFragment that extends PreferenceFragmentCompat public class MyPreferenceFragment extends PreferenceFragmentCompat { @Override public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { addPreferencesFromResource(R.xml.preferences); } } then I changed my theme at styles.xml like <style name=”AppTheme” parent=”@style/Theme.AppCompat.Light”> <item name=”preferenceTheme”>@style/PreferenceThemeOverlay</item> </style> And finally create my […]

Drawer Layout not closing on back pressed (depending on support-v4 lib)

I’m following the Creating a Navigation Drawer tutorial (Android Training). I have downloaded the sample app and it work as intended. I open the drawer, press back and it gets closed. The problem comes when I replace the lib/android-support-v4.jar (originally with a size of 523 KB) with the updated version (revision 20) in my Android-SDK/extras/android/support/v4/android-support-v4.jar […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.