activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/rl" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="10dp" tools:context=".MainActivity" android:background="#e8e4da" > <TextView android:id="@+id/tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="This is an Analog Clock." android:textStyle="italic" /> <!-- AnalogClock widget display an analogic clock with two hands for hours and minutes. --> <AnalogClock android:id="@+id/ac" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/tv" /> </RelativeLayout>
- DigitalClock example
- TextClock example
- How to change ListView background color
- How to add a hint to Spinner
- How to change EditText font
- How to create a custom ToggleButton
- NumberPicker example
- TimePicker example
- How to set ImageView width and height programmatically
- How to create a circle ProgressBar
Komentar
Posting Komentar