Commit a402f265 authored by fallenstardust's avatar fallenstardust

ypk内的ydk文件不显示上传按钮

parent 90e3178a
...@@ -223,7 +223,9 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D ...@@ -223,7 +223,9 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D
holder.item_deck_list.setBackgroundResource(Color.TRANSPARENT); holder.item_deck_list.setBackgroundResource(Color.TRANSPARENT);
} }
//卡包展示、人机卡组不显示上传按钮图标 //卡包展示、人机卡组不显示上传按钮图标
if (deckFile.getPathFile().getParent().endsWith(Constants.CORE_PACK_PATH) || deckFile.getPathFile().getParent().endsWith(Constants.WINDBOT_DECK_PATH)) { if (deckFile.getPathFile().getParent().endsWith(Constants.CORE_PACK_PATH)
|| deckFile.getPathFile().getParent().endsWith(Constants.WINDBOT_DECK_PATH)
||deckFile.getPathFile().getParent().endsWith("cacheDeck")) {
holder.local_deck_upload_btn.setVisibility(View.GONE); holder.local_deck_upload_btn.setVisibility(View.GONE);
} else { } else {
holder.local_deck_upload_btn.setVisibility(View.VISIBLE); holder.local_deck_upload_btn.setVisibility(View.VISIBLE);
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<ImageButton <ImageButton
android:id="@+id/former_page_btn" android:id="@+id/former_page_btn"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="@drawable/ic_radius_bg" android:background="@drawable/ic_radius_bg"
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<ImageButton <ImageButton
android:id="@+id/next_page_btn" android:id="@+id/next_page_btn"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="@drawable/ic_radius_bg" android:background="@drawable/ic_radius_bg"
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<ImageButton <ImageButton
android:id="@+id/refresh_data" android:id="@+id/refresh_data"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="@drawable/ic_radius_bg" android:background="@drawable/ic_radius_bg"
......
...@@ -3,22 +3,15 @@ ...@@ -3,22 +3,15 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:weightSum="12"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="11"
android:orientation="vertical"> android:orientation="vertical">
<EditText <EditText
android:id="@+id/et_my_deck_input_deck_name" android:id="@+id/et_my_deck_input_deck_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
android:layout_marginRight="5dp" android:layout_marginRight="5dp"
android:gravity="center"
android:hint="@string/intpu_name" android:hint="@string/intpu_name"
android:imeOptions="actionSearch" android:imeOptions="actionSearch"
android:inputType="textNoSuggestions" android:inputType="textNoSuggestions"
...@@ -30,21 +23,21 @@ ...@@ -30,21 +23,21 @@
<com.tubb.smrv.SwipeMenuRecyclerView <com.tubb.smrv.SwipeMenuRecyclerView
android:id="@+id/list_my_deck_info" android:id="@+id/list_my_deck_info"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="0dp"
android:layout_weight="1"
android:divider="@android:color/transparent" android:divider="@android:color/transparent"
android:dividerHeight="4dp" android:dividerHeight="4dp"
android:padding="5dp" android:padding="5dp"
android:scrollbars="vertical" android:scrollbars="vertical"
tools:layout_editor_absoluteX="16dp" tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="16dp" /> tools:layout_editor_absoluteY="16dp" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="bottom"
android:layout_margin="5dp" android:layout_margin="5dp"
android:weightSum="3"> android:orientation="horizontal">
<View <View
android:layout_width="0dp" android:layout_width="0dp"
...@@ -54,13 +47,13 @@ ...@@ -54,13 +47,13 @@
<ImageButton <ImageButton
android:id="@+id/refresh_data" android:id="@+id/refresh_data"
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="5dp" android:layout_margin="5dp"
android:layout_weight="1"
android:layout_gravity="center|bottom"
android:background="@drawable/ic_radius_bg" android:background="@drawable/ic_radius_bg"
android:src="@drawable/ic_refresh" /> android:src="@drawable/ic_refresh" />
<View <View
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="1dp" android:layout_height="1dp"
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:weightSum="2.3" android:weightSum="2.3"
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
android:layout_gravity="end" android:layout_gravity="end"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="@drawable/button_radius_red" android:background="@drawable/button_radius_red"
android:rotation="48" android:rotation="45"
android:src="@drawable/ic_add_white" /> android:src="@drawable/ic_add_white" />
<LinearLayout <LinearLayout
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:id="@+id/ll_switch_show"
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:layout_gravity="center"
......
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