Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_margin="16dp"
- android:orientation="vertical">
- <TextView
- android:id="@+id/textView12"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Contoh DigitalClock "
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textSize="30sp" />
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="30dp"
- android:layout_marginTop="70dp"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/textView13"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Digital Clock: "
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textColor="#666"
- android:textSize="26sp" />
- <DigitalClock
- android:id="@+id/digitalClock"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="6dp"
- android:textColor="#3498db"
- android:textSize="24sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="30dp"
- android:layout_marginTop="20dp"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <Button
- android:id="@+id/showDigitalClock"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:onClick="showDigitalClock"
- android:text="Tampilkan DigitalClock"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textColor="#666"
- android:textSize="20sp" />
- <DigitalClock
- android:id="@+id/digitalClock1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:textColor="#3498db"
- android:textSize="40sp" />
- </LinearLayout>
- <TextView
- android:id="@+id/textView14"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:gravity="bottom|center"
- android:text="okedroid.com"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textSize="24sp" />
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement