How to change color of the back arrow in the new material theme?

I’ve updated my SDK to API 21 and now the back/up icon is a black arrow pointing to the left. I would like it to be grey. How can I do that? In the Play Store, for example, the arrow is white. I’ve done this to set some styles. I have used @drawable/abc_ic_ab_back_mtrl_am_alpha for homeAsUpIndicator. … Read more

Set style for TextView programmatically

I’m trying to use the TextView constructor with style like this: TextView myText = new TextView(MyActivity.this, null, R.style.my_style); However, when I do this, the text view does not appear to take the style (I verified the style by setting it on a static object). I’ve also tried using myText.setTextAppearance(MyActivity.this, R.style.my_style) but it also doesn’t work. … Read more

How do I change the background color of the ActionBar of an ActionBarActivity using XML?

Details: I’m extending ActionBarActivity. Eclipse and SDK fully patched as of 2011-11-06. <uses-sdk android:minSdkVersion=”4″ android:targetSdkVersion=”14″ /> Deployed to Samsung device with Android 2.3.3 Application has android:theme=”@android:style/Theme.Light” Issue: application is light, but ActionBar is blue with grey icons, hardly visible against the blue background color. I also want the ActionBar to be light, so they grey … Read more

Changing EditText bottom line color with appcompat v7

I am using appcompat v7 to get the look consistent on Android 5 and less. It works rather well. However I cannot figure out how to change the bottom line color and the accent color for EditTexts. Is it possible? I have tried to define a custom android:editTextStyle (cf. below) but I only succeeded to … Read more

Android toolbar center title and custom font

I’m trying to figure out the right way to use a custom font for the toolbar title, and center it in the toolbar (client requirement). At the moment, i’m using the good old ActionBar, and I was setting the title to empty value, and using setCustomView to put my custom font TextView and center it … Read more

Why is my Button text forced to ALL CAPS on Lollipop?

In my app “Tide Now WA” which I recently tested for compatibility using the new Nexus 9 tablet (Lollipop – API 21). It writes some button text. This app writes the text correctly using Android 2.3 and Android 4.0. I.e. mixed capital and lower case letters. When same app is run on my Nexus 9 … Read more