Utilities to Validate things

Android EditText First letter Capital

Sometimes you need the user to always type the first letter in Caps so that it looks clean.

The easiest way to do this is to change the keyboard to Capital on the first letter, you can do this easily by adding this line to your code on the EditText

android:inputType=”textCapSentences

Android Show grey gradient on ImageView

In android if you are working on ImageViews at times you may be needing to show texts on top of ImageViews, so you can use this small hack so that you can show a grey gradient from bottom and textview on the grey will be more visible.