Issue The CardView has an attribute card_view:cardBackgroundColor to define the background color. This attribute works fine. At the same time there isn’t a method to change the color dynamically. I’ve just tried solutions like: mCardView.setBackgroundColor(…); or using a Layout inside
Continue readingTag: android-5.0-lollipop
[SOLVED] Installing app to managed profile
Issue I am playing around with the BasicManagedProfile sample and want to install a custom app to only the managed profile. I can easily go to the play store, download, and install an app and it will only appear in
Continue reading[SOLVED] CardView not showing Shadow in Android L
Issue My Cardview inside Listview is not showing shadow in Android L(Nexus 5). Also the round edges are not properly shown. Here is the code for Listview’s Adapter View : <?xml version=”1.0″ encoding=”utf-8″?><LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” xmlns:card_view=”http://schemas.android.com/apk/res-auto” xmlns:app=”http://schemas.android.com/apk/res/com.example.myapp” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”vertical”
Continue reading[SOLVED] How to _really_ programmatically change primary and accent color in Android Lollipop?
Issue First of all, this question asks a very similar question. However, my question has a subtle difference. What I’d like to know is whether it is possible to programmatically change the colorPrimary attribute of a theme to an arbitrary
Continue reading[SOLVED] Android XML: android:elevation vs. app:elevation
Issue When do I use android:elevation and when app:elevation? What’s the difference between those two? Solution Hope I can help, Let’s talk with an example: <android.support.design.widget.FloatingActionButton android:layout_height=”wrap_content” android:layout_width=”wrap_content” … android:elevation=”@dimen/elevation_medium” /> The android:elevationattribute will work from the API level 21
Continue reading[SOLVED] Unnecessary padding in CardView?
Issue I have implemented CardView in my app and everything works fine except there is a little padding around the image if I put radius to the card. It appears like this: But in android docs and in this article
Continue reading[SOLVED] Android 5.0 IllegalArgumentException: Service Intent must be explicit: on com.google.android.location.internal.GoogleLocationManagerService.START
Issue I’m trying to retrieve the location of the device calling the method connect of the class LocationClient in my activity, however when the call is made the system crashes with the following exception: **FATAL EXCEPTION: main Process: com.unipagossales, PID:
Continue reading[SOLVED] Android 5.0 IllegalArgumentException: Service Intent must be explicit: on com.google.android.location.internal.GoogleLocationManagerService.START
Issue I’m trying to retrieve the location of the device calling the method connect of the class LocationClient in my activity, however when the call is made the system crashes with the following exception: **FATAL EXCEPTION: main Process: com.unipagossales, PID:
Continue reading[SOLVED] Android 5.0 IllegalArgumentException: Service Intent must be explicit: on com.google.android.location.internal.GoogleLocationManagerService.START
Issue I’m trying to retrieve the location of the device calling the method connect of the class LocationClient in my activity, however when the call is made the system crashes with the following exception: **FATAL EXCEPTION: main Process: com.unipagossales, PID:
Continue reading[SOLVED] Unnecessary padding in CardView?
Issue I have implemented CardView in my app and everything works fine except there is a little padding around the image if I put radius to the card. It appears like this: But in android docs and in this article
Continue reading