Commit 291fd28e by likorn

Layout refactoring

parent 6d2307f6
......@@ -16,8 +16,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
</View>
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
android:id="@+id/btn_back"
......
......@@ -8,29 +8,28 @@
android:background="#DADADA"
tools:context="com.paktalin.quickmax.TaskActivity">
<FrameLayout
<View
android:id="@+id/layout_gradient"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="32dp"
android:background="@drawable/gradient"
android:elevation="2dp"
app:layout_constraintBottom_toBottomOf="@+id/cv_task"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageButton
android:id="@+id/btn_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:background="@android:color/transparent"
android:tint="@android:color/white"
app:srcCompat="@drawable/ic_back" />
app:layout_constraintTop_toTopOf="parent"/>
</FrameLayout>
<ImageButton
android:id="@+id/btn_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:background="@android:color/transparent"
android:tint="@android:color/white"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_back" />
<TextView
android:id="@+id/tv_response"
......@@ -48,12 +47,16 @@
<com.google.android.material.card.MaterialCardView
android:id="@+id/cv_task"
style="@style/MyCard"
android:layout_width="0dp"
android:layout_height="150dp"
android:layout_height="wrap_content"
android:layout_margin="16dp"
app:cardElevation="4dp"
app:cardMaxElevation="4dp"
app:cardCornerRadius="6dp"
app:cardElevation="1dp"
app:cardMaxElevation="2dp"
app:contentPaddingBottom="40dp"
app:contentPaddingLeft="16dp"
app:contentPaddingRight="16dp"
app:contentPaddingTop="40dp"
app:layout_constraintBottom_toTopOf="@+id/layout_answers"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
......@@ -62,7 +65,7 @@
<TextView
android:id="@+id/tv_task"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="16dp"
......@@ -152,11 +155,11 @@
android:id="@+id/btn_next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:text="@string/btn_next"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:visibility="invisible"/>
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment