diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-13 06:25:16 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-13 06:25:16 +0000 |
commit | 81e0897a1f91a546452a07fb3f3e880e374db368 (patch) | |
tree | 7f125bde9242d94cf755c6f6ba3264f468c739dd /app/src/main/res/layout/item_comment.xml | |
parent | b1b3642ca8ceb159282dc684be2d75afa4b37a91 (diff) | |
download | infinity-for-reddit-81e0897a1f91a546452a07fb3f3e880e374db368.tar infinity-for-reddit-81e0897a1f91a546452a07fb3f3e880e374db368.tar.gz infinity-for-reddit-81e0897a1f91a546452a07fb3f3e880e374db368.tar.bz2 infinity-for-reddit-81e0897a1f91a546452a07fb3f3e880e374db368.tar.lz infinity-for-reddit-81e0897a1f91a546452a07fb3f3e880e374db368.tar.xz infinity-for-reddit-81e0897a1f91a546452a07fb3f3e880e374db368.tar.zst infinity-for-reddit-81e0897a1f91a546452a07fb3f3e880e374db368.zip |
Editing and deleting comments are now available.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/item_comment.xml | 111 |
1 files changed, 108 insertions, 3 deletions
diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index 82281e14..1283aa5b 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -1,5 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" android:id="@+id/linear_layout_item_comment" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -7,7 +9,7 @@ <View android:id="@+id/vertical_block_item_post_comment" - android:layout_width="wrap_content" + android:layout_width="0dp" android:layout_height="match_parent" android:background="@color/colorPrimaryDarkDayNightTheme"/> @@ -50,7 +52,110 @@ android:layout_marginBottom="8dp" android:textColor="@color/primaryTextColor"/> - <RelativeLayout + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <ImageView + android:id="@+id/up_vote_button_item_post_comment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_arrow_upward_black_20dp" + android:tint="@android:color/tab_indicator_text" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" /> + + <TextView + android:id="@+id/score_text_view_item_post_comment" + android:layout_width="64dp" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:gravity="center" + app:layout_constraintStart_toEndOf="@+id/up_vote_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent"/> + + <ImageView + android:id="@+id/down_vote_button_item_post_comment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_marginEnd="16dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_arrow_downward_black_20dp" + android:tint="@android:color/tab_indicator_text" + app:layout_constraintStart_toEndOf="@+id/score_text_view_item_post_comment" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" /> + + <ImageView + android:id="@+id/more_button_item_post_comment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="16dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_outline_more_vert_24px" + android:tint="@android:color/tab_indicator_text" + android:visibility="gone" + app:layout_constraintEnd_toStartOf="@+id/expand_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent"/> + + <ImageView + android:id="@+id/expand_button_item_post_comment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="16dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_expand_less_black_20dp" + android:tint="@android:color/tab_indicator_text" + android:visibility="gone" + app:layout_constraintEnd_toStartOf="@+id/share_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent"/> + + <ImageView + android:id="@+id/share_button_item_post_comment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="16dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_outline_share_20px" + android:tint="@android:color/tab_indicator_text" + app:layout_constraintEnd_toStartOf="@+id/reply_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent"/> + + <ImageView + android:id="@+id/reply_button_item_post_comment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="16dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_reply_black_20dp" + android:tint="@android:color/tab_indicator_text" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent"/> + + </androidx.constraintlayout.widget.ConstraintLayout> + + <!--<RelativeLayout android:id="@+id/relative_layout_item_post_comment" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -128,7 +233,7 @@ android:clickable="true" android:focusable="true"/> - </RelativeLayout> + </RelativeLayout>--> </LinearLayout> |