Commit 9b779191 authored by fallenstardust's avatar fallenstardust

调整布局

parent 610b9801
...@@ -124,7 +124,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener { ...@@ -124,7 +124,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
mServerListManager = new ServerListManager(getContext(), mServerListAdapter); mServerListManager = new ServerListManager(getContext(), mServerListAdapter);
mServerListManager.bind(mServerList); mServerListManager.bind(mServerList);
mServerListManager.syncLoadData(); mServerListManager.syncLoadData();
//萌卡 /*/萌卡
ImageView iv_mc = view.findViewById(R.id.btn_mycard); ImageView iv_mc = view.findViewById(R.id.btn_mycard);
iv_mc.setOnClickListener((v) -> { iv_mc.setOnClickListener((v) -> {
if (Constants.SHOW_MYCARD) { if (Constants.SHOW_MYCARD) {
...@@ -138,7 +138,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener { ...@@ -138,7 +138,7 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
startActivity(new Intent(getActivity(), FileLogActivity.class)); startActivity(new Intent(getActivity(), FileLogActivity.class));
return true; return true;
} }
}); });*/
tv = (ShimmerTextView) view.findViewById(R.id.shimmer_tv); tv = (ShimmerTextView) view.findViewById(R.id.shimmer_tv);
toggleAnimation(tv); toggleAnimation(tv);
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
android:singleLine="true" android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Title" android:textAppearance="@style/TextAppearance.AppCompat.Title"
android:textColor="@color/brightgreen" android:textColor="@color/brightgreen"
android:textSize="16sp" android:textSize="15sp"
tools:text="233正式服务器" /> tools:text="233正式服务器" />
<LinearLayout <LinearLayout
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
android:singleLine="true" android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="@color/holo_blue_bright" android:textColor="@color/holo_blue_bright"
android:textSize="12sp" android:textSize="10sp"
tools:text="player" /> tools:text="player" />
<LinearLayout <LinearLayout
......
<?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"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="#80000000" android:background="#80000000"
android:orientation="vertical"> android:orientation="vertical">
...@@ -53,13 +53,13 @@ ...@@ -53,13 +53,13 @@
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="200dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<FrameLayout <FrameLayout
android:id="@+id/serverlist" android:id="@+id/serverlist"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="60dp"> android:layout_marginBottom="60dp">
...@@ -82,34 +82,152 @@ ...@@ -82,34 +82,152 @@
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>
<RelativeLayout <LinearLayout
android:id="@+id/bottombar" android:id="@+id/bottombar"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="100dp" android:layout_height="wrap_content"
android:layout_marginBottom="20dp" android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:orientation="horizontal" android:orientation="horizontal"
android:weightSum="1"> android:weightSum="1">
<FrameLayout <LinearLayout
android:id="@+id/mycard"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content">
android:gravity="bottom"
<androidx.cardview.widget.CardView
android:id="@+id/action_game"
android:layout_width="102dp"
android:layout_height="110dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:orientation="vertical"
app:cardBackgroundColor="@color/transparent"
app:cardElevation="0dp"
app:cardUseCompatPadding="false"
app:elevation="0dp">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-30dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="-30dp"
android:layout_marginRight="-20dp"
android:layout_marginBottom="-20dp"
android:scaleType="fitEnd"
android:src="@drawable/start" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/window3"
android:paddingLeft="13dp"
android:paddingTop="13dp"
android:text="@string/action_game"
android:textColor="@color/holo_blue_bright"
android:textStyle="bold" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/btn_mycard" android:id="@+id/action_join_qq_group"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="50dp"
android:background="@drawable/window"/> android:layout_marginBottom="10dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:orientation="vertical"
app:cardBackgroundColor="@color/transparent"
app:cardElevation="0dp"
app:cardUseCompatPadding="false"
app:elevation="0dp">
<TextView <RelativeLayout
android:layout_width="60dp" android:layout_width="wrap_content"
android:layout_height="20dp" android:layout_height="wrap_content">
android:layout_gravity="center"
android:gravity="center" <ImageView
android:text="@string/mycard" /> android:layout_width="wrap_content"
</FrameLayout> android:layout_height="wrap_content"
</RelativeLayout> android:layout_marginStart="-10dp"
android:layout_marginLeft="30dp"
android:layout_marginTop="-10dp"
android:layout_marginEnd="-10dp"
android:layout_marginRight="-20dp"
android:layout_marginBottom="-10dp"
android:scaleType="fitEnd"
android:src="@drawable/joinqqgroup" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/window3"
android:paddingLeft="13dp"
android:paddingTop="13dp"
android:text="@string/Join_QQ"
android:textColor="@color/holo_blue_bright"
android:textSize="10sp"
android:textStyle="bold" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/nav_webpage"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="10dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:orientation="vertical"
app:cardBackgroundColor="@color/transparent"
app:cardElevation="0dp"
app:cardUseCompatPadding="false"
app:elevation="0dp">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-10dp"
android:layout_marginLeft="30dp"
android:layout_marginTop="-10dp"
android:layout_marginEnd="-10dp"
android:layout_marginRight="-20dp"
android:layout_marginBottom="-10dp"
android:scaleType="fitEnd"
android:src="@drawable/about" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/window3"
android:paddingLeft="13dp"
android:paddingTop="13dp"
android:text="@string/donation"
android:textSize="10sp"
android:textColor="@color/holo_blue_bright"
android:textStyle="bold" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
</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