mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-02-27 17:03:57 +01:00
Small changes in RedditGallerySubmissionRecyclerViewAdapter's UI.
This commit is contained in:
parent
a610be7d16
commit
25d8d901ad
@ -155,8 +155,9 @@ public class RedditGallerySubmissionRecyclerViewAdapter extends RecyclerView.Ada
|
|||||||
public AddImageViewHolder(@NonNull View itemView) {
|
public AddImageViewHolder(@NonNull View itemView) {
|
||||||
super(itemView);
|
super(itemView);
|
||||||
|
|
||||||
itemView.setBackgroundTintList(ColorStateList.valueOf(customThemeWrapper.getColorPrimaryLightTheme()));
|
FloatingActionButton fab = itemView.findViewById(R.id.fab_item_gallery_submission_add_image);
|
||||||
((FloatingActionButton) itemView).setImageTintList(ColorStateList.valueOf(customThemeWrapper.getFABIconColor()));
|
fab.setBackgroundTintList(ColorStateList.valueOf(customThemeWrapper.getColorPrimaryLightTheme()));
|
||||||
|
fab.setImageTintList(ColorStateList.valueOf(customThemeWrapper.getFABIconColor()));
|
||||||
|
|
||||||
itemView.setOnClickListener(view -> itemClickListener.onAddImageClicked());
|
itemView.setOnClickListener(view -> itemClickListener.onAddImageClicked());
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<com.google.android.material.floatingactionbutton.FloatingActionButton xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
|
android:id="@+id/fab_item_gallery_submission_add_image"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
android:src="@drawable/ic_outline_select_photo_24dp" />
|
android:src="@drawable/ic_outline_select_photo_24dp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -6,7 +6,8 @@
|
|||||||
<ml.docilealligator.infinityforreddit.customviews.AspectRatioGifImageView
|
<ml.docilealligator.infinityforreddit.customviews.AspectRatioGifImageView
|
||||||
android:id="@+id/aspect_ratio_gif_image_view_item_reddit_gallery_submission_image"
|
android:id="@+id/aspect_ratio_gif_image_view_item_reddit_gallery_submission_image"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
android:scaleType="centerCrop" />
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/progress_bar_item_reddit_gallery_submission_image"
|
android:id="@+id/progress_bar_item_reddit_gallery_submission_image"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user