Skip to content

Instantly share code, notes, and snippets.

@sourabh86
Created October 4, 2013 14:17
Show Gist options
  • Save sourabh86/6826663 to your computer and use it in GitHub Desktop.
Save sourabh86/6826663 to your computer and use it in GitHub Desktop.
Activity_main for action time tick example
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:orientation="vertical">
<!-- Text View to show hour-->
<TextView
android:id="@+id/hourText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp" />
<!-- Text View to show minute-->
<TextView
android:id="@+id/minuteText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/hourText" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment