Tag: android-5.0-lollipop

Understanding exit/reenter shared element transitions

I’m doing some rudimentary exploration of Shared Element Transitions in Android L. The simple example I’ve setup has an image view translating from the top of the screen to the bottom of the screen during activity transitions and I’ve extended the transition duration so I can see things working. I’ve hit two problems so far […]

CircularReveal animation doesn't work on first attempt

In android 5.0 i am trying to work with circular reveal animation Problem When i click on button to start reveal animation, on first click animation doesn’t start Second Click onwards it works normally My Code public class MainActivity extends ActionBarActivity { Animator a; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final View cardType […]

Attach custom CardView style to theme

In my app, I have two themes (light and dark), and I want all of my CardViews to change their background color depending on which theme is selected. What I don’t want is: <android.support.v7.widget.CardView style=”@style/CardView.MyBlue” android:layout_width=”200dp” android:layout_height=”100dp” android:layout_gravity=”center_horizontal”> The above code is not dynamic. I need my two styles to automatically be applied depending on […]

Android – Could not connect to bluetooth device on Lollipop

I have an application that working well on Android 4.3 and 4.4. The application will connect and communicate with a custom bluetooth device. After I flashed my Nexus 5 to Lollipop suddenly the I can’t connect to the device at all. The connection result always 133. This is the log : D/BluetoothGatt﹕ connect() – device: […]

Platform L is a preview and requires application manifest to set minSdkVersion to 'L'

I have this error in my logcat when imported appcompat v7 from ” sdk/extras/android/ “ Platform L is a preview and requires application manifest to set minSdkVersion to ‘L’ and the manifest is like <?xml version=”1.0″ encoding=”utf-8″?> <!– Copyright (C) 2012 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the “License”); […]

Android Lollipop defaults to Mobile Data when Wi-Fi has not Internet access?

Android Lollipop seems to default to Mobile Data when the Wi-Fi you are connected to has no Internet access. Does anybody know if this is officially documented somewhere? We have an application that needs to connect to machines via Wi-Fi that do not have Internet. Our customers are now reporting that the Wi-Fi connection does […]

ActionBarActivity back button not popping from backstack

I’m using this template https://github.com/kanytu/android-material-drawer-template just to try out material design so I’ve implemented a few fragments some have webviews some have not. My problem is when switching between the fragments I can see them being successfully added to the backstack getFragmentManager().beginTransaction().replace(R.id.container, new FAQ()).addToBackStack(“FAQ”).commit(); But when I press the back button it just closes the […]

Material Design Typography – Headlines, Titles, Spacing, Text Appearance

I’ve been following the Google official Material Design guidelines (http://www.google.com/design/spec/style/typography.html) on typography but I find them to be quite lacking. For instance, they list 10 styles you should use for things like body, subhead, title, headline display1, display2, etc. type text in your app… This leads me to the first problem. Problem #1: How does […]

How to trigger ripple effect on Android Lollipop, in specific location within the view, without triggering touches events?

This is a short question: Suppose I have a View with the RippleDrawable as background. Is there an easy way to trigger the ripple from a specific position without triggering any touch or click events?

Switchcompat not displaying the Switch

I am trying to use the latest appcompat which was updated for material design in my app to show the switch view as displayed in Lollipop(http://android-developers.blogspot.in/2014/10/appcompat-v21-material-design-for-pre.html), the problem is the switch is not getting displayed. My SDKmin is 14 and max is 21. I am using the below code in the layout: <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” […]

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