Skip to content

Commit 1fc62c8

Browse files
author
Tom James Holub
committed
message view design | #77
1 parent 8d756d0 commit 1fc62c8

File tree

7 files changed

+43
-35
lines changed

7 files changed

+43
-35
lines changed

FlowCrypt/src/main/res/drawable/bg_message_part_other.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,28 @@
66

77
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
88
android:paddingBottom="2dp"
9-
android:paddingLeft="12dp"
10-
android:paddingRight="4dp"
9+
android:paddingLeft="20dp"
10+
android:paddingRight="2dp"
1111
android:paddingTop="2dp">
1212

13+
<item android:gravity="left">
14+
<shape>
15+
<solid android:color="@android:color/white" />
16+
</shape>
17+
</item>
18+
1319
<item android:gravity="left">
1420
<shape xmlns:android="http://schemas.android.com/apk/res/android"
1521
android:shape="rectangle">
1622
<stroke
1723
android:width="1dp"
18-
android:color="@color/aluminum" />
24+
android:color="@color/light" />
1925
</shape>
2026
</item>
2127

2228
<item android:gravity="left">
2329
<shape>
24-
<size android:width="4dp" />
30+
<size android:width="8dp" />
2531
<solid android:color="@color/gray" />
2632
</shape>
2733
</item>

FlowCrypt/src/main/res/drawable/bg_message_part_pgp_message.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
88
android:paddingBottom="2dp"
9-
android:paddingLeft="12dp"
10-
android:paddingRight="4dp"
9+
android:paddingLeft="20dp"
10+
android:paddingRight="2dp"
1111
android:paddingTop="2dp">
12+
1213
<item>
1314
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
14-
android:src="@drawable/lock_seamless_bg_alpha"
15+
android:src="@drawable/lock_seamless_bg"
1516
android:tileMode="repeat" />
1617
</item>
1718

@@ -20,13 +21,13 @@
2021
android:shape="rectangle">
2122
<stroke
2223
android:width="1dp"
23-
android:color="@color/aluminum" />
24+
android:color="@color/light" />
2425
</shape>
2526
</item>
2627

2728
<item android:gravity="left">
2829
<shape>
29-
<size android:width="4dp" />
30+
<size android:width="8dp" />
3031
<solid android:color="@color/colorPrimary" />
3132
</shape>
3233
</item>
815 Bytes
Loading

FlowCrypt/src/main/res/layout/fragment_message_details.xml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929
android:layout_height="wrap_content"
3030
android:ellipsize="end"
3131
android:maxLines="1"
32-
android:textColor="@color/dark"
32+
android:textColor="@color/gray"
3333
android:textSize="@dimen/default_text_size_big"
3434
app:layout_constraintHorizontal_bias="0.0"
3535
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
3636
app:layout_constraintRight_toLeftOf="@+id/textViewDate"
3737
app:layout_constraintTop_toTopOf="@+id/guidelineTop"
38-
tools:text="[email protected]" />
38+
app:layout_goneMarginLeft="@dimen/default_margin_medium"
39+
tools:text="[email protected]" />
3940

4041
<ImageButton
4142
android:id="@+id/imageViewReplyAll"
@@ -45,6 +46,7 @@
4546
android:contentDescription="@string/reply_all"
4647
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"
4748
app:layout_constraintTop_toTopOf="@+id/guidelineTop"
49+
app:layout_goneMarginRight="@dimen/default_margin_medium"
4850
app:srcCompat="@mipmap/ic_action_name" />
4951

