Tag: android-support-library

See changes in Android Support Library sources between two versions

I want to clone repository for Android Support Library and see what has been changed between version 24.1.1 and 24.2.0. I know that repository is located here but: Its latest commits are dated by July 1 though latest support library release 24.2.0 was in August. There are no tags like support library versions 24.1.1, 24.2.0, […]

Fatal Exception: java.lang.NoClassDefFoundError: android.support.v7.app.AppCompatDelegateImplV23

On my latest release a few of my users (less than 0.2%) are getting a crash because android.support.v7.app.AppCompatDelegateImplV23 can not be found. I can not reproduce the issue, I’m only getting reports over crashlytics. I have used apktool to extract the files out of my apk and I can see AppCompatDelegateImplV23.smali in there. Any idea […]

How to define v7 appcompat dependency correctly?

I’m trying to get an (inherited) Android project to build. I’m using Ant & command line tools (and IDEA). In styles.xml, there are references that cannot be resolved such as: <style name=”AppBaseTheme” parent=”@style/Theme.AppCompat.Light”> This is the original error I ran into: […]/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given […]

Android Support Library 23.2.0 causing Toolbar arrow to be black

I recently updated my Android Support Library Yesterday to version 23.2.0 and all of a sudden all pre Lolipop devices changed the colors of the back arrow, hamburger and (three dots menu) to black. When they where always white. Lollipop devices seem to be fine. here is my style.xml which was not edited at all […]

Nested Fragments using support library v4 revision 11

The last revision of the support library from this morning (Android Support Package v4 revision 11) is supposed to support nested fragments. In my project I have a fragment that contains a ViewPager and this ViewPager contains several fragments. I’m calling getSupportFragmentManager() instead of getFragmentManager to use the FragmentManager of the support library. The problem […]

DialogFragment : NullPointerException (support library)

I’m using the excellent ACRA library to receive error reports from my apps. I’m receiving a lot of reports from customers concerning an NPE in DialogFragment, but Im unable to reproduce it : java.lang.NullPointerException at android.support.v4.app.DialogFragment.onActivityCreated(SourceFile:366) at android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:892) at android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1083) at android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1065) at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(SourceFile:1844) at android.support.v4.app.FragmentActivity.onStart(SourceFile:519) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1133) at android.app.Activity.performStart(Activity.java:4475) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1929) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) at […]

Trouble importing android.support.v7.widget.CardView into Eclipse

I use Eclipse and I’m trying to create an application using the new support-library-v7:21.+ from Lollipop. Created my new project imported in eclipse the support-library-v7 changed in project-properties of support library the line: target=android-21 with 21 target changed the target of my application in 21 imported the library in my project clean all After all […]

Unable to style action mode when using Toolbar

I’m not sure if this is a bug or somehow I’m not using the new Toolbar class properly. I’m able to successfully theme the ActionBar directly using one of the available themes. This also allows me to theme the ActionMode. Everything works perfect as expected. Here is how I’m doing that. <style name=”Theme.ActionBar” parent=”@style/Theme.AppCompat.Light.DarkActionBar”> <item […]

Part of fragment inside ViewPager getting cut off at bottom of screen(Android)

I have defined a basic Coordinator layout for my view: <android.support.design.widget.CoordinatorLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:layout_width=”match_parent” android:layout_height=”match_parent” > <android.support.design.widget.AppBarLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:theme=”@style/ThemeOverlay.AppCompat.Dark.ActionBar”> <android.support.v7.widget.Toolbar android:id=”@+id/toolbar” android:layout_width=”match_parent” android:layout_height=”?attr/actionBarSize” android:background=”?attr/colorPrimary” app:layout_scrollFlags=”scroll|enterAlways” app:popupTheme=”@style/ThemeOverlay.AppCompat.Light” /> <android.support.design.widget.TabLayout android:id=”@+id/tabs” android:layout_width=”match_parent” android:layout_height=”wrap_content” app:tabIndicatorColor=”@color/white” app:tabMode=”fixed”/> </android.support.design.widget.AppBarLayout> <android.support.v4.view.ViewPager android:id=”@+id/viewpager” android:layout_width=”match_parent” android:layout_height=”match_parent” app:layout_behavior=”@string/appbar_scrolling_view_behavior” /> </android.support.design.widget.CoordinatorLayout> There are multiple tabs in my view pager. I am posting one of […]

CoordinatorLayout not drawing behind status bar even with windowTranslucentStatus and fitsSystemWindows

I am trying to draw views behind the status bar like this: I tried to produce this effect with the recommended techniques, but I get this: It’s clear from the screenshot that none of my app content is being drawn behind the status bar. What’s interesting is that somehow, the Nav Drawer manages to draw […]

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