117 lines
4.8 KiB
XML
117 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout 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"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
tools:context=".fragments.TaskFragment">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Overline"
|
|
android:textAlignment="center"/>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="100sp"
|
|
android:layout_margin="10sp"
|
|
android:layout_below="@id/name"
|
|
app:cardBackgroundColor="@color/colorPrimaryDark">
|
|
<TextView
|
|
android:id="@+id/question"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:textColor="@android:color/primary_text_dark"
|
|
android:textSize="30sp"
|
|
android:textAlignment="center"/>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<TextView
|
|
android:id="@+id/time"
|
|
android:layout_below="@id/card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
|
|
android:textAlignment="center"/>
|
|
<TextView
|
|
android:id="@+id/question_count"
|
|
android:layout_below="@id/card"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
|
|
android:layout_alignStart="@id/card"
|
|
android:layout_alignLeft="@id/card" />
|
|
<TextView
|
|
android:id="@+id/question_correct"
|
|
android:layout_below="@id/card"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
|
|
android:layout_alignEnd="@id/card"
|
|
android:layout_alignRight="@id/card" />
|
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
|
android:id="@+id/progress"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
android:layout_below="@id/time"
|
|
android:indeterminate="false"
|
|
app:mpb_progressStyle="horizontal"
|
|
android:background="@color/gold"
|
|
app:mpb_useIntrinsicPadding="false"
|
|
app:mpb_secondaryProgressTint="@color/silver"
|
|
app:mpb_progressTint="@color/bronze"
|
|
android:secondaryProgress="80"
|
|
android:progress="60"
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
|
|
android:layout_alignStart="@id/card"
|
|
android:layout_alignLeft="@id/card"
|
|
android:layout_alignEnd="@id/card"
|
|
android:layout_alignRight="@id/card" />
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
|
android:id="@+id/progress2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
android:layout_below="@id/progress"
|
|
android:indeterminate="false"
|
|
app:mpb_progressStyle="horizontal"
|
|
android:background="@color/colorPrimaryLight"
|
|
app:mpb_useIntrinsicPadding="false"
|
|
android:secondaryProgress="100"
|
|
android:progress="0"
|
|
app:mpb_secondaryProgressTint="@color/colorPrimaryLight"
|
|
app:mpb_progressTint="@color/colorPrimary"
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
|
|
android:layout_alignStart="@id/card"
|
|
android:layout_alignLeft="@id/card"
|
|
android:layout_alignEnd="@id/card"
|
|
android:layout_alignRight="@id/card" />
|
|
|
|
<TextView
|
|
android:id="@+id/answer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@id/keyboardview"
|
|
android:background="@color/colorPrimaryDark"
|
|
android:gravity="center"
|
|
android:text="@string/hello_blank_fragment"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large" />
|
|
|
|
<de.sebse.mentalarithmetic.utils.BoardView xmlns:custom="http://schemas.android.com/apk/res/de.sebse.mentalarithmetic"
|
|
android:id="@+id/keyboardview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
custom:showText="true"
|
|
custom:labelPosition="left"
|
|
/>
|
|
|
|
</RelativeLayout> |