Commit 291fd28e by likorn

Layout refactoring

parent 6d2307f6
...@@ -16,8 +16,7 @@ ...@@ -16,8 +16,7 @@
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent" />
</View>
<ImageButton <ImageButton
android:id="@+id/btn_back" android:id="@+id/btn_back"
......
...@@ -8,17 +8,16 @@ ...@@ -8,17 +8,16 @@
android:background="#DADADA" android:background="#DADADA"
tools:context="com.paktalin.quickmax.TaskActivity"> tools:context="com.paktalin.quickmax.TaskActivity">
<FrameLayout <View
android:id="@+id/layout_gradient" android:id="@+id/layout_gradient"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_marginBottom="32dp" android:layout_marginBottom="32dp"
android:background="@drawable/gradient" android:background="@drawable/gradient"
android:elevation="2dp"
app:layout_constraintBottom_toBottomOf="@+id/cv_task" app:layout_constraintBottom_toBottomOf="@+id/cv_task"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent"/>
<ImageButton <ImageButton
android:id="@+id/btn_back" android:id="@+id/btn_back"
...@@ -28,10 +27,10 @@ ...@@ -28,10 +27,10 @@
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:tint="@android:color/white" android:tint="@android:color/white"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_back" /> app:srcCompat="@drawable/ic_back" />
</FrameLayout>
<TextView <TextView
android:id="@+id/tv_response" android:id="@+id/tv_response"
style="@style/TextAppearance.MaterialComponents.Headline4" style="@style/TextAppearance.MaterialComponents.Headline4"
...@@ -48,12 +47,16 @@ ...@@ -48,12 +47,16 @@
<com.google.android.material.card.MaterialCardView <com.google.android.material.card.MaterialCardView
android:id="@+id/cv_task" android:id="@+id/cv_task"
style="@style/MyCard"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="150dp" android:layout_height="wrap_content"
android:layout_margin="16dp" android:layout_margin="16dp"
app:cardElevation="4dp" app:cardCornerRadius="6dp"
app:cardMaxElevation="4dp" 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_constraintBottom_toTopOf="@+id/layout_answers"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
...@@ -62,7 +65,7 @@ ...@@ -62,7 +65,7 @@
<TextView <TextView
android:id="@+id/tv_task" android:id="@+id/tv_task"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
...@@ -152,11 +155,11 @@ ...@@ -152,11 +155,11 @@
android:id="@+id/btn_next" android:id="@+id/btn_next"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="8dp" android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="16dp"
android:text="@string/btn_next" android:text="@string/btn_next"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent" />
android:visibility="invisible"/>
</androidx.constraintlayout.widget.ConstraintLayout> </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