Commit 7e121df8 authored by fallenstardust's avatar fallenstardust

卡组、卡组分类名称滚动显示

parent 8007897c
...@@ -17,6 +17,7 @@ import android.widget.ListView; ...@@ -17,6 +17,7 @@ import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.recyclerview.widget.FastScrollLinearLayoutManager;
import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
...@@ -113,8 +114,8 @@ public class YGODialogUtil { ...@@ -113,8 +114,8 @@ public class YGODialogUtil {
tv_del = viewDialog.findViewById(R.id.tv_del); tv_del = viewDialog.findViewById(R.id.tv_del);
hideAllDeckUtil(); hideAllDeckUtil();
rv_deck.setLayoutManager(new LinearLayoutManager(context)); rv_deck.setLayoutManager(new FastScrollLinearLayoutManager(context));
rv_type.setLayoutManager(new LinearLayoutManager(context)); rv_type.setLayoutManager(new FastScrollLinearLayoutManager(context));
List<DeckType> typeList = DeckUtil.getDeckTypeList(context); List<DeckType> typeList = DeckUtil.getDeckTypeList(context);
......
...@@ -131,10 +131,13 @@ ...@@ -131,10 +131,13 @@
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="3"> android:weightSum="3">
<androidx.recyclerview.widget.RecyclerView <com.tubb.smrv.SwipeMenuRecyclerView
android:id="@+id/rv_type" android:id="@+id/rv_type"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:divider="@android:color/transparent"
android:dividerHeight="4dp"
android:scrollbars="vertical"
android:layout_weight="1" /> android:layout_weight="1" />
<View <View
...@@ -142,11 +145,13 @@ ...@@ -142,11 +145,13 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/holo_blue_light" /> android:background="@color/holo_blue_light" />
<androidx.recyclerview.widget.RecyclerView <com.tubb.smrv.SwipeMenuRecyclerView
android:id="@+id/rv_deck" android:id="@+id/rv_deck"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="2" android:divider="@android:color/transparent"
android:nestedScrollingEnabled="true" /> android:dividerHeight="4dp"
android:scrollbars="vertical"
android:layout_weight="2" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment