Tag: android-5.0-lollipop

Should I change the existing Listview in my app to RecyclerView?

Is there any advantages of converting the existing Listview in my app to RecyclerView?? Also when should I be using RecyclerView??

How to launch application with Theme.Material on older devices

How can I run my app on pre-v21 devices? compileSdkVersion ‘android-L’ minSdkVersion 14 targetSdkVersion ‘L’ I’m only using the Theme.Material on v21. I’m NOT using the v20 support library, I’m using com.android.support:support-v4:19.+ When running the application from Android Studio it says that the device in not compatible: {compatible=NO, reason=minSdk(API 20, L preview) != deviceSdk(API 16)} […]

ProgressBar Circle shows no progress on android L (API 21)

I have a circular ProgressBar to count down time. It workes perfectly on kitkat and before, but on android L it always shows a full circle no matter what progress I set. Image layout.xml <ProgressBar android:id=”@+id/progressBar1″ style=”?android:attr/progressBarStyleHorizontal” android:layout_width=”100dp” android:layout_height=”100dp” android:indeterminate=”false” android:max=”200″ android:progress=”100″ android:progressDrawable=”@drawable/progresscircle” /> progresscircle.xml <?xml version=”1.0″ encoding=”utf-8″?> <layer-list xmlns:android=”http://schemas.android.com/apk/res/android” > <item> <shape android:innerRadiusRatio=”3.4″ android:shape=”ring” […]

Android alert dialog not styled properly on Lollipop

I have tried everything to get this working and cannot figure it out. I am trying to use an alert dialog im my app. It works fine on KitKat but not on Lollipop. I have even tried using many material dialogs on GitHub and again they work on Kitkat but not on Lollipop. I am […]

CardView has extra margin in each edge on Pre-Lollipop

Here are two pictures. on Lollipop: on Pre-Lollipop: we can see that it’s just close to the screen side on Lollipop. that’s what I want. but on the Pre-Lollipop device, it has extra margin to the screen edge. do you guys have any experience ? thank you. here is the layout xml: <android.support.v7.widget.CardView android:id=”@+id/card_title_schedule” android:layout_width=”wrap_content” […]

Could not find a method onClick_Foo(View) – first time running on Android Lollipop

I have an app that is about a year old, is on the Play store in beta, has gone through dozens of revisions. All of a sudden I’m getting an error: Could not find a method onClick_Foo(View) in the activity class android.view.ContextThemeWrapper for onClick handler on view class android.widget.Button with id ‘Foo_Button’ I’m getting this […]

How to check if Android Lollipop battery saver is on

Android Lollipop introduced a battery saver mode that can be turned on at any time, and turns on by default when the battery is at 15% or lower. This poses a problem for my app, since the battery saver disables animations that provide crucial information. (Just to give context, my app allows users to configure […]

How to change the color of overscroll edge and overscroll glow

How to Change color of over-scroll edge and over-scroll glow or how to change the white color (default color) of android release 5.0 lollipop?

android lollipop animation glitch

I have a strange behaviour with the default layout animation in devices running Android 5 (Lollipop). I am using an activity with multiple Fragments which are replaced at runtime using the default fragment manager. When replacing the old fragment, i want to use an animation for a smooth ui flow. On pre-lollipop devices the animation […]

Lollipop CalenderView DatePicker doesn't call OnDateChanged() method

I’m working with a DatePicker and finding that under Android 5.0 it will not call the OnDateChanged() method in its OnDateChangedListener when it’s in CalendarView mode even though a new date has been selected. If android:datePickerMode=”spinner” is set in the DatePicker’s xml tag, the DatePicker will appear as spinners and it will call OnDateChanged() when […]

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