5052
<TextView
@@ -55,32 +57,32 @@
5557
android:layout_marginTop="@dimen/margin_top_message_subject"
5658
android:ellipsize="end"
5759
android:maxLines="2"
58-
android:textColor="@color/dark"
60+
android:textColor="@color/gray"
5961
android:textSize="@dimen/default_text_size_medium"
6062
app:layout_constraintHorizontal_bias="0.0"
6163
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
6264
app:layout_constraintRight_toLeftOf="@+id/textViewDate"
6365
app:layout_constraintTop_toBottomOf="@+id/textViewSenderAddress"
64-
tools:text="What up man? How are you doing? Tell me please" />
66+
app:layout_goneMarginLeft="@dimen/default_margin_medium"
67+
tools:text="Lorem ipsum subject subject subject subject subject" />
6568

6669
<TextView
6770
android:id="@+id/textViewDate"
6871
android:layout_width="wrap_content"
6972
android:layout_height="wrap_content"
70-
android:textColor="@color/dark"
73+
android:textColor="@color/gray"
7174
android:textSize="@dimen/default_text_size_medium"
75+
android:layout_marginRight="@dimen/default_margin_medium"
7276
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"
7377
app:layout_constraintTop_toTopOf="@+id/textViewSubject"
7478
tools:text="1:05 PM" />
7579

7680
<View
7781
android:id="@+id/layoutFooterOfHeader"
7882
android:layout_width="0dp"
79-
android:layout_height="@dimen/height_silver_line"
83+
android:layout_height="0dp"
8084
android:layout_gravity="center"
8185
android:layout_marginTop="@dimen/default_margin_medium"
82-
android:layout_weight="1"
83-
android:background="@color/silver"
8486
app:layout_constraintLeft_toLeftOf="parent"
8587
app:layout_constraintRight_toRightOf="parent"
8688
app:layout_constraintTop_toBottomOf="@+id/textViewSubject" />
@@ -89,7 +91,7 @@
8991
android:id="@+id/layoutMessageParts"
9092
android:layout_width="0dp"
9193
android:layout_height="wrap_content"
92-
android:layout_marginTop="@dimen/default_margin_content"
94+
android:layout_marginTop="@dimen/default_margin_content_small"
9395
android:orientation="vertical"
9496
app:layout_constraintHorizontal_bias="0.0"
9597
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
@@ -101,7 +103,7 @@
101103
android:layout_width="wrap_content"
102104
android:layout_height="wrap_content"
103105
android:orientation="vertical"
104-
app:layout_constraintGuide_begin="@dimen/default_margin_content" />
106+
app:layout_constraintGuide_begin="0dp" />
105107

106108
<android.support.constraint.Guideline
107109
android:id="@+id/guidelineTop"
@@ -115,7 +117,7 @@
115117
android:layout_width="wrap_content"
116118
android:layout_height="wrap_content"
117119
android:orientation="vertical"
118-
app:layout_constraintGuide_end="@dimen/default_margin_content" />
120+
app:layout_constraintGuide_end="0dp" />
119121

120122
</android.support.constraint.ConstraintLayout>
121123
</ScrollView>

FlowCrypt/src/main/res/layout/message_part_pgp_message.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@
1212
android:layout_marginBottom="@dimen/default_margin_medium"
1313
android:autoLink="web"
1414
android:background="@drawable/bg_message_part_pgp_message"
15-
android:textColor="@color/dark"
15+
android:textColor="@android:color/black"
1616
android:textIsSelectable="true"
1717
android:textSize="@dimen/default_text_size_medium"
18-
tools:text="This email contains a key backup. It will help you access your encrypted messages from other computers (along with your pass phrase). You can safely leave it in your inbox or archive it.
18+
tools:text="At nihil sequi quo maiores molestiae consequatur. Id aut nam voluptate doloribus saepe consequatur molestias. Eos sunt est ipsam accusantium saepe doloribus veritatis.
1919
20-
The key below is protected with pass phrase that only you know. You should make sure to note your pass phrase down.
21-
22-
DO NOT DELETE THIS EMAIL. Write me at [email protected] so that I can help. I respond very promptly." />
20+
Recusandae velit sit veniam asperiores nisi. Eius tempore ab voluptatum dolorum nihil qui beatae. Et cum aut iusto deserunt. Doloremque laudantium laborum nobis enim est a. Totam at minima velit perspiciatis magnam libero ut voluptate. Rerum labore consectetur hic aliquid." />

