From 3deb9602d114d9340cdcab5b192241a05f4b4fd8 Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Thu, 17 Sep 2020 16:56:26 +1000 Subject: [PATCH] Back button for conversation activity. --- .../conversation_home_touch_highlight.xml | 15 +++++++ .../ic_baseline_arrow_back_compact_24.xml | 10 +++++ res/layout/conversation_activity.xml | 40 ++++++++++++++++--- .../conversation/ConversationActivity.java | 4 ++ 4 files changed, 63 insertions(+), 6 deletions(-) create mode 100644 res/drawable/conversation_home_touch_highlight.xml create mode 100644 res/drawable/ic_baseline_arrow_back_compact_24.xml diff --git a/res/drawable/conversation_home_touch_highlight.xml b/res/drawable/conversation_home_touch_highlight.xml new file mode 100644 index 0000000000..5fbf5ba7d0 --- /dev/null +++ b/res/drawable/conversation_home_touch_highlight.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/res/drawable/ic_baseline_arrow_back_compact_24.xml b/res/drawable/ic_baseline_arrow_back_compact_24.xml new file mode 100644 index 0000000000..f632160152 --- /dev/null +++ b/res/drawable/ic_baseline_arrow_back_compact_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/res/layout/conversation_activity.xml b/res/layout/conversation_activity.xml index de99e57802..394ad2d311 100644 --- a/res/layout/conversation_activity.xml +++ b/res/layout/conversation_activity.xml @@ -11,19 +11,47 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" + android:clipChildren="false" + android:contentInsetLeft="24dp" + android:contentInsetStart="24dp" app:contentInsetLeft="24dp" - app:contentInsetRight="20dp"> + app:contentInsetStart="24dp" + android:contentInsetRight="20dp" + android:contentInsetEnd="20dp" + app:contentInsetRight="20dp" + app:contentInsetEnd="20dp"> + android:orientation="horizontal" + android:clipChildren="false"> - + + + + + + + handleAddAttachment()); + + homeButtonContainer.setOnClickListener(v -> onSupportNavigateUp()); } protected void initializeActionBar() {