diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-10-29 03:20:16 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-10-29 03:20:16 +0000 |
commit | 168456f57ccd80a52c7d95761b1df6827d0b90c8 (patch) | |
tree | 900e4e25b097b54ebdf88e0cbcefc1b7779e3b0f /app/src/main/res/layout/item_post.xml | |
parent | 3a81ca17e864dd76d77d4a6bd41ccfdcc54bbe1e (diff) | |
download | infinity-for-reddit-168456f57ccd80a52c7d95761b1df6827d0b90c8.tar infinity-for-reddit-168456f57ccd80a52c7d95761b1df6827d0b90c8.tar.gz infinity-for-reddit-168456f57ccd80a52c7d95761b1df6827d0b90c8.tar.bz2 infinity-for-reddit-168456f57ccd80a52c7d95761b1df6827d0b90c8.tar.lz infinity-for-reddit-168456f57ccd80a52c7d95761b1df6827d0b90c8.tar.xz infinity-for-reddit-168456f57ccd80a52c7d95761b1df6827d0b90c8.tar.zst infinity-for-reddit-168456f57ccd80a52c7d95761b1df6827d0b90c8.zip |
Make Placing vote buttons on the right an option.
Diffstat (limited to 'app/src/main/res/layout/item_post.xml')
-rw-r--r-- | app/src/main/res/layout/item_post.xml | 110 |
1 files changed, 93 insertions, 17 deletions
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index c702e529..5733f9c5 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -256,7 +256,7 @@ android:background="@color/grey" android:visibility="gone"/> - <androidx.constraintlayout.widget.ConstraintLayout + <!--<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content"> @@ -265,69 +265,147 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="12dp" - android:src="@drawable/ic_arrow_upward_black_24dp" + android:src="@drawable/ic_arrow_upward_grey_24dp" android:tint="@android:color/tab_indicator_text" android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toStartOf="parent" /> + app:layout_constraintEnd_toStartOf="@id/score_text_view_item_post" /> <TextView android:id="@+id/score_text_view_item_post" android:layout_width="64dp" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:gravity="center" android:textSize="?attr/font_12" android:textStyle="bold" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toEndOf="@id/plus_button_item_post" /> + app:layout_constraintEnd_toStartOf="@id/minus_button_item_post" /> <ImageView android:id="@+id/minus_button_item_post" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="12dp" - android:src="@drawable/ic_arrow_downward_black_24dp" + android:src="@drawable/ic_arrow_downward_grey_24dp" android:tint="@android:color/tab_indicator_text" android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toEndOf="@id/score_text_view_item_post" /> + app:layout_constraintEnd_toEndOf="parent" /> + + <TextView + android:id="@+id/comments_count_item_post" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="12dp" + android:gravity="center_vertical" + android:textSize="?attr/font_12" + android:textStyle="bold" + android:drawableStart="@drawable/ic_comment_grey_24dp" + android:drawablePadding="12dp" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/save_button_item_post" + app:layout_constraintEnd_toStartOf="@id/plus_button_item_post" /> <ImageView - android:id="@+id/comment_button_item_post" + android:id="@+id/save_button_item_post" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="12dp" - android:src="@drawable/ic_comment_white_24dp" android:tint="@android:color/tab_indicator_text" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" app:layout_constraintHorizontal_bias="0" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toEndOf="@id/minus_button_item_post" /> + app:layout_constraintStart_toEndOf="@id/share_button_item_post" /> + + <ImageView + android:id="@+id/share_button_item_post" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="12dp" + android:src="@drawable/ic_share_grey_24dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintHorizontal_bias="1" /> + + </androidx.constraintlayout.widget.ConstraintLayout>--> + + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@+id/bottom_constraint_layout_item_post" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <ImageView + android:id="@+id/plus_button_item_post" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="12dp" + android:src="@drawable/ic_arrow_upward_grey_24dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" /> + + <TextView + android:id="@+id/score_text_view_item_post" + android:layout_width="64dp" + android:layout_height="wrap_content" + android:gravity="center" + android:textSize="?attr/font_12" + android:textStyle="bold" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/plus_button_item_post" /> + + <ImageView + android:id="@+id/minus_button_item_post" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="12dp" + android:src="@drawable/ic_arrow_downward_grey_24dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/score_text_view_item_post" /> <TextView android:id="@+id/comments_count_item_post" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:padding="12dp" + android:gravity="center_vertical" android:textSize="?attr/font_12" android:textStyle="bold" - app:layout_constraintHorizontal_bias="0" + android:drawableStart="@drawable/ic_comment_grey_24dp" + android:drawablePadding="12dp" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toEndOf="@id/comment_button_item_post" /> + app:layout_constraintStart_toEndOf="@id/minus_button_item_post" /> <ImageView android:id="@+id/save_button_item_post" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="12dp" - android:tint="@android:color/tab_indicator_text" android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" @@ -342,15 +420,13 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="12dp" - android:src="@drawable/ic_outline_share_24px" - android:tint="@android:color/tab_indicator_text" + android:src="@drawable/ic_share_grey_24dp" android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHorizontal_bias="1" /> + app:layout_constraintEnd_toEndOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout> |