Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
9b779191
Commit
9b779191
authored
Jun 20, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整布局
parent
610b9801
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
145 additions
and
27 deletions
+145
-27
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+2
-2
mobile/src/main/res/layout/item_server_info_swipe.xml
mobile/src/main/res/layout/item_server_info_swipe.xml
+2
-2
mobile/src/main/res/layout/main_fragment.xml
mobile/src/main/res/layout/main_fragment.xml
+141
-23
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
9b779191
...
@@ -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
);
...
...
mobile/src/main/res/layout/item_server_info_swipe.xml
View file @
9b779191
...
@@ -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=
"1
6
sp"
android:textSize=
"1
5
sp"
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=
"1
2
sp"
android:textSize=
"1
0
sp"
tools:text=
"player"
/>
tools:text=
"player"
/>
<LinearLayout
<LinearLayout
...
...
mobile/src/main/res/layout/main_fragment.xml
View file @
9b779191
<?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_cont
ent"
android:layout_width=
"
match_par
ent"
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>
<
Relative
Layout
<
Linear
Layout
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"
>
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/action_join_qq_group"
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
<ImageView
android:id=
"@+id/btn_mycard"
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/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_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"
>
<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
<TextView
android:layout_width=
"60dp"
android:layout_width=
"wrap_content"
android:layout_height=
"20dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:background=
"@drawable/window3"
android:gravity=
"center"
android:paddingLeft=
"13dp"
android:text=
"@string/mycard"
/>
android:paddingTop=
"13dp"
</FrameLayout>
android:text=
"@string/donation"
android:textSize=
"10sp"
android:textColor=
"@color/holo_blue_bright"
android:textStyle=
"bold"
/>
</RelativeLayout>
</RelativeLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment