diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-04-01 16:24:47 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-04-01 16:24:47 +0000 |
commit | 8c40ee1bc3ce8b7100221a740a382150a093e11e (patch) | |
tree | a5b79c5750074e5c1de3a5308f223d48d2747fe7 /app/src/main/res | |
parent | 68d247867f1e67ed7e62e396cdb622d8970a572f (diff) | |
download | infinity-for-reddit-8c40ee1bc3ce8b7100221a740a382150a093e11e.tar infinity-for-reddit-8c40ee1bc3ce8b7100221a740a382150a093e11e.tar.gz infinity-for-reddit-8c40ee1bc3ce8b7100221a740a382150a093e11e.tar.bz2 infinity-for-reddit-8c40ee1bc3ce8b7100221a740a382150a093e11e.tar.lz infinity-for-reddit-8c40ee1bc3ce8b7100221a740a382150a093e11e.tar.xz infinity-for-reddit-8c40ee1bc3ce8b7100221a740a382150a093e11e.tar.zst infinity-for-reddit-8c40ee1bc3ce8b7100221a740a382150a093e11e.zip |
Suggest title when submitting link post.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_post_link.xml | 37 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 3 |
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> |