Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/quizLinearLayoutEasy"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:paddingBottom="16dp"
- android:paddingLeft="16dp"
- android:paddingRight="16dp"
- android:paddingTop="16dp"
- tools:context="com.example.android.kingofflags.EasyActivity">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginBottom="10dp"
- android:orientation="horizontal"
- android:baselineAligned="false"
- android:weightSum="2">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:gravity="start"
- android:orientation="horizontal"
- android:padding="10dp">
- <TextView
- android:id="@+id/currentScoreText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="2dp"
- android:layout_marginRight="2dp"
- android:text="@string/current_score"
- android:textColor="@android:color/black"
- android:textSize="20sp" />
- <TextView
- android:id="@+id/currentScoreEasy"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/current_score_0"
- android:textColor="@android:color/holo_red_dark"
- android:textSize="20sp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="end"
- android:orientation="horizontal"
- android:padding="10dp">
- <TextView
- android:id="@+id/lives"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="2dp"
- android:layout_marginRight="2dp"
- android:gravity="center"
- android:text="@string/current_lives"
- android:textColor="@android:color/black"
- android:textSize="20sp" />
- <TextView
- android:id="@+id/currentLivesEasy"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/current_lives_5"
- android:textColor="@android:color/holo_red_dark"
- android:textSize="20sp" />
- </LinearLayout>
- </LinearLayout>
- <ImageView
- android:id="@+id/flagImageViewEasy"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_gravity="center"
- android:layout_marginBottom="@dimen/spacing"
- android:layout_marginLeft="@dimen/activity_horizontal_margin"
- android:layout_marginRight="@dimen/activity_horizontal_margin"
- android:layout_marginTop="5dp"
- android:layout_weight="1"
- android:adjustViewBounds="true"
- android:contentDescription="@string/image_description"
- android:scaleType="fitCenter" />
- <TextView
- android:id="@+id/guessCountryTextViewEasy"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginBottom="8dp"
- android:layout_marginTop="10dp"
- android:text="@string/guess_country"
- android:textColor="#4c4c4c"
- android:textSize="20sp" />
- <LinearLayout
- android:id="@+id/row1LinearLayoutEasy"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row2LinearLayoutEasy"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row3LinearLayoutEasy"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="5dp"
- android:orientation="horizontal">
- <Button
- android:id="@+id/answerButton1Easy"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_marginEnd="5dp"
- android:layout_marginRight="5dp"
- android:layout_weight="1"
- android:background="@color/colorAccent"
- android:lines="2"
- android:text="New Button"
- android:textAllCaps="false"
- android:textColor="@color/button_text_color"
- android:textSize="16sp"
- android:textStyle="bold" />
- <Button
- android:id="@+id/answerButton2Easy"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorAccent"
- android:lines="2"
- android:text="New Button"
- android:textAllCaps="false"
- android:textColor="@color/button_text_color"
- android:textSize="16sp"
- android:textStyle="bold" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/row4LinearLayoutEasy"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:orientation="horizontal">
- <Button
- android:id="@+id/answerButton3Easy"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_marginEnd="5dp"
- android:layout_marginRight="5dp"
- android:layout_weight="1"
- android:background="@color/colorAccent"
- android:lines="2"
- android:text="New Button"
- android:textAllCaps="false"
- android:textColor="@color/button_text_color"
- android:textSize="16sp"
- android:textStyle="bold" />
- <Button
- android:id="@+id/answerButton4Easy"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@color/colorAccent"
- android:lines="2"
- android:text="New Button"
- android:textAllCaps="false"
- android:textColor="@color/button_text_color"
- android:textSize="16sp"
- android:textStyle="bold" />
- </LinearLayout>
- <TextView
- android:id="@+id/answerTextViewEasy"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom|center_horizontal"
- android:gravity="center_horizontal"
- android:textSize="36sp"
- android:textStyle="bold" />
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement