Skip to content

Commit 7d3a837

Browse files
Refactor HelpActivity layout and add question icon
This commit introduces the following changes: - Adds a question icon to the FAQ items in `item_help_faq.xml`. - Adjusts margins and shape appearances in `activity_help.xml` for better visual consistency. - Modifies the card corner radius in `ad_help.xml`.
1 parent 7849925 commit 7d3a837

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

app/src/main/res/layout/activity_help.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.constraintlayout.widget.ConstraintLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:app="http://schemas.android.com/apk/res-auto"
54
android:id="@+id/container"
65
android:layout_width="match_parent"
@@ -37,7 +36,6 @@
3736
style="@style/Widget.Material3.CardView.Filled"
3837
android:layout_width="match_parent"
3938
android:layout_height="wrap_content"
40-
android:layout_marginBottom="2dp"
4139
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardViewTopRoundedFilled">
4240

4341
<androidx.appcompat.widget.LinearLayoutCompat
@@ -51,20 +49,19 @@
5149
android:id="@+id/faq_native_ad"
5250
android:layout_width="match_parent"
5351
android:layout_height="wrap_content"
54-
android:layout_marginBottom="24dp"
52+
android:layout_marginVertical="2dp"
5553
app:nativeAdLayout="@layout/ad_help" />
5654

5755
<com.google.android.material.card.MaterialCardView
5856
android:id="@+id/contact_support_card"
5957
style="@style/Widget.Material3.CardView.Filled"
6058
android:layout_width="match_parent"
6159
android:layout_height="wrap_content"
62-
android:layout_marginBottom="16dp"
6360
android:clickable="true"
6461
android:focusable="true"
6562
android:foreground="?attr/selectableItemBackground"
6663
app:cardBackgroundColor="?attr/colorSurfaceVariant"
67-
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardView">
64+
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardViewBottomRoundedFilled">
6865

6966
<androidx.appcompat.widget.LinearLayoutCompat
7067
android:layout_width="match_parent"

app/src/main/res/layout/ad_help.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
style="@style/Widget.Material3.CardView.Filled"
1010
android:layout_width="match_parent"
1111
android:layout_height="wrap_content"
12-
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardViewBottomRoundedFilled">
12+
app:cardCornerRadius="4dp">
1313

1414
<androidx.appcompat.widget.LinearLayoutCompat
1515
android:layout_width="match_parent"

app/src/main/res/layout/item_help_faq.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@
3838
android:paddingVertical="12dp"
3939
tools:targetApi="31">
4040

41+
<com.google.android.material.imageview.ShapeableImageView
42+
android:id="@+id/question_icon"
43+
android:layout_width="36dp"
44+
android:layout_height="36dp"
45+
android:layout_marginHorizontal="4dp"
46+
app:contentPadding="6dp"
47+
android:src="@drawable/ic_feedback"
48+
android:background="?attr/colorPrimaryContainer"
49+
app:shapeAppearanceOverlay="@style/ShapeAppearance.Material3.Corner.Full"
50+
app:tint="?attr/colorOnSurfaceVariant" />
51+
4152
<com.google.android.material.textview.MaterialTextView
4253
android:id="@+id/question"
4354
android:layout_width="0dp"

0 commit comments

Comments
 (0)