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
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);
} else {
holder.local_deck_upload_btn.setVisibility(View.VISIBLE);
......
......@@ -87,7 +87,7 @@
<ImageButton
android:id="@+id/former_page_btn"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="5dp"
android:background="@drawable/ic_radius_bg"
......@@ -96,7 +96,7 @@
<ImageButton
android:id="@+id/next_page_btn"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="5dp"
android:background="@drawable/ic_radius_bg"
......@@ -105,7 +105,7 @@
<ImageButton
android:id="@+id/refresh_data"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="5dp"
android:background="@drawable/ic_radius_bg"
......
......@@ -3,48 +3,41 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="12"
android:orientation="vertical">
<LinearLayout
<EditText
android:id="@+id/et_my_deck_input_deck_name"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="11"
android:orientation="vertical">
<EditText
android:id="@+id/et_my_deck_input_deck_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:hint="@string/intpu_name"
android:imeOptions="actionSearch"
android:inputType="textNoSuggestions"
android:singleLine="true"
android:textColor="@color/holo_blue_bright"
android:textColorHint="@color/gray"
android:textSize="15sp" />
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:gravity="center"
android:hint="@string/intpu_name"
android:imeOptions="actionSearch"
android:inputType="textNoSuggestions"
android:singleLine="true"
android:textColor="@color/holo_blue_bright"
android:textColorHint="@color/gray"
android:textSize="15sp" />
<com.tubb.smrv.SwipeMenuRecyclerView
android:id="@+id/list_my_deck_info"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@android:color/transparent"
android:dividerHeight="4dp"
android:padding="5dp"
android:scrollbars="vertical"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="16dp" />
</LinearLayout>
<LinearLayout
<com.tubb.smrv.SwipeMenuRecyclerView
android:id="@+id/list_my_deck_info"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:divider="@android:color/transparent"
android:dividerHeight="4dp"
android:padding="5dp"
android:scrollbars="vertical"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_margin="5dp"
android:weightSum="3">
android:orientation="horizontal">
<View
android:layout_width="0dp"
......@@ -54,13 +47,13 @@
<ImageButton
android:id="@+id/refresh_data"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="5dp"
android:layout_weight="1"
android:layout_gravity="center|bottom"
android:background="@drawable/ic_radius_bg"
android:src="@drawable/ic_refresh" />
<View
android:layout_width="0dp"
android:layout_height="1dp"
......
......@@ -136,7 +136,7 @@
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:weightSum="2.3"
......
......@@ -54,7 +54,7 @@
android:layout_gravity="end"
android:layout_margin="5dp"
android:background="@drawable/button_radius_red"
android:rotation="48"
android:rotation="45"
android:src="@drawable/ic_add_white" />
<LinearLayout
......@@ -65,6 +65,7 @@
android:orientation="vertical">
<LinearLayout
android:id="@+id/ll_switch_show"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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