FlowCrypt/src/main/res/layout/message_part_public_key.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@
1818
android:layout_height="wrap_content"
1919
android:layout_marginTop="@dimen/default_margin_content_small"
2020
android:textIsSelectable="true"
21-
tools:text="This message includes a Public Key for [email protected]." />
21+
tools:text="Public Key for ..........................." />
2222

2323
<TextView
2424
android:id="@+id/textViewKeyWordsTemplate"
2525
android:layout_width="match_parent"
2626
android:layout_height="wrap_content"
2727
android:layout_marginTop="@dimen/default_margin_content"
2828
android:textIsSelectable="true"
29-
tools:text="KeyWords: ASK REFORM DEPEND TOWER ACTOR DIAGRAM " />
29+
tools:text="KeyWords: TESTING TESTING TESTING TESTING TESTING TESTING" />
3030

3131
<TextView
3232
android:id="@+id/textViewFingerprintTemplate"
3333
android:layout_width="match_parent"
3434
android:layout_height="wrap_content"
3535
android:layout_marginTop="@dimen/default_margin_content_small"
3636
android:textIsSelectable="true"
37-
tools:text="(Fingerprint: 8B8A 05A2 216E E6E4 C5EE 3D54 0D56 88EB F310 2BE7)" />
37+
tools:text="Fingerprint: XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX" />
3838

3939
<Switch
4040
android:id="@+id/switchShowPublicKey"
@@ -54,7 +54,7 @@
5454
android:textColor="#088447"
5555
android:textIsSelectable="true"
5656
android:visibility="gone"
57-
tools:text="(Fingerprint: 8B8A 05A2 216E E6E4 C5EE 3D54 0D56 88EB F310 2BE7)"
57+
tools:text="-----BEGIN PGP PUBLIC KEY-----\nxxxxx\nxxxxx\nxxxxx\nxxxxx\nxxxxx\nxxxxx\nxxxxx\n-----END PGP PUBLIC KEY-----"
5858
tools:visibility="visible" />
5959

6060
<Button

FlowCrypt/src/main/res/layout/message_part_text.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
android:id="@+id/textViewMessagePartText"
1010
android:layout_width="match_parent"
1111
android:layout_height="wrap_content"
12-
android:layout_marginBottom="@dimen/default_margin_medium"
12+
android:paddingBottom="@dimen/default_margin_medium"
13+
android:paddingLeft="@dimen/default_margin_medium"
14+
android:paddingRight="@dimen/default_margin_medium"
15+
android:background="@android:color/white"
1316
android:autoLink="web"
14-
android:textColor="@color/dark"
17+
android:textColor="@android:color/black"
1518
android:textIsSelectable="true"
1619
android:textSize="@dimen/default_text_size_medium"
17-
tools:text="This email contains a key backup. It will help you access your encrypted messages from other computers (along with your pass phrase). You can safely leave it in your inbox or archive it.
20+
tools:text="At nihil sequi quo maiores molestiae consequatur. Id aut nam voluptate doloribus saepe consequatur molestias. Eos sunt est ipsam accusantium saepe doloribus veritatis.
1821
19-
The key below is protected with pass phrase that only you know. You should make sure to note your pass phrase down.
20-
21-
DO NOT DELETE THIS EMAIL. Write me at [email protected] so that I can help. I respond very promptly." />
22+
Recusandae velit sit veniam asperiores nisi. Eius tempore ab voluptatum dolorum nihil qui beatae. Et cum aut iusto deserunt. Doloremque laudantium laborum nobis enim est a. Totam at minima velit perspiciatis magnam libero ut voluptate. Rerum labore consectetur hic aliquid." />

0 commit comments

Comments
 (0)