telegram stickers doesn't look like shit now
This commit is contained in:
@@ -31,6 +31,7 @@ import androidx.annotation.Nullable;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
|
||||
|
||||
import com.aefyr.tsg.g2.TelegramStickersService;
|
||||
import com.aefyr.tsg.g2.stickersgrabber.TelegramStickersGrabber;
|
||||
@@ -139,7 +140,7 @@ public class StickersFragment extends MaterialPreferenceToolbarFragment {
|
||||
mAdapter = new StickerPackAdapter();
|
||||
mRecycler = new RecyclerView(getContext());
|
||||
mRecycler.setAdapter(mAdapter);
|
||||
mRecycler.setLayoutManager(new LinearLayoutManager(getContext()));
|
||||
mRecycler.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));
|
||||
layout.addView(mRecycler, new FrameLayout.LayoutParams(-1, -1));
|
||||
|
||||
mAddStickerPack = new FloatingActionButton(getContext());
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<corners android:radius="15dp"/>
|
||||
<solid android:color="?attr/tabbar_background"/>
|
||||
|
||||
<padding
|
||||
android:left="20dp"
|
||||
android:top="10dp"
|
||||
android:right="20dp"
|
||||
android:bottom="10dp" >
|
||||
</padding>
|
||||
</shape>
|
||||
@@ -8,6 +8,7 @@
|
||||
android:layout_marginRight="5dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/tgs_entry_background">
|
||||
android:tag="linearLayout5">
|
||||
<ImageView
|
||||
android:tag="photo"
|
||||
|
||||
Reference in New Issue
Block a user