From 42ad53708d96f7e8576e9eecea2ec335dac3ac48 Mon Sep 17 00:00:00 2001 From: Corewala Date: Sat, 8 Jan 2022 13:35:20 -0500 Subject: [PATCH] Titles are shown in dialogs --- app/src/main/res/layout/dialog_about.xml | 27 +++++++--- app/src/main/res/layout/dialog_bookmarks.xml | 10 ++++ .../main/res/layout/dialog_content_image.xml | 49 ++++++++++------- .../main/res/layout/dialog_content_text.xml | 27 +++++++--- app/src/main/res/layout/dialog_history.xml | 52 ++++++++++++------- app/src/main/res/values-fr/strings.xml | 2 + app/src/main/res/values/strings.xml | 2 + 7 files changed, 113 insertions(+), 56 deletions(-) diff --git a/app/src/main/res/layout/dialog_about.xml b/app/src/main/res/layout/dialog_about.xml index 3ee388a..119a3aa 100644 --- a/app/src/main/res/layout/dialog_about.xml +++ b/app/src/main/res/layout/dialog_about.xml @@ -12,14 +12,25 @@ android:paddingTop="@dimen/default_margin"> + android:id="@+id/close_tab_dialog" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentStart="true" + android:background="?android:attr/selectableItemBackgroundBorderless" + android:src="@drawable/vector_close" android:layout_marginTop="@dimen/button_margin" + android:layout_marginStart="@dimen/button_margin" android:layout_marginEnd="@dimen/button_margin" + android:layout_marginBottom="@dimen/button_margin"/> + + + + + android:id="@+id/header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="@dimen/default_margin"> + android:id="@+id/close_image_content_dialog" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentStart="true" + android:layout_margin="@dimen/button_margin" + android:background="?android:attr/selectableItemBackgroundBorderless" + android:src="@drawable/vector_close"/> + + + android:id="@+id/image_overflow" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentEnd="true" + android:layout_margin="@dimen/button_margin" + android:background="?android:attr/selectableItemBackgroundBorderless" + android:src="@drawable/vector_overflow"/> diff --git a/app/src/main/res/layout/dialog_content_text.xml b/app/src/main/res/layout/dialog_content_text.xml index fac2245..1740351 100644 --- a/app/src/main/res/layout/dialog_content_text.xml +++ b/app/src/main/res/layout/dialog_content_text.xml @@ -11,14 +11,25 @@ android:paddingTop="@dimen/default_margin"> + android:id="@+id/close_text_content_dialog" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentStart="true" + android:background="?android:attr/selectableItemBackgroundBorderless" + android:src="@drawable/vector_close" android:layout_marginTop="@dimen/button_margin" + android:layout_marginStart="@dimen/button_margin" android:layout_marginEnd="@dimen/button_margin" + android:layout_marginBottom="@dimen/button_margin"/> + + + android:id="@+id/close_tab_dialog" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentStart="true" + android:background="?android:attr/selectableItemBackgroundBorderless" + android:src="@drawable/vector_close" android:layout_marginTop="@dimen/button_margin" + android:layout_marginStart="@dimen/button_margin" android:layout_marginEnd="@dimen/button_margin" + android:layout_marginBottom="@dimen/button_margin"/> + + + android:id="@+id/history_overflow" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentEnd="true" + android:background="?android:attr/selectableItemBackgroundBorderless" + android:src="@drawable/vector_overflow" android:layout_marginTop="@dimen/button_margin" + android:layout_marginStart="@dimen/button_margin" android:layout_marginEnd="@dimen/button_margin" + android:layout_marginBottom="@dimen/button_margin"/> + android:id="@+id/history_recycler" + android:layout_below="@+id/header" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> \ No newline at end of file diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index d3f3854..e521295 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -28,6 +28,8 @@ Liens de retour Ajouter marque-page Marque-pages + Image + Texte Nom URL Gemini Éditer diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 11063e3..5f4b58d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -28,6 +28,8 @@ Backlinks Add Bookmark Bookmarks + Image + Text Name Gemini URL Edit