EF's Blog

Posts Tagged ‘ui

Resizing a textfield using XML in Android is easy. Code snippet below.


< EditText
android:textSize="12px"
android:editable="true"
android:autoText="true"
android:maxLength="50"
android:singleLine="True"
android:layout_width="200px"
android:layout_height="20px"
/>


Size values are in float values and determined by px (pixels), sp (scaled pixels based on preferred font size), db (density-independent pixels), in (inches) and mm (millimeters).


EF’s Blog

I'm just ordinary people who lived in an extra-ordinary world.

EF's Blog Stats

  • 151,005 hits
May 2020
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Archives