diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-10-23 15:33:35 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-10-23 15:33:35 +0200 |
commit | e98aa48990d08b75f689c794bf720c5efe21a4b7 (patch) | |
tree | b580105c43d7d31416d7293ca536910e3066c326 /src/main/res | |
parent | 9ec29bb1dcf664fea606105b7e700641a4b44ae4 (diff) |
Fixes FS#237: Enable long click in layout instead of programmatically
Diffstat (limited to 'src/main/res')
-rw-r--r-- | src/main/res/layout/message_received.xml | 5 | ||||
-rw-r--r-- | src/main/res/layout/message_sent.xml | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/res/layout/message_received.xml b/src/main/res/layout/message_received.xml index d331b3ef..029b0d74 100644 --- a/src/main/res/layout/message_received.xml +++ b/src/main/res/layout/message_received.xml @@ -46,7 +46,8 @@ android:layout_marginTop="8dp" android:layout_marginBottom="4dp" android:adjustViewBounds="true" - android:background="@color/black87" + android:longClickable="true" + android:background="@color/primaryText" android:scaleType="centerCrop" /> <github.ankushsachdeva.emojicon.EmojiconTextView @@ -54,6 +55,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:autoLink="web|phone|email" + android:longClickable="true" android:textColor="@color/primaryText" android:textSize="?attr/TextSizeBody" app:emojiconSize="?attr/EmojiconSizeBody" /> @@ -61,6 +63,7 @@ <Button android:id="@+id/download_button" style="?android:attr/buttonStyleSmall" + android:longClickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" /> diff --git a/src/main/res/layout/message_sent.xml b/src/main/res/layout/message_sent.xml index 30003309..f59c51f3 100644 --- a/src/main/res/layout/message_sent.xml +++ b/src/main/res/layout/message_sent.xml @@ -48,6 +48,7 @@ android:layout_marginBottom="4dp" android:adjustViewBounds="true" android:background="@color/primaryText" + android:longClickable="true" android:scaleType="centerCrop" /> <github.ankushsachdeva.emojicon.EmojiconTextView @@ -55,6 +56,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:autoLink="web|phone|email" + android:longClickable="true" android:textColor="@color/primaryText" android:textSize="?attr/TextSizeBody" app:emojiconSize="?attr/EmojiconSizeBody"/> @@ -62,6 +64,7 @@ <Button android:id="@+id/download_button" style="?android:attr/buttonStyleSmall" + android:longClickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" /> |