diff options
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml | 20 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_detail_gallery.xml | 68 |
2 files changed, 44 insertions, 44 deletions
diff --git a/app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml b/app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml index 4cfdf858..c0aa4168 100644 --- a/app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml +++ b/app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml @@ -51,41 +51,43 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical"> + android:orientation="vertical" + android:animateLayoutChanges="true"> <LinearLayout android:id="@+id/caption_layout_view_reddit_gallery_image_or_gif_fragment" android:layout_width="match_parent" android:layout_height="wrap_content" - android:gravity="center_vertical" android:orientation="vertical" - android:paddingTop="8dp" + android:layout_marginBottom="16dp" + android:layout_marginEnd="16dp" android:visibility="gone"> <TextView android:id="@+id/caption_text_view_view_reddit_gallery_image_or_gif_fragment" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="end" - android:fontFamily="?attr/content_font_family" android:maxLength="180" + android:fontFamily="?attr/content_font_family" android:textColor="#FFFFFF" android:textSize="?attr/content_font_default" android:visibility="gone" /> <TextView android:id="@+id/caption_url_text_view_view_reddit_gallery_image_or_gif_fragment" - android:layout_width="wrap_content" - android:layout_height="0dp" - android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" android:ellipsize="end" - android:fontFamily="?attr/content_font_family" android:maxLength="180" + android:fontFamily="?attr/content_font_family" android:textColor="#FFFFFF" android:textColorLink="#FFFFFF" android:textSize="?attr/content_font_default" android:textStyle="bold" android:visibility="gone" /> + </LinearLayout> <LinearLayout diff --git a/app/src/main/res/layout/item_post_detail_gallery.xml b/app/src/main/res/layout/item_post_detail_gallery.xml index 0cf6a484..2b3ed1ef 100644 --- a/app/src/main/res/layout/item_post_detail_gallery.xml +++ b/app/src/main/res/layout/item_post_detail_gallery.xml @@ -27,13 +27,13 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="8dp" - android:fontFamily="?attr/font_family" android:textSize="?attr/font_default" - app:layout_constrainedWidth="true" + android:fontFamily="?attr/font_family" + app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_gallery" app:layout_constraintEnd_toStartOf="@id/guideline" + app:layout_constraintTop_toTopOf="parent" app:layout_constraintHorizontal_bias="0" - app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_gallery" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constrainedWidth="true" /> <TextView android:id="@+id/user_text_view_item_post_detail_gallery" @@ -41,14 +41,14 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="8dp" - android:fontFamily="?attr/font_family" android:textSize="?attr/font_default" - app:layout_constrainedWidth="true" + android:fontFamily="?attr/font_family" app:layout_constraintBottom_toTopOf="@+id/author_flair_text_view_item_post_detail_gallery" + app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_gallery" app:layout_constraintEnd_toStartOf="@id/guideline" + app:layout_constraintTop_toBottomOf="@+id/subreddit_text_view_item_post_detail_gallery" app:layout_constraintHorizontal_bias="0" - app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_gallery" - app:layout_constraintTop_toBottomOf="@+id/subreddit_text_view_item_post_detail_gallery" /> + app:layout_constrainedWidth="true" /> <TextView android:id="@+id/author_flair_text_view_item_post_detail_gallery" @@ -56,28 +56,28 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="8dp" - android:fontFamily="?attr/font_family" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:visibility="gone" - app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toStartOf="@id/guideline" - app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_gallery" + app:layout_constraintEnd_toStartOf="@id/guideline" app:layout_constraintTop_toBottomOf="@+id/user_text_view_item_post_detail_gallery" + app:layout_constraintHorizontal_bias="0" + app:layout_constrainedWidth="true" tools:visibility="visible" /> <TextView android:id="@+id/post_time_text_view_item_post_detail_gallery" android:layout_width="0dp" android:layout_height="wrap_content" - android:fontFamily="?attr/font_family" android:gravity="end" android:textSize="?attr/font_default" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" + android:fontFamily="?attr/font_family" app:layout_constraintHorizontal_bias="1" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toEndOf="@id/guideline" + app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> <androidx.constraintlayout.widget.Guideline @@ -93,15 +93,15 @@ android:id="@+id/title_text_view_item_post_detail_gallery" android:layout_width="match_parent" android:layout_height="wrap_content" - android:enabled="true" - android:focusable="true" - android:fontFamily="?attr/title_font_family" - android:longClickable="true" android:paddingStart="16dp" android:paddingEnd="16dp" android:textColor="?attr/primaryTextColor" + android:textSize="?attr/title_font_18" + android:fontFamily="?attr/title_font_family" android:textIsSelectable="true" - android:textSize="?attr/title_font_18" /> + android:enabled="true" + android:focusable="true" + android:longClickable="true" /> <com.nex3z.flowlayout.FlowLayout android:layout_width="match_parent" @@ -116,10 +116,10 @@ android:id="@+id/type_text_view_item_post_detail_gallery" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:fontFamily="?attr/font_family" android:padding="4dp" android:text="@string/gallery" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" app:lib_setRadius="6dp" app:lib_setRoundedView="true" app:lib_setShape="rectangle" /> @@ -129,10 +129,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:fontFamily="?attr/font_family" - android:padding="4dp" android:text="@string/spoiler" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" + android:padding="4dp" android:visibility="gone" app:lib_setRadius="6dp" app:lib_setRoundedView="true" @@ -142,10 +142,10 @@ android:id="@+id/nsfw_text_view_item_post_detail_gallery" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:fontFamily="?attr/font_family" android:padding="4dp" android:text="@string/nsfw" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:visibility="gone" app:lib_setRadius="6dp" app:lib_setRoundedView="true" @@ -156,9 +156,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:fontFamily="?attr/font_family" android:padding="4dp" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:visibility="gone" app:lib_setRadius="6dp" app:lib_setRoundedView="true" @@ -168,8 +168,8 @@ android:id="@+id/upvote_ratio_text_view_item_post_detail_gallery" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:fontFamily="?attr/font_family" - android:textSize="?attr/font_12" /> + android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" /> <ImageView android:id="@+id/archived_image_view_item_post_detail_gallery" @@ -196,8 +196,8 @@ android:id="@+id/awards_text_view_item_post_detail_gallery" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:fontFamily="?attr/font_family" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:visibility="gone" /> </com.nex3z.flowlayout.FlowLayout> @@ -223,10 +223,10 @@ android:id="@+id/video_or_gif_indicator_image_view_item_post_detail" android:layout_width="36dp" android:layout_height="36dp" - android:layout_gravity="start" android:layout_margin="16dp" - android:background="@drawable/play_button_round_background" + android:layout_gravity="start" android:scaleType="center" + android:background="@drawable/play_button_round_background" android:src="@drawable/ic_gallery_24dp" /> </FrameLayout> @@ -247,12 +247,12 @@ android:id="@+id/load_image_error_text_view_item_post_detail_gallery" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_centerInParent="true" android:drawableTop="@drawable/ic_error_outline_black_24dp" - android:fontFamily="?attr/font_family" + android:layout_centerInParent="true" android:gravity="center" android:text="@string/error_loading_image_tap_to_retry" android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" android:visibility="gone" /> </RelativeLayout> @@ -301,10 +301,8 @@ android:ellipsize="end" android:fontFamily="?attr/content_font_family" android:gravity="end" - android:isScrollContainer="false" android:maxLines="1" - android:paddingEnd="8dp" - android:scrollHorizontally="false" + android:paddingHorizontal="8dp" android:textColor="?attr/primaryTextColor" android:textSize="?attr/content_font_default" app:layout_constrainedWidth="true" |