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 a Digital Clock." android:textStyle="italic" /> <!-- DigitalClock widget display a digital clock. --> <DigitalClock android:id="@+id/dc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/tv" /> </RelativeLayout>
- AnalogClock example
- TextClock example
- How to set ImageButton image
- How to create a DatePicker without calendar
- TimePicker example
- How to create an ImageView programmatically
- How to change indeterminate ProgressBar color
- How to create a circle ProgressBar
- How to create a spinner style ProgressDialog
- How to use Button onClickListener
Komentar
Posting Komentar