Commit 2fc0d570 authored by fallenstardust's avatar fallenstardust

调整布局贴图

parent fc2b9695
...@@ -89,7 +89,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener { ...@@ -89,7 +89,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
ShimmerTextView tv; ShimmerTextView tv;
Shimmer shimmer; Shimmer shimmer;
protected SwipeMenuRecyclerView mServerList; private SwipeMenuRecyclerView mServerList;
private ServerListAdapter mServerListAdapter; private ServerListAdapter mServerListAdapter;
private ServerListManager mServerListManager; private ServerListManager mServerListManager;
private CardManager mCardManager; private CardManager mCardManager;
...@@ -169,11 +169,11 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener { ...@@ -169,11 +169,11 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
startActivity(new Intent(getActivity(), FileLogActivity.class)); startActivity(new Intent(getActivity(), FileLogActivity.class));
return true; return true;
} }
}); });*/
cv_reset_res = view.findViewById(R.id.action_reset_game_res); // cv_reset_res = view.findViewById(R.id.action_reset_game_res);
cv_reset_res.setOnClickListener(this); // cv_reset_res.setOnClickListener(this);
cv_join_QQ = view.findViewById(R.id.action_join_qq_group); // cv_join_QQ = view.findViewById(R.id.action_join_qq_group);
cv_join_QQ.setOnClickListener(this);*/ // cv_join_QQ.setOnClickListener(this);
cv_donation = view.findViewById(R.id.nav_webpage); cv_donation = view.findViewById(R.id.nav_webpage);
cv_donation.setOnClickListener(this); cv_donation.setOnClickListener(this);
cv_help = view.findViewById(R.id.action_help); cv_help = view.findViewById(R.id.action_help);
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/list_item_p" android:state_pressed="true" />
<item android:drawable="@drawable/list_item_n" />
</selector>
\ No newline at end of file
...@@ -10,15 +10,8 @@ ...@@ -10,15 +10,8 @@
android:id="@+id/drawer_layout" android:id="@+id/drawer_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:openDrawer="left"> tools:openDrawer="left">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000"
android:orientation="vertical"></LinearLayout>
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
...@@ -156,7 +149,7 @@ ...@@ -156,7 +149,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="left" android:layout_gravity="left"
android:background="@drawable/blue" android:background="@drawable/nav_left"
android:orientation="vertical" android:orientation="vertical"
android:paddingLeft="4dp" android:paddingLeft="4dp"
android:paddingTop="2dp" android:paddingTop="2dp"
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/fragment_home"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:id="@+id/fragment_home"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="@drawable/dialogshort"> android:background="@drawable/dialogshort"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/veil2"
android:gravity="center" android:gravity="center"
android:text="@string/McNews" android:text="@string/McNews"
android:background="@drawable/veil2" android:textSize="10sp" />
android:textSize="10sp"/>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/cv_banner" android:id="@+id/cv_banner"
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
android:orientation="vertical" android:orientation="vertical"
app:cardBackgroundColor="@color/transparent" app:cardBackgroundColor="@color/transparent"
app:cardCornerRadius="5dp" app:cardCornerRadius="5dp"
app:elevation="0dp"
app:cardElevation="0dp" app:cardElevation="0dp"
app:cardUseCompatPadding="false"> app:cardUseCompatPadding="false"
app:elevation="0dp">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -82,9 +82,9 @@ ...@@ -82,9 +82,9 @@
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/veil2"
android:gravity="center" android:gravity="center"
android:text="@string/server_list" android:text="@string/server_list"
android:background="@drawable/veil2"
android:textSize="10sp"> android:textSize="10sp">
</androidx.appcompat.widget.AppCompatTextView> </androidx.appcompat.widget.AppCompatTextView>
...@@ -132,9 +132,9 @@ ...@@ -132,9 +132,9 @@
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/veil2"
android:gravity="center" android:gravity="center"
android:text="YGOPro" android:text="YGOPro"
android:background="@drawable/veil2"
android:textSize="10sp"> android:textSize="10sp">
</androidx.appcompat.widget.AppCompatTextView> </androidx.appcompat.widget.AppCompatTextView>
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
android:layout_marginRight="-20dp" android:layout_marginRight="-20dp"
android:layout_marginBottom="-10dp" android:layout_marginBottom="-10dp"
android:scaleType="fitEnd" android:scaleType="fitEnd"
android:src="@drawable/help" /> android:src="@drawable/bot" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -216,8 +216,8 @@ ...@@ -216,8 +216,8 @@
android:paddingLeft="13dp" android:paddingLeft="13dp"
android:paddingTop="13dp" android:paddingTop="13dp"
android:text="@string/bot_mode" android:text="@string/bot_mode"
android:textSize="10sp"
android:textColor="@color/brightgreen" android:textColor="@color/brightgreen"
android:textSize="10sp"
android:textStyle="bold" /> android:textStyle="bold" />
</RelativeLayout> </RelativeLayout>
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>
...@@ -306,25 +306,24 @@ ...@@ -306,25 +306,24 @@
</RelativeLayout> </RelativeLayout>
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>
</LinearLayout> </LinearLayout>
<ImageView <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:src="@drawable/ic_launcher3"
android:layout_weight="1" /> android:layout_weight="1" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/dialogshort"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:background="@drawable/dialogshort"
android:orientation="vertical"> android:orientation="vertical">
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/veil2"
android:gravity="center" android:gravity="center"
android:text="@string/Function_Menu" android:text="@string/Function_Menu"
android:background="@drawable/veil2"
android:textSize="10sp"> android:textSize="10sp">
</androidx.appcompat.widget.AppCompatTextView> </androidx.appcompat.widget.AppCompatTextView>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/button_bg" android:background="@drawable/list_item_bg"
android:orientation="vertical" android:orientation="vertical"
android:padding="@dimen/padding2"> android:padding="@dimen/padding2">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
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:background="@drawable/red" android:background="@drawable/nav_right"
android:orientation="vertical" android:orientation="vertical"
android:padding="10dp" android:padding="10dp"
android:layout_marginBottom="60dp" android:layout_marginBottom="60dp"
......
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