Friday, September 21, 2012
Android Set Font in xml and Java

In SDK Android provides three Droid fonts. Which are Droid sans , Droid Sans Mono and Droid Serif . We can set these system fonts to your android control either in XML or in Java Code.
1. Setting Font in XML layout.
Use android:typeface property in your control to set the system fonts. see the code below.
-------------------------------------------------------------------------------------
<TextView...
2:43 AM by sabeersas · 0
Sunday, September 16, 2012
Android EditText Hint ( Default Text )

Placing a label on any side of EditText is not practical every time , so the best way to let users know what to type in the field ? is by setting a default text in the EditText.
In Android if we set the default text using EditText.setText(""); function , then we should write some more code for best function.
So the solution is you can...
5:38 AM by sabeersas · 0
Subscribe to:
Posts (Atom)