aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-06-14 02:30:26 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-06-14 02:30:26 +0000
commitf69ae29bb93a113bad77bd258c92398bd45cd902 (patch)
treec091c9bc761c05cc4b928d9986a1f2e4caf4ff99 /app/src/main/res
parent42c7b316f37b17178518cbf9649a788fcdf0895c (diff)
downloadinfinity-for-reddit-f69ae29bb93a113bad77bd258c92398bd45cd902.tar
infinity-for-reddit-f69ae29bb93a113bad77bd258c92398bd45cd902.tar.gz
infinity-for-reddit-f69ae29bb93a113bad77bd258c92398bd45cd902.tar.bz2
infinity-for-reddit-f69ae29bb93a113bad77bd258c92398bd45cd902.tar.lz
infinity-for-reddit-f69ae29bb93a113bad77bd258c92398bd45cd902.tar.xz
infinity-for-reddit-f69ae29bb93a113bad77bd258c92398bd45cd902.tar.zst
infinity-for-reddit-f69ae29bb93a113bad77bd258c92398bd45cd902.zip
Added a feature: Sending comments.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_comment.xml23
-rw-r--r--app/src/main/res/values/strings.xml1
2 files changed, 9 insertions, 15 deletions
diff --git a/app/src/main/res/layout/activity_comment.xml b/app/src/main/res/layout/activity_comment.xml
index 3beff433..c494cf3f 100644
--- a/app/src/main/res/layout/activity_comment.xml
+++ b/app/src/main/res/layout/activity_comment.xml
@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:id="@+id/coordinator_layout_comment_activity"
tools:context=".CommentActivity">
<com.google.android.material.appbar.AppBarLayout
@@ -24,32 +25,24 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
+ android:padding="16dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<TextView
android:id="@+id/comment_parent_text_view_comment_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="16dp"
+ android:layout_marginBottom="16dp"
android:textSize="16sp" />
- <com.chinalwb.are.AREditText
- android:id="@+id/arEditText"
+ <EditText
+ android:id="@+id/comment_edit_text_comment_activity"
android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_margin="8dp"
- android:layout_weight="1"
- android:gravity="top"
+ android:layout_height="wrap_content"
android:hint="@string/write_comment_hint"
- android:inputType="textMultiLine|textCapSentences"
+ android:inputType="textCapSentences|textMultiLine"
android:textSize="18sp"
- android:textColor="@color/primaryTextColor"/>
-
- <com.chinalwb.are.styles.toolbar.ARE_ToolbarDefault
- android:id="@+id/areToolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical" />
+ android:background="#00000000" />
</LinearLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7a3985eb..1b4968b0 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -72,5 +72,6 @@
<string name="lazy_mode_stop">Lazy Mode stopped</string>
<string name="write_comment_hint">Your interesting thoughts here</string>
+ <string name="send_comment_failed">Could not send this comment</string>
</resources>