Back to Examples
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/guessGameLinearLayout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  tools:context="com.example.flagguessinggamev1.MainActivity$PlaceholderFragment" >

<TextView
  android:id="@+id/questionNumberTextView"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_gravity="center"
  android:text="@string/question" />

<ImageView
  android:id="@+id/flagImageView"
  android:layout_width="wrap_content"
  android:layout_height="0dp"
  android:layout_gravity="center"
  android:layout_marginBottom="@dimen/activity_vertical_margin"
  android:layout_marginLeft="@dimen/activity_horizontal_margin"
  android:layout_marginRight="@dimen/activity_horizontal_margin"
  android:layout_marginTop="@dimen/activity_vertical_margin"   android:layout_weight="1"
  android:adjustViewBounds="true"
  android:contentDescription="@string/image_description"
  android:scaleType="fitCenter"
  android:src="@drawable/ic_launcher" />

<TextView
  android:id="@+id/guessCountryTextView"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_gravity="center_horizontal"
  android:text="@string/guess_country" />

<LinearLayout
  android:id="@+id/buttonsLinearLayout"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_marginBottom="@dimen/spacing"
  android:orientation="horizontal" >

<Button
  android:id="@+id/button1"
  style="?android:attr/buttonStyleSmall"
  android:layout_width="0dp"
  android:layout_height="fill_parent"
  android:layout_weight="1" />

<Button
  android:id="@+id/button2"
  style="?android:attr/buttonStyleSmall"
  android:layout_width="0dp"
  android:layout_height="fill_parent"
  android:layout_weight="1" />

<Button
  android:id="@+id/button3"
  style="?android:attr/buttonStyleSmall"
  android:layout_width="0dp"
  android:layout_height="fill_parent"
  android:layout_weight="1" />

</LinearLayout>

<TextView
  android:id="@+id/answerTextView"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_gravity="bottom|center"
  android:textSize="@dimen/answer_size"
  android:textStyle="bold" />

</LinearLayout>
Back to Examples

Startup Discount
Small Business?
Contact us for an Enormous Discount!