aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_post_link.xml37
-rw-r--r--app/src/main/res/values/strings.xml3
2 files changed, 30 insertions, 10 deletions
diff --git a/app/src/main/res/layout/activity_post_link.xml b/app/src/main/res/layout/activity_post_link.xml
index 076764a2..1e16bada 100644
--- a/app/src/main/res/layout/activity_post_link.xml
+++ b/app/src/main/res/layout/activity_post_link.xml
@@ -132,18 +132,35 @@
android:layout_width="match_parent"
android:layout_height="1dp" />
- <EditText
- android:id="@+id/post_title_edit_text_post_link_activity"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="#00000000"
- android:gravity="top"
- android:hint="@string/post_title_hint"
- android:inputType="textCapSentences|textMultiLine"
- android:padding="16dp"
- android:textColor="?attr/primaryTextColor"
- android:textSize="?attr/title_font_18"
- android:fontFamily="?attr/title_font_family" />
+ android:paddingStart="0dp"
+ android:paddingEnd="16dp">
+
+ <EditText
+ android:id="@+id/post_title_edit_text_post_link_activity"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:background="#00000000"
+ android:gravity="top"
+ android:hint="@string/post_title_hint"
+ android:inputType="textCapSentences|textMultiLine"
+ android:padding="16dp"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/title_font_18"
+ android:fontFamily="?attr/title_font_family" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/suggest_title_button_post_link_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:text="@string/suggest_title" />
+
+ </LinearLayout>
<View
android:id="@+id/divider_3_post_link_activity"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 52700094..5808c3bd 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1091,4 +1091,7 @@
<string name="contain_flair">Contain this flair</string>
<string name="exclude_domain">Exclude Domain</string>
+ <string name="suggest_title">Suggest Title</string>
+ <string name="suggest_title_failed">Failed to suggest a title</string>
+
</resources>