Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@maydin
Created September 28, 2016 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maydin/8ffd6a3a481293d21ea07f40e78288f0 to your computer and use it in GitHub Desktop.
Save maydin/8ffd6a3a481293d21ea07f40e78288f0 to your computer and use it in GitHub Desktop.
MainActivity Layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin">
<android.support.v7.widget.AppCompatButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click"
android:id="@+id/button"/>
<TextSwitcher
android:id="@+id/text_switcher"
android:layout_below="@+id/button"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment