-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add radiobutton and EditText dimens files add strings files add All questions
- Loading branch information
1 parent
f5d47b8
commit f74d843
Showing
4 changed files
with
156 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,76 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
<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" | ||
tools:context=".MainActivity"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Quiz!" /> | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:layout_margin="@dimen/oneSix" | ||
android:fontFamily="monospace" | ||
android:text="@string/qName" | ||
android:textSize="@dimen/font_size_medium" /> | ||
<EditText | ||
android:id="@+id/name" | ||
android:layout_marginStart="@dimen/oneFour" | ||
android:layout_marginEnd="@dimen/ten" | ||
android:layout_marginTop="@dimen/oneSix" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:hint="@string/Name" | ||
android:inputType="textCapWords"/> | ||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/oneSix" | ||
android:layout_marginEnd="@dimen/oneSix" | ||
android:layout_marginStart="@dimen/oneFour" | ||
android:text="@string/Q1" | ||
android:textSize="@dimen/font_size_medium"/> | ||
<RadioGroup | ||
android:id="@+id/rg_Q1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/oneSix" | ||
android:layout_marginStart="@dimen/oneFour"> | ||
<RadioButton | ||
android:id="@+id/rb_Q1_op1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/Q1_Op1" | ||
android:textSize="@dimen/font_size_medium"> | ||
</RadioButton> | ||
<RadioButton | ||
android:id="@+id/rb_Q1_op2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/Q1_Op2" | ||
android:textSize="@dimen/font_size_medium"> | ||
</RadioButton> | ||
<RadioButton | ||
android:id="@+id/rb_Q1_op3" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/Q1_Op3" | ||
android:textSize="@dimen/font_size_medium"> | ||
</RadioButton> | ||
<RadioButton | ||
android:id="@+id/rb_Q1_op4" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/Q1_Op4" | ||
android:textSize="@dimen/font_size_medium"> | ||
</RadioButton> | ||
|
||
</RadioGroup> | ||
|
||
</LinearLayout> | ||
|
||
</android.support.constraint.ConstraintLayout> | ||
</ScrollView> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,63 @@ | ||
<resources> | ||
<string name="app_name">Quiz</string> | ||
<string name="qName">Educational</string> | ||
<string name="Name"> Enter Your Name</string> | ||
<string name="Q1">Q1. What method you should override to use Android menu system ?</string> | ||
<string name="Q1_Op1">onCreateOptionsMenu()</string> | ||
<string name="Q1_Op2">onCreateMenu()</string> | ||
<string name="Q1_Op3">onMenuCreated()</string> | ||
<string name="Q1_Op4">onCreateContextMenu()</string> | ||
<!--q2--> | ||
<string name="Q2">Q2. Which configuration file holds the permission to use the internet ?</string> | ||
<string name="Q2_Op1">Layout file</string> | ||
<string name="Q2_Op2">Property file</string> | ||
<string name="Q2_Op3">Java source file</string> | ||
<string name="Q2_Op4">Manifest file</string> | ||
<!--q3--> | ||
<string name="Q3">Q3. Which of the following is NOT a valid usage for Intents ?</string> | ||
<string name="Q3_Op1">Activate and Activity</string> | ||
<string name="Q3_Op2">Activate a Service</string> | ||
<string name="Q3_Op3">Activate a Broadcast receiver</string> | ||
<string name="Q3_Op4">Activate a SQLite DB Connection</string> | ||
<!--q4--> | ||
<string name="Q4">Q4. Which method is used to close an activity ?</string> | ||
<string name="Q4_Op1">Destroy( )</string> | ||
<string name="Q4_Op2">Finish( )</string> | ||
<string name="Q4_Op3">Stop( )</string> | ||
<string name="Q4_Op4">Close( )</string> | ||
<!--q5--> | ||
<string name="Q5">Q5. Which of these is not defined as a process state ?</string> | ||
<string name="Q5_Op1">Non-visible</string> | ||
<string name="Q5_Op2">Visible</string> | ||
<string name="Q5_Op3">Foreground</string> | ||
<string name="Q5_Op4">Background</string> | ||
<!--Checkbox and q6--> | ||
<string name="Q6">Q6. Which of the following valid Android resource file name ?</string> | ||
<string name="Q6_Op1">mylayout.xml</string> | ||
<string name="Q6_Op2">myLayout.xml</string> | ||
<string name="Q6_Op3">my_layout.xml</string> | ||
<string name="Q6_Op4">mylayout1.xml</string> | ||
<!--q7--> | ||
<string name="Q7">Q7. What is the name of the folder that contains the R.java file ?</string> | ||
<string name="Q7_Op1">src</string> | ||
<string name="Q7_Op2">res</string> | ||
<string name="Q7_Op3">bin</string> | ||
<string name="Q7_Op4">gen</string> | ||
<!--q8--> | ||
<string name="Q8">Q8. What does the src folder contain ?</string> | ||
<string name="Q8_Op1">Image and icon files</string> | ||
<string name="Q8_Op2">XML resource files</string> | ||
<string name="Q8_Op3">The application manifest file</string> | ||
<string name="Q8_Op4">Java source code files</string> | ||
<!--q9--> | ||
<string name="Q9">Q9. What does the Android project folder “res/” contain ?</string> | ||
<string name="Q9_Op1">Java Activity classes</string> | ||
<string name="Q9_Op2">Resource files</string> | ||
<string name="Q9_Op3">Java source code</string> | ||
<string name="Q9_Op4">Libraries</string> | ||
<!--q10--> | ||
<string name="Q10">Q10.You can create a custom view by extending class Activity.(True/False)</string> | ||
<string name="getResult">Submit</string> | ||
<string name="Answer">Answer</string> | ||
<string name="reset">Reset</string> | ||
</resources> |
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