mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
* Quiz (#1629) * Layout inflated * Layout for mcq added * Inflated Basic Layout * Implemented basic flow * Added the basic implementation pf score * Added the result layout * Added the result layout * Added functionality to set result * Changed the launcher intent to Quiz Activity for testing purpose * Explanations of answers added * Improved the layout of quiz result a bit * Fixed some minor issues * Fixed build issues * Api Added and basic structure for calling implemented * Added intents * Added the title * Fixed image error and improved quality of pr * Made separate class for checking quiz * Added counter * Implemented back and next for quiz result * Added back functionality to quiz * Added progressBar * Fixed bugs * Improved code quality * Imporved code Quality * Updated strings * Added share screenshot function * Added checks and improved UI * Removed unused string * Removed unused string * Adding checks and improving code quality * Changed string * Improved code quality * Update strings.xml * Update MediaWikiApi.java * Fix build
65 lines
No EOL
2.5 KiB
XML
65 lines
No EOL
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="@dimen/activity_margin_vertical"
|
|
android:layout_marginBottom="@dimen/activity_margin_vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/quiz_positive_answer"
|
|
android:textIsSelectable="false"
|
|
android:layout_marginLeft="@dimen/activity_margin_horizontal"
|
|
android:layout_marginRight="@dimen/activity_margin_horizontal"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="YES"
|
|
style="?android:textAppearanceMedium"
|
|
android:textColor="@color/secondaryTextColor" />
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:srcCompat="@drawable/ic_done_black_24dp"
|
|
android:layout_marginLeft="@dimen/activity_margin_horizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/activity_margin_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:textIsSelectable="false"
|
|
android:id="@+id/quiz_negative_answer"
|
|
android:layout_marginLeft="@dimen/activity_margin_horizontal"
|
|
android:layout_marginRight="@dimen/activity_margin_horizontal"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="NO"
|
|
style="?android:textAppearanceMedium"
|
|
android:textColor="@color/secondaryTextColor" />
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:srcCompat="@drawable/ic_clear_black_24dp"
|
|
android:layout_marginLeft="@dimen/activity_margin_horizontal" />
|
|
</LinearLayout>
|
|
</LinearLayout> |