Tag: android-5.0-lollipop

Genymotion dose not start with API 21

I have install latest genymotion in my PC. Its works grate with API 18 and 19 but when I try to start Genymotion emulator with API 21 it doesn’t work. Show black screen with “android” forever.

Lollipop elevation on concave outline

I Have a custom view who display a star shape by using a Path. This View works as expected, but now I’d want to shift it to the new Google Material recommendation. Unfortunately elevation depends on a convex outline. I can’t found a solution yet. Are there a known workaround or any other creative solution […]

ProgressBar in ActionBar on Android L Preview

Today I started porting an app to Android L preview in order to have it almost ready when the final product launches. One problem I found is that I can’t have an indeterminate progressbar on the ActionBar. It doesn’t show at all and throws this error on logcat: E/PhoneWindow﹕ Circular progress bar not located in […]

Facebook image as Large Icon Notification appears as white on different phones?

I am having this problem with creating and sending notifications correctly. I read the new Lollipop 5.0 update notification design specification here: https://material.google.com/style/icons.html and https://material.google.com/patterns/notifications.html and I realize that Icons need to be white in order to display correctly. That is fine and I totally understand that, but I want my notification to show a […]

Android: AppBarLayout gradient background

I tried implementing a toolbar with gradient background (from black to transparent). The toolbar is inside an AppBarLayout, which is inside a CoordinatorLayour, because I want the Toolbar to slide off the screen when scrolling the screen (hance the scroll|enterAlways scroll flags). This works perfectly fine for pre-lollipop versions and looks like this: But on […]

Android L Preview does not search native libraries in “armeabi” folder (UnsatisfiedLinkError)

I have an app with 2 native libraries. 1st works much faster on ARMv7 so I have version both for ARMv7 and ARMv5. 2nd works the same on both platforms so only ARMv5 library is provided. My native library folder looks like this: /jniLibs/ | +—armeabi/ | | | +—libFirstLibrary.so | +—libSecondLibrary.so | +—armeabi-v7a/ | […]

Toolbar – findViewbyID returning null

Why am I unable to find my Toolbar in my layout? setContentView(R.layout.activity_main); toolbar = (Toolbar) findViewById(R.id.toolbar); if (toolbar != null) { setSupportActionBar(toolbar); getSupportActionBar().setHomeButtonEnabled(true); } After that, toolbar is still null. activity_man.xml: <android.support.v4.widget.DrawerLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:id=”@+id/drawer_layout” android:layout_width=”match_parent” android:layout_height=”match_parent” android:clipToPadding=”false” tools.context=”.PlayerActivity”> <include android:id=”@+id/toolbar” layout=”@layout/toolbar”/> <ImageView android:id=”@+id/background_image” android:layout_width=”match_parent” android:layout_height=”match_parent” android:scaleType=”centerCrop”/> : (goes on) EDIT: toolbar.xml: <android.support.v7.widget.Toolbar xmlns:android=”http://schemas.android.com/apk/res/android” android:id=”@+id/toolbar” android:layout_width=”match_parent” […]

Primary color (sometimes) goes transparent

I am developing with the latest SDK version (API 21) and Support Library 21.0.2 and I’ve been having trouble when trying to implement the new Material Design guidelines. Material Design says that I need to have my primary color and my accent color and apply them over my app. But sometimes when I open the […]

UiAutomator dump for Lollipop Lost WebView View Hierarchy

In KitKat we were able to get webview view hierarchy from a UIAutomator dump if focus was placed on the webview. I was wondering if there was substitute functionality for getting webview view hierarchy with the lollipop release, or if that functionality was lost in the release?

Canvas.drawTextOnPath(…) not working on Lollipop

canvas.DrawTextOnPath does not seem to work on a Lollipop device. See the difference here. (The Nexus 10 image is correct but Lollipop does not display correctly) The code is a simple path draw. // Path for the inner circle unitPath = new Path(); unitPath.addArc(unitRect, 180.0f, 180.0f); // Draw the text and the path canvas.drawTextOnPath(“Inner Circle”, […]

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