Change thickness of the bottom line of EditText when wrapped into TextInputLayout

here is my code XML Markup < android:layout_width=”match_parent” android:layout_height=”wrap_content” android:theme=”@style/TextLabel”> <EditText android:id=”@+id/etContactName” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:hint=”Contact Name”/> </> Style <style name=”TextLabel” parent=”TextAppearance.AppCompat”> <item name=”android:textColorHint”>@color/hintColor</item> <item name=”colorAccent”>@color/primaryColor</item> <item name=”colorControlNormal”>@color/hintColor</item> <item name=”colorControlActivated”>@color/primaryColor</item> </style> Here is the output (normal view) (focused view) Now My Problems / Issues I want the bottom line to be thinner. where should I change […]

Android L permission conflict between release and debug apks

I’ve upgraded to Android L and have both a released version of my app in “Google play” and a debug version which we use for development. They are signed with different keys. My problem is that I install the “Google play” version and then when I try installing the debug version, which is defined like […]

Android: Cannot style spinner divider

I’m trying to create a theme for my first Android app, and it is driving me round the bend. I finally managed to figure out how to style items in a dropdown list, but now I can’t change the colour of the divider between list items. I have searched similar questions on stackoverflow, and tried […]

How to get the new NavigationView to play nice with status bar scrim?

I’ve been playing with Google’s new design support library and it’s a blast! I’m just a little stumped though on the navigation view. All the things I read say that the NavigationView is smart enough to handle transparent scrim on its own. (The android-developers post, for one; search for scrim). Anyway, when I tried to […]

Android Intents: Start activity using class name from another app that has the same sharedUserId

All my apps have the same sharedUserId. I would like to start a class of another app using the class of my current app. I want to use intent extras but I do not want to use intent URLs. I also would prefer not to have to change the AndroidManifest of my target activity’s app.

NestedScrollView not fling with Recyclerview inside

I have a layout like that: <NestedScrollView> <RecyclerView> // vertical recycler view <RecyclerView/> // horizontal recycler view <RecyclerView/> <RecyclerView/> … <RecyclerView> </NestedScrollView> The result looks like Google play store: And I disabled NestedScrolling in horizontal Recycler view: horizontalRecyclerView.setHasFixedSize(true); horizontalRecyclerView.setNestedScrollingEnabled(false); My problem: The vertical recyclerview does not scroll fling, whenever ACTION_UP happen, the vertical recyclerview also […]

How to style the Google Play Services error on Android

When using the new Google Maps V2 API on Android, the user will see an error message if their device does not have the Google Play (Services) app installed. I’m wondering if it’s possible to somehow override the style of this error message to make it less jarring and fit the app styling more appropriately. […]

How do you validate the format and values of EditTextPreference entered in Android 2.1?

Does anyone have sample code to validate user entered text in preferences? For example, I have a EditTextPreference for user to enter an email address. I’d like to validate the format of email address entered and pop up an alert dialog if the format isn’t correct. Anyone have any sample code for this? Thanks

build.gradle and project libs

I have a project in android studio that uses a project library. My problem is the configuartion of the gradle files. I really tried a lot of solution that were posted here (define modul in project lib in settings as modul, sherlock example, setting right sourcesets …), but I always get the same error (as […]

Spinner – focus to first item

I use dropdown spinner with cursor adapter. It contains e.g 1 – 100 items. I select e.g. item 50. Item is selected. Next time when I open spinner first visible row is item 50. How can I achieve that when I open spinner it will focus to first item/first visible item will be item 1? […]

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