diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-01 17:52:14 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-01 17:52:14 +0200 |
commit | 34706a5e024df16027a292953606114db7e12dbe (patch) | |
tree | 5f97609f6b790195ffde305ac24cf8dedceae135 /src/main/res/layout | |
parent | a69c98c5c58da0babe570a1b7eebaacf58ae5a05 (diff) |
use text styles in more places
Diffstat (limited to 'src/main/res/layout')
-rw-r--r-- | src/main/res/layout/activity_edit_account.xml | 25 | ||||
-rw-r--r-- | src/main/res/layout/activity_publish_profile_picture.xml | 4 | ||||
-rw-r--r-- | src/main/res/layout/activity_set_presence.xml | 15 | ||||
-rw-r--r-- | src/main/res/layout/activity_share_locaction.xml | 29 | ||||
-rw-r--r-- | src/main/res/layout/contact_key.xml | 1 | ||||
-rw-r--r-- | src/main/res/layout/dialog_show_password.xml | 2 | ||||
-rw-r--r-- | src/main/res/layout/dialog_verify_fingerprints.xml | 9 | ||||
-rw-r--r-- | src/main/res/layout/fragment_conversation.xml | 6 | ||||
-rw-r--r-- | src/main/res/layout/list_item_tag.xml | 11 | ||||
-rw-r--r-- | src/main/res/layout/message_content.xml | 119 | ||||
-rw-r--r-- | src/main/res/layout/message_date_bubble.xml | 3 | ||||
-rw-r--r-- | src/main/res/layout/message_received.xml | 22 | ||||
-rw-r--r-- | src/main/res/layout/message_sent.xml | 27 | ||||
-rw-r--r-- | src/main/res/layout/message_status.xml | 24 | ||||
-rw-r--r-- | src/main/res/layout/presence_template.xml | 28 |
15 files changed, 144 insertions, 181 deletions
diff --git a/src/main/res/layout/activity_edit_account.xml b/src/main/res/layout/activity_edit_account.xml index e0ef55c6e..3df1ec353 100644 --- a/src/main/res/layout/activity_edit_account.xml +++ b/src/main/res/layout/activity_edit_account.xml @@ -495,18 +495,14 @@ android:id="@+id/pgp_fingerprint" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:fontFamily="monospace" - android:textColor="@color/primary" - android:textSize="?attr/TextSizeBody" - android:typeface="monospace" /> + android:textAppearance="@style/TextAppearance.Conversations.Fingerprint" /> <TextView android:id="@+id/pgp_fingerprint_desc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/openpgp_key_id" - android:textColor="@color/black54" - android:textSize="?attr/TextSizeInfo" /> + android:textAppearance="@style/TextAppearance.AppCompat.Caption" /> </LinearLayout> <ImageButton @@ -540,18 +536,14 @@ android:id="@+id/otr_fingerprint" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:fontFamily="monospace" - android:textColor="@color/black87" - android:textSize="?attr/TextSizeBody" - android:typeface="monospace" /> + android:textAppearance="@style/TextAppearance.Conversations.Fingerprint" /> <TextView android:id="@+id/otr_fingerprint_desc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/otr_fingerprint" - android:textColor="@color/black54" - android:textSize="?attr/TextSizeInfo" /> + android:textAppearance="@style/TextAppearance.AppCompat.Caption" /> </LinearLayout> @@ -586,18 +578,13 @@ android:id="@+id/axolotl_fingerprint" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:fontFamily="monospace" - android:textColor="@color/black87" - android:textSize="?attr/TextSizeBody" - android:typeface="monospace" /> + android:textAppearance="@style/TextAppearance.Conversations.Fingerprint" /> <TextView android:id="@+id/own_fingerprint_desc" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/omemo_fingerprint" - android:textColor="@color/black54" - android:textSize="?attr/TextSizeInfo" /> + android:textAppearance="@style/TextAppearance.AppCompat.Caption" /> </LinearLayout> <LinearLayout diff --git a/src/main/res/layout/activity_publish_profile_picture.xml b/src/main/res/layout/activity_publish_profile_picture.xml index ee60dcae0..1df224831 100644 --- a/src/main/res/layout/activity_publish_profile_picture.xml +++ b/src/main/res/layout/activity_publish_profile_picture.xml @@ -82,8 +82,8 @@ android:layout_marginTop="8dp" android:minLines="3" android:textAlignment="center" - android:textColor="?attr/color_text_primary" - android:textAppearance="@style/TextAppearance.AppCompat.Body1"/> + android:textAppearance="@style/TextAppearance.AppCompat.Body1" + android:textColor="?attr/color_text_primary" /> </LinearLayout> </android.support.v7.widget.CardView> diff --git a/src/main/res/layout/activity_set_presence.xml b/src/main/res/layout/activity_set_presence.xml index 1996e6fdf..8ecf792a8 100644 --- a/src/main/res/layout/activity_set_presence.xml +++ b/src/main/res/layout/activity_set_presence.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android"> + <ScrollView android:id="@+id/scroll_view" android:layout_width="fill_parent" @@ -31,15 +32,13 @@ android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:hint="@string/status_message" - android:inputType="textMultiLine" - android:textColor="?attr/color_text_primary" - android:textSize="?attr/TextSizeBody"/> + android:inputType="textMultiLine" /> <Spinner android:id="@+id/presence_show" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal"/> + android:layout_gravity="center_horizontal" /> <CheckBox android:id="@+id/all_accounts" @@ -47,9 +46,7 @@ android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:layout_marginTop="16dp" - android:text="@string/all_accounts_on_this_device" - android:textColor="?attr/color_text_primary" - android:textSize="?attr/TextSizeBody"/> + android:text="@string/all_accounts_on_this_device" /> <Button android:id="@+id/change_presence" @@ -60,7 +57,7 @@ android:layout_marginBottom="-8dp" android:layout_marginRight="-8dp" android:text="@string/change_presence" - android:textColor="@color/accent"/> + android:textColor="@color/accent" /> </LinearLayout> </android.support.v7.widget.CardView> @@ -78,7 +75,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="@dimen/card_padding_regular"/> + android:padding="@dimen/card_padding_list" /> </android.support.v7.widget.CardView> </LinearLayout> </ScrollView> diff --git a/src/main/res/layout/activity_share_locaction.xml b/src/main/res/layout/activity_share_locaction.xml index c9a146825..2185ddc29 100644 --- a/src/main/res/layout/activity_share_locaction.xml +++ b/src/main/res/layout/activity_share_locaction.xml @@ -7,23 +7,22 @@ <WebView android:id="@+id/webView" - android:layout_above="@+id/snackbar" android:layout_width="match_parent" - android:layout_height="match_parent"> - </WebView> + android:layout_height="match_parent" + android:layout_above="@+id/snackbar"></WebView> <RelativeLayout android:id="@+id/snackbar" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:layout_marginTop="4dp" + android:layout_above="@+id/button_bar" android:layout_marginBottom="4dp" android:layout_marginLeft="8dp" android:layout_marginRight="8dp" - android:layout_above="@+id/button_bar" + android:layout_marginTop="4dp" android:background="@drawable/snackbar" android:minHeight="48dp" - android:visibility="visible" > + android:visibility="visible"> <TextView android:layout_width="wrap_content" @@ -32,26 +31,24 @@ android:layout_centerVertical="true" android:layout_toLeftOf="@+id/snackbar_action" android:paddingLeft="24dp" - android:textColor="@color/white" - android:textSize="?attr/TextSizeBody" - android:text="@string/location_sharing_disabled"/> + android:text="@string/location_sharing_disabled" + android:textAppearance="@style/TextAppearance.Conversations.Body1.OnDark" /> <TextView android:id="@+id/snackbar_action" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" android:paddingBottom="16dp" android:paddingLeft="24dp" android:paddingRight="24dp" android:paddingTop="16dp" - android:textAllCaps="true" - android:textColor="@color/white" - android:textSize="?attr/TextSizeBody" - android:textStyle="bold" android:text="@string/enable" - android:layout_alignParentTop="true" - android:layout_alignParentRight="true" - android:layout_alignParentEnd="true"/> + android:textAllCaps="true" + android:textAppearance="@style/TextAppearance.Conversations.Body1.OnDark" + android:textStyle="bold" /> </RelativeLayout> <LinearLayout diff --git a/src/main/res/layout/contact_key.xml b/src/main/res/layout/contact_key.xml index a9bb0e49d..45b1c5ca3 100644 --- a/src/main/res/layout/contact_key.xml +++ b/src/main/res/layout/contact_key.xml @@ -20,7 +20,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:clickable="true" - android:fontFamily="monospace" android:longClickable="true" android:textAppearance="@style/TextAppearance.Conversations.Fingerprint" /> diff --git a/src/main/res/layout/dialog_show_password.xml b/src/main/res/layout/dialog_show_password.xml index 299b65dca..7d73f0dec 100644 --- a/src/main/res/layout/dialog_show_password.xml +++ b/src/main/res/layout/dialog_show_password.xml @@ -13,7 +13,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:typeface="monospace" - android:textSize="?attr/TextSizeHeadline" + android:textSize="?attr/TextSizeBody" android:fontFamily="monospace" android:layout_gravity="center_horizontal" android:textColor="@color/black87"></TextView> diff --git a/src/main/res/layout/dialog_verify_fingerprints.xml b/src/main/res/layout/dialog_verify_fingerprints.xml index 38c1cfa2b..ce2be3dae 100644 --- a/src/main/res/layout/dialog_verify_fingerprints.xml +++ b/src/main/res/layout/dialog_verify_fingerprints.xml @@ -3,23 +3,22 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" + android:paddingBottom="?attr/dialog_vertical_padding" android:paddingLeft="?attr/dialog_horizontal_padding" android:paddingRight="?attr/dialog_horizontal_padding" - android:paddingBottom="?attr/dialog_vertical_padding" android:paddingTop="?attr/dialog_vertical_padding"> <TextView android:id="@+id/warning" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textSize="?attr/TextSizeBody" - android:textColor="@color/accent"/> + android:textAppearance="@style/TextAppearance.Conversations.Body1" /> + <CheckBox - android:layout_marginTop="8dp" android:id="@+id/trusted_source" android:layout_width="wrap_content" - android:textColor="@color/accent" android:layout_height="wrap_content" + android:layout_marginTop="8dp" android:text="@string/i_followed_this_link_from_a_trusted_source" /> </LinearLayout>
\ No newline at end of file diff --git a/src/main/res/layout/fragment_conversation.xml b/src/main/res/layout/fragment_conversation.xml index e969efaee..8c4acf3c6 100644 --- a/src/main/res/layout/fragment_conversation.xml +++ b/src/main/res/layout/fragment_conversation.xml @@ -146,8 +146,7 @@ android:layout_centerVertical="true" android:layout_toLeftOf="@+id/snackbar_action" android:paddingLeft="24dp" - android:textColor="@color/white70" - android:textSize="?attr/TextSizeBody" /> + android:textAppearance="@style/TextAppearance.Conversations.Body1.OnDark" /> <TextView android:id="@+id/snackbar_action" @@ -160,8 +159,7 @@ android:paddingRight="24dp" android:paddingTop="16dp" android:textAllCaps="true" - android:textColor="@color/white" - android:textSize="?attr/TextSizeBody" + android:textAppearance="@style/TextAppearance.Conversations.Body1.OnDark" android:textStyle="bold" /> </RelativeLayout> diff --git a/src/main/res/layout/list_item_tag.xml b/src/main/res/layout/list_item_tag.xml index fcb7dd984..53684df83 100644 --- a/src/main/res/layout/list_item_tag.xml +++ b/src/main/res/layout/list_item_tag.xml @@ -1,13 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_height="wrap_content" android:layout_width="wrap_content" - android:paddingTop="1dp" + android:layout_height="wrap_content" + android:layout_margin="2dp" + android:maxLines="1" android:paddingBottom="1dp" android:paddingLeft="4dp" android:paddingRight="4dp" - android:textSize="?attr/TextSizeInfo" - android:textColor="@color/white" + android:paddingTop="1dp" android:textAllCaps="true" - android:maxLines="1" - android:layout_margin="2dp" />
\ No newline at end of file + android:textAppearance="@style/TextAppearance.Conversations.Tag" />
\ No newline at end of file diff --git a/src/main/res/layout/message_content.xml b/src/main/res/layout/message_content.xml index df6e8500d..e1b06913e 100644 --- a/src/main/res/layout/message_content.xml +++ b/src/main/res/layout/message_content.xml @@ -1,73 +1,68 @@ <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android" -xmlns:app="http://schemas.android.com/apk/res-auto"> + xmlns:app="http://schemas.android.com/apk/res-auto"> -<com.makeramen.roundedimageview.RoundedImageView - android:id="@+id/message_image" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginBottom="4dp" - android:layout_marginTop="2dp" - android:adjustViewBounds="true" - android:longClickable="true" - android:maxHeight="500dp" - android:maxWidth="500dp" - android:scaleType="centerCrop" - app:riv_border_color="@color/grey500" - app:riv_border_width="1dp" - app:riv_corner_radius="5dp" /> + <com.makeramen.roundedimageview.RoundedImageView + android:id="@+id/message_image" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="4dp" + android:layout_marginTop="2dp" + android:adjustViewBounds="true" + android:longClickable="true" + android:maxHeight="500dp" + android:maxWidth="500dp" + android:scaleType="centerCrop" + app:riv_border_color="@color/grey500" + app:riv_border_width="1dp" + app:riv_corner_radius="5dp" /> -<de.pixart.messenger.ui.widget.CopyTextView - android:id="@+id/message_body" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:autoLink="web" - android:longClickable="true" - android:textColor="@color/dark" - android:textColorHighlight="@color/grey800" - android:textColorLink="@color/dark" - android:textSize="?attr/TextSizeBody" /> + <de.pixart.messenger.ui.widget.CopyTextView + android:id="@+id/message_body" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:autoLink="web" + android:longClickable="true" + android:textAppearance="@style/TextAppearance.Conversations.Body1" /> -<Button - android:id="@+id/download_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:longClickable="true" - android:visibility="gone" /> + <Button + android:id="@+id/download_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:longClickable="true" + android:visibility="gone" /> <RelativeLayout - android:id="@+id/audio_player" - android:layout_width="@dimen/audio_player_width" - android:layout_height="wrap_content" - android:visibility="gone" - > + android:id="@+id/audio_player" + android:layout_width="@dimen/audio_player_width" + android:layout_height="wrap_content" + android:visibility="gone"> - <ImageButton - android:id="@+id/play_pause" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_centerVertical="true" - android:alpha="1.0" - android:background="?attr/selectableItemBackgroundBorderless"/> + <ImageButton + android:id="@+id/play_pause" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:alpha="1.0" + android:background="?attr/selectableItemBackgroundBorderless" /> - <TextView - android:id="@+id/runtime" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentEnd="true" - android:layout_alignParentRight="true" - android:paddingBottom="16dp" - android:paddingRight="16dp" - android:textColor="@color/primary" - android:textSize="?attr/TextSizeInfo"/> + <TextView + android:id="@+id/runtime" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:paddingBottom="16dp" + android:paddingRight="16dp" + android:textAppearance="@style/TextAppearance.Conversations.Caption" /> - <SeekBar - android:id="@+id/progress" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/runtime" - android:layout_centerVertical="true" - android:layout_toRightOf="@+id/play_pause" - android:progress="100"/> - </RelativeLayout> + <SeekBar + android:id="@+id/progress" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/runtime" + android:layout_centerVertical="true" + android:layout_toRightOf="@+id/play_pause" + android:progress="100" /> + </RelativeLayout> </merge>
\ No newline at end of file diff --git a/src/main/res/layout/message_date_bubble.xml b/src/main/res/layout/message_date_bubble.xml index c94c7d4a0..cc46a32f4 100644 --- a/src/main/res/layout/message_date_bubble.xml +++ b/src/main/res/layout/message_date_bubble.xml @@ -22,8 +22,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="01.01.2017" - android:textColor="@color/black87" - android:textSize="?attr/TextSizeInfo" + android:textAppearance="@style/TextAppearance.Conversations.Body1.Secondary" android:textStyle="italic" /> </LinearLayout> diff --git a/src/main/res/layout/message_received.xml b/src/main/res/layout/message_received.xml index 6c50f2bae..4d5334743 100644 --- a/src/main/res/layout/message_received.xml +++ b/src/main/res/layout/message_received.xml @@ -16,8 +16,8 @@ android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:scaleType="fitXY" - app:riv_border_width="1dip" app:riv_border_color="@color/grey500" + app:riv_border_width="1dip" app:riv_corner_radius="24dp" /> <LinearLayout @@ -25,12 +25,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_toRightOf="@+id/message_photo" - android:minHeight="48dp" - android:longClickable="true" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" - android:background="@drawable/message_bubble_received_white"> + android:layout_toRightOf="@+id/message_photo" + android:background="@drawable/message_bubble_received_white" + android:longClickable="true" + android:minHeight="48dp"> <LinearLayout android:layout_width="wrap_content" @@ -39,7 +39,7 @@ android:orientation="vertical" android:padding="2dp"> - <include layout="@layout/message_content"/> + <include layout="@layout/message_content" /> <LinearLayout android:layout_width="wrap_content" @@ -53,11 +53,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:gravity="center_vertical" android:layout_marginRight="4sp" - android:textColor="@color/white70" - android:textStyle="bold" - android:textSize="?attr/TextSizeInfo" /> + android:gravity="center_vertical" + android:textAppearance="@style/TextAppearance.Conversations.Caption" + android:textStyle="bold" /> <ImageView android:id="@+id/security_indicator" @@ -84,8 +83,7 @@ android:layout_gravity="center_vertical" android:gravity="center_vertical" android:text="@string/sending" - android:textColor="@color/primary" - android:textSize="?attr/TextSizeInfo" /> + android:textAppearance="@style/TextAppearance.Conversations.Caption" /> </LinearLayout> </LinearLayout> </LinearLayout> diff --git a/src/main/res/layout/message_sent.xml b/src/main/res/layout/message_sent.xml index 15a52a797..d51f2d998 100644 --- a/src/main/res/layout/message_sent.xml +++ b/src/main/res/layout/message_sent.xml @@ -13,26 +13,26 @@ android:id="@+id/message_photo" android:layout_width="48dp" android:layout_height="48dp" - android:scaleType="fitXY" android:layout_alignParentBottom="true" - android:layout_alignParentRight="true" android:layout_alignParentEnd="true" - app:riv_border_width="1dp" + android:layout_alignParentRight="true" + android:scaleType="fitXY" app:riv_border_color="@color/grey500" + app:riv_border_width="1dp" app:riv_corner_radius="24dp" /> <LinearLayout android:id="@+id/message_box" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:minHeight="48dp" - android:longClickable="true" android:layout_alignParentBottom="true" - android:layout_toLeftOf="@+id/message_photo" - android:layout_toStartOf="@+id/message_photo" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" - android:background="@drawable/message_bubble_sent_lightblue"> + android:layout_toLeftOf="@+id/message_photo" + android:layout_toStartOf="@+id/message_photo" + android:background="@drawable/message_bubble_sent_lightblue" + android:longClickable="true" + android:minHeight="48dp"> <LinearLayout android:layout_width="wrap_content" @@ -41,7 +41,7 @@ android:orientation="vertical" android:padding="2dp"> - <include layout="@layout/message_content"/> + <include layout="@layout/message_content" /> <Button android:id="@+id/resend_button" @@ -64,8 +64,7 @@ android:layout_gravity="center_vertical" android:gravity="center_vertical" android:text="@string/sending" - android:textColor="@color/primary" - android:textSize="?attr/TextSizeInfo" /> + android:textAppearance="@style/TextAppearance.Conversations.Caption" /> <ImageView android:id="@+id/security_indicator" @@ -99,10 +98,10 @@ android:layout_width="?attr/TextSizeInfo" android:layout_height="?attr/TextSizeInfo" android:layout_gravity="center_vertical" - android:gravity="center_vertical" - android:src="@drawable/ic_read_indicator" android:layout_marginLeft="-8sp" - android:adjustViewBounds="false" /> + android:adjustViewBounds="false" + android:gravity="center_vertical" + android:src="@drawable/ic_read_indicator" /> </LinearLayout> </LinearLayout> </LinearLayout> diff --git a/src/main/res/layout/message_status.xml b/src/main/res/layout/message_status.xml index 835e380a5..b6edbc0b1 100644 --- a/src/main/res/layout/message_status.xml +++ b/src/main/res/layout/message_status.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="fill_parent" android:layout_height="wrap_content" - xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:paddingBottom="5dp" android:paddingLeft="8dp" @@ -14,14 +14,13 @@ style="?android:attr/borderlessButtonStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/load_more_messages" - android:textColor="@color/accent" + android:layout_centerHorizontal="true" android:layout_centerVertical="true" - android:layout_centerHorizontal="true" /> + android:text="@string/load_more_messages" + android:textColor="@color/accent" /> <com.makeramen.roundedimageview.RoundedImageView android:id="@+id/message_photo" - android:visibility="gone" android:layout_width="32dp" android:layout_height="32dp" android:layout_alignParentLeft="true" @@ -29,23 +28,22 @@ android:layout_marginRight="-1.5dp" android:padding="0dp" android:scaleType="fitXY" - app:riv_border_width="1dp" + android:visibility="gone" app:riv_border_color="@color/grey500" - app:riv_corner_radius="16dp"/> + app:riv_border_width="1dp" + app:riv_corner_radius="16dp" /> <TextView android:id="@+id/status_message" - android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:minHeight="32dp" android:layout_centerVertical="true" - android:gravity="center_vertical" android:layout_marginLeft="8dp" android:layout_toEndOf="@+id/message_photo" android:layout_toRightOf="@+id/message_photo" + android:gravity="center_vertical" + android:minHeight="32dp" android:text="@string/contact_has_read_up_to_this_point" - android:textColor="?attr/color_text_secondary" - android:textSize="?attr/TextSizeInfo" - android:textStyle="italic"/> + android:textAppearance="@style/TextAppearance.Conversations.Status" + android:visibility="gone" /> </RelativeLayout>
\ No newline at end of file diff --git a/src/main/res/layout/presence_template.xml b/src/main/res/layout/presence_template.xml index 6fe5ec40a..3d64ea468 100644 --- a/src/main/res/layout/presence_template.xml +++ b/src/main/res/layout/presence_template.xml @@ -1,51 +1,49 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/presence_template" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?android:attr/activatedBackgroundIndicator" - android:paddingTop="8dp" - android:paddingLeft="8dp" - android:paddingBottom="8dp" - android:id="@+id/presence_template"> + android:padding="12dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" - android:layout_centerVertical="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:layout_marginRight="8dp" android:layout_toLeftOf="@+id/delete_button" android:layout_toStartOf="@+id/delete_button" - android:layout_marginRight="8dp"> + android:minHeight="48dp" + android:orientation="vertical"> <android.support.text.emoji.widget.EmojiTextView + android:id="@+id/presence_status_message" android:layout_width="match_parent" android:layout_height="wrap_content" - android:id="@+id/presence_status_message" - android:textAppearance="@style/TextAppearance.AppCompat.Body1"/> + android:textAppearance="@style/TextAppearance.AppCompat.Body1" /> <android.support.text.emoji.widget.EmojiTextView android:id="@+id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginTop="4dp" android:paddingBottom="1dp" android:paddingLeft="4dp" android:paddingRight="4dp" android:paddingTop="1dp" android:textAllCaps="true" - android:textColor="@color/white" - android:textSize="?attr/TextSizeInfo" - android:layout_marginTop="4dp" /> + android:textAppearance="@style/TextAppearance.Conversations.Tag" /> </LinearLayout> <ImageButton + android:id="@+id/delete_button" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:id="@+id/delete_button" - android:layout_centerVertical="true" - android:layout_alignParentRight="true" android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:padding="@dimen/image_button_padding" android:src="?attr/icon_remove" /> |