mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 20:57:25 +01:00
Refine the UI of FlairBottomSheetFragment.
This commit is contained in:
parent
c4276736ae
commit
01d4d51253
@ -39,7 +39,7 @@ public class FlairBottomSheetRecyclerViewAdapter extends RecyclerView.Adapter<Fl
|
|||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public FlairViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
public FlairViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
return new FlairViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_flair, null, false));
|
return new FlairViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_flair, parent, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -9,8 +9,12 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="16dp"
|
android:paddingTop="16dp"
|
||||||
|
android:paddingBottom="16dp"
|
||||||
|
android:paddingStart="32dp"
|
||||||
|
android:paddingEnd="32dp"
|
||||||
android:text="@string/flair"
|
android:text="@string/flair"
|
||||||
|
android:textColor="?attr/primaryTextColor"
|
||||||
android:textSize="?attr/font_18"
|
android:textSize="?attr/font_18"
|
||||||
android:fontFamily="?attr/font_family" />
|
android:fontFamily="?attr/font_family" />
|
||||||
|
|
||||||
|
@ -9,19 +9,24 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/flair_text_view_item_flair"
|
android:id="@+id/flair_text_view_item_flair"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="16dp"
|
android:layout_weight="1"
|
||||||
|
android:paddingTop="16dp"
|
||||||
|
android:paddingBottom="16dp"
|
||||||
|
android:paddingStart="32dp"
|
||||||
|
android:paddingEnd="32dp"
|
||||||
android:textColor="?attr/primaryTextColor"
|
android:textColor="?attr/primaryTextColor"
|
||||||
android:textSize="?attr/font_default"
|
android:textSize="?attr/font_default"
|
||||||
android:fontFamily="?attr/font_family" />
|
android:fontFamily="?attr/font_family" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/edit_flair_image_view_item_flair"
|
android:id="@+id/edit_flair_image_view_item_flair"
|
||||||
android:layout_width="24dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="24dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical|end"
|
android:layout_gravity="center_vertical|end"
|
||||||
android:layout_marginStart="32dp"
|
android:paddingStart="32dp"
|
||||||
|
android:paddingEnd="32dp"
|
||||||
android:src="@drawable/ic_edit_24dp"
|
android:src="@drawable/ic_edit_24dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:tint="?attr/primaryTextColor"
|
app:tint="?attr/primaryTextColor"
|
||||||
|
Loading…
Reference in New Issue
Block a user