Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1602 Layout Snippet
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:hint="GitHub Username"
android:text="LondonAppDev"
android:ems="10"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:id="@+id/et_github_user"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
<Button
android:text="Get Repos"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/et_github_user"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:id="@+id/btn_get_repos"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:onClick="getReposClicked" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/btn_get_repos"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:id="@+id/tv_repo_list"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:scrollbars="vertical"
android:layout_alignParentEnd="true" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.