Skip to content

Commit ac2777f

Browse files
PrincejhabakCloudyPadmal
authored andcommitted
feat: Improve UI of FAQs (fossasia#1451)
* feat: Add checkable behavior to menu items under other category in the navigation drawer * feat: Add back button in the toolbar * feat: Improve UI of FAQs * feat: Improve UI of FAQs
1 parent 1de6e86 commit ac2777f

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
66
android:background="@color/white"
7-
android:orientation="vertical" >
7+
android:orientation="vertical">
88

99
<ExpandableListView
1010
android:id="@+id/expListView"
1111
android:layout_width="match_parent"
1212
android:layout_height="@dimen/dimen_zero_dp"
13-
android:layout_weight="0.14">
13+
android:layout_weight="0.14"
14+
android:childDivider="@android:color/transparent">
1415
</ExpandableListView>
1516

1617
</LinearLayout>

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,35 @@
99
<LinearLayout
1010
android:layout_width="@dimen/list_group_layout_width"
1111
android:layout_height="@dimen/list_group_layout_height"
12-
android:orientation="vertical" >
12+
android:orientation="vertical">
1313

1414
<TextView
1515
android:layout_width="match_parent"
1616
android:layout_height="match_parent"
17+
android:layout_marginTop="@dimen/faq_question_margin_top"
1718
android:text="@string/question"
1819
android:textAlignment="center"
19-
android:layout_marginTop="@dimen/faq_question_margin_top"
20-
android:textColor="@color/black"
21-
android:textStyle="bold"
22-
android:textSize="@dimen/faq_question_text_size"/>
20+
android:textColor="@color/colorPrimary"
21+
android:textSize="@dimen/faq_question_text_size" />
2322

2423
</LinearLayout>
2524

2625
<LinearLayout
2726
android:layout_width="match_parent"
2827
android:layout_height="wrap_content"
29-
android:orientation="vertical" >
28+
android:orientation="vertical">
3029

3130
<TextView
3231
android:id="@+id/lblListHeader"
3332
android:layout_width="match_parent"
3433
android:layout_height="match_parent"
3534
android:gravity="center_vertical"
35+
android:justificationMode="inter_word"
36+
android:paddingBottom="@dimen/text_padding_top"
3637
android:paddingLeft="@dimen/text_padding_top"
3738
android:paddingTop="@dimen/text_padding_top"
38-
android:paddingBottom="@dimen/text_padding_top"
39-
android:textColor="@color/black"
39+
android:textColor="@color/colorPrimaryDark"
4040
android:textSize="@dimen/text_size"
41-
android:justificationMode="inter_word"
4241
tools:ignore="SpUsage" />
4342

4443
</LinearLayout>

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="wrap_content"
5+
android:background="@color/background"
56
android:orientation="vertical">
6-
7+
78
<LinearLayout
89
android:layout_width="match_parent"
910
android:layout_height="wrap_content">
1011

1112
<TextView
1213
android:layout_width="wrap_content"
1314
android:layout_height="match_parent"
14-
android:layout_marginTop="@dimen/faq_question_margin_top"
1515
android:layout_marginLeft="@dimen/faq_answer_margin_start"
16+
android:layout_marginTop="@dimen/faq_question_margin_top"
1617
android:text="@string/answer"
1718
android:textAlignment="center"
1819
android:textColor="@color/black"
19-
android:textSize="@dimen/faq_question_text_size"
20-
android:textStyle="bold" />
20+
android:textSize="@dimen/faq_question_text_size" />
2121

2222
<TextView
2323
android:id="@+id/lblListItem"
2424
android:layout_width="fill_parent"
2525
android:layout_height="match_parent"
2626
android:layout_marginLeft="@dimen/faq_answer_margin"
27+
android:justificationMode="inter_word"
2728
android:paddingBottom="@dimen/list_item_padding"
2829
android:paddingLeft="@dimen/text_padding_top"
2930
android:paddingRight="@dimen/text_padding_top"
3031
android:paddingTop="@dimen/list_item_padding"
31-
android:textSize="@dimen/text_size_wavegen"
32-
android:justificationMode="inter_word"/>
32+
android:textSize="@dimen/text_size_wavegen" />
3333

3434
</LinearLayout>
3535

0 commit comments

Comments
 (0)