Created
August 5, 2016 16:00
-
-
Save RowlandOti/641aa198bf3e9a503334eff2ee3717c6 to your computer and use it in GitHub Desktop.
QuizActivity layout file
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<ScrollView 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:fillViewport="true" | |
android:scrollbars="none" | |
> | |
<LinearLayout | |
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.android.quizz.MainActivity"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="16dp" | |
android:layout_marginTop="16dp" | |
android:text="Enjoy these Questions" /> | |
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="32dp" | |
android:orientation="vertical"> | |
<TextView | |
style="@style/head" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="24dp" | |
android:text="Which is the longest river in the world?" /> | |
<CheckBox | |
android:id="@+id/nileriver" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="16dp" | |
android:text="R.Nile" | |
android:textSize="16sp" /> | |
<CheckBox | |
android:id="@+id/zambeziriver" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="16dp" | |
android:text="R.Zambezi" | |
android:textSize="16sp" /> | |
<CheckBox | |
android:id="@+id/nepalriver" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="16dp" | |
android:text="R.Nepal" | |
android:textSize="16sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="32dp" | |
android:orientation="horizontal" /> | |
<TextView | |
style="@style/head" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="16dp" | |
android:text="Which category would you classify a crocodile" /> | |
<RadioGroup | |
android:id="@+id/animal" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal"> | |
<RadioButton | |
android:id="@+id/radio_mammal" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Mammal" | |
/> | |
<RadioButton | |
android:id="@+id/radio_reptile" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Reptile" /> | |
</RadioGroup> | |
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" /> | |
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" /> | |
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="32dp" | |
android:orientation="vertical"> | |
<TextView | |
style="@style/head" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="16dp" | |
android:text="What is the capital city of England?" /> | |
<EditText | |
android:id="@+id/et_continent" | |
android:layout_width="match_parent" | |
android:layout_height="60dp" | |
android:background="#B2EBF2" | |
android:hint="type here" /> | |
</LinearLayout> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:background="@android:color/holo_blue_bright" | |
android:gravity="bottom" | |
android:orientation="vertical"> | |
<RelativeLayout | |
android:id="@+id/relativeLayout1" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:background="#18FFFF"> | |
<Button | |
android:id="@+id/button1" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentLeft="true" | |
android:layout_margin="3dp" | |
android:background="@android:color/white" | |
android:onClick="submit" | |
android:text="submit" /> | |
<Button | |
android:id="@+id/button2" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentRight="true" | |
android:layout_margin="3dp" | |
android:background="@android:color/white" | |
android:onClick="reset" | |
android:text="Reset" /> | |
</RelativeLayout> | |
</LinearLayout> | |
<TextView | |
android:id="@+id/socre_view" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:layout_marginBottom="16dp" | |
android:layout_marginTop="16dp" | |
android:text="your Score is :" | |
android:textSize="20sp" /> | |
</LinearLayout> | |
</ScrollView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment