Created
June 26, 2014 21:47
-
-
Save jiridanek/4acba4eff859de796ed0 to your computer and use it in GitHub Desktop.
My own layout for UI Element Quiz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
tools:context=".MainActivity$PlaceholderFragment"> | |
<ImageView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/imageView" | |
android:layout_alignParentTop="true" | |
android:layout_centerHorizontal="true" | |
android:src="@drawable/searchcat" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceLarge" | |
android:text="Search Cat" | |
android:id="@+id/textView" | |
android:layout_alignBottom="@+id/imageView" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:text="by Serena" | |
android:id="@+id/textView2" | |
android:layout_below="@+id/imageView" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceMedium" | |
android:text="March 11, 2005" | |
android:id="@+id/textView3" | |
android:layout_alignBottom="@+id/imageView" | |
android:layout_alignRight="@+id/imageView" | |
android:layout_alignEnd="@+id/imageView" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:text="CC BY-SA 2.0" | |
android:id="@+id/textView4" | |
android:layout_below="@+id/textView3" | |
android:layout_alignParentRight="true" | |
android:layout_alignParentEnd="true" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment