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
26e30000
Commit
26e30000
authored
Sep 19, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
允许跟随系统屏幕旋转
parent
66ec3716
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
78 deletions
+53
-78
mobile/src/main/AndroidManifest.xml
mobile/src/main/AndroidManifest.xml
+4
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+4
-3
mobile/src/main/res/layout/fragment_home.xml
mobile/src/main/res/layout/fragment_home.xml
+10
-15
mobile/src/main/res/layout/fragment_home_horizontal.xml
mobile/src/main/res/layout/fragment_home_horizontal.xml
+35
-56
No files found.
mobile/src/main/AndroidManifest.xml
View file @
26e30000
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
<activity
<activity
android:name=
"cn.garymb.ygomobile.ui.home.MainActivity"
android:name=
"cn.garymb.ygomobile.ui.home.MainActivity"
android:configChanges=
"
orientation|keyboardHidden|navigation|screenSize
"
android:configChanges=
"
keyboardHidden|navigation
"
android:exported=
"true"
android:exported=
"true"
android:screenOrientation=
"
portrait
"
android:screenOrientation=
"
unspecified
"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
android:theme=
"@style/AppTheme"
android:theme=
"@style/AppTheme"
android:windowSoftInputMode=
"stateAlwaysHidden|adjustResize"
>
android:windowSoftInputMode=
"stateAlwaysHidden|adjustResize"
>
...
@@ -136,9 +136,9 @@
...
@@ -136,9 +136,9 @@
tools:replace=
"android:theme"
/>
tools:replace=
"android:theme"
/>
<activity
<activity
android:name=
"cn.garymb.ygomobile.ui.file.FileActivity"
android:name=
"cn.garymb.ygomobile.ui.file.FileActivity"
android:configChanges=
"orientation|keyboardHidden|navigation
|screenSize
"
android:configChanges=
"orientation|keyboardHidden|navigation"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
android:screenOrientation=
"
portrait
"
android:screenOrientation=
"
unspecified
"
android:theme=
"@style/AppTheme"
android:theme=
"@style/AppTheme"
android:windowSoftInputMode=
"stateAlwaysHidden|adjustResize"
/>
android:windowSoftInputMode=
"stateAlwaysHidden|adjustResize"
/>
<activity
<activity
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
26e30000
...
@@ -21,8 +21,8 @@ import android.view.inputmethod.EditorInfo;
...
@@ -21,8 +21,8 @@ import android.view.inputmethod.EditorInfo;
import
android.widget.Button
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.EditText
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.ListView
;
import
android.widget.ListView
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
android.widget.Toast
;
...
@@ -97,7 +97,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
...
@@ -97,7 +97,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
private
static
final
String
ARG_MC_NEWS_LIST
=
"mcNewsList"
;
private
static
final
String
ARG_MC_NEWS_LIST
=
"mcNewsList"
;
private
boolean
isMcNewsLoadException
=
false
;
private
boolean
isMcNewsLoadException
=
false
;
private
Relative
Layout
ll_back
;
private
Linear
Layout
ll_back
;
ShimmerTextView
tv
;
ShimmerTextView
tv
;
ShimmerTextView
tv2
;
ShimmerTextView
tv2
;
Shimmer
shimmer
;
Shimmer
shimmer
;
...
@@ -275,7 +275,8 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
...
@@ -275,7 +275,8 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
findExPansionsDataVer
();
findExPansionsDataVer
();
Log
.
i
(
BuildConfig
.
VERSION_NAME
,
WebActivity
.
dataVer
);
Log
.
i
(
BuildConfig
.
VERSION_NAME
,
WebActivity
.
dataVer
);
if
(!
TextUtils
.
isEmpty
(
WebActivity
.
dataVer
)
&&
!
WebActivity
.
dataVer
.
equals
(
oldVer
))
{
if
(!
TextUtils
.
isEmpty
(
WebActivity
.
dataVer
)
&&
!
WebActivity
.
dataVer
.
equals
(
oldVer
))
{
ll_new_notice
.
setVisibility
(
View
.
VISIBLE
);
findExPansionsDataVer
();
ll_new_notice
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
}
else
{
ll_new_notice
.
setVisibility
(
View
.
GONE
);
ll_new_notice
.
setVisibility
(
View
.
GONE
);
}
}
...
...
mobile/src/main/res/layout/fragment_home.xml
View file @
26e30000
...
@@ -100,34 +100,29 @@
...
@@ -100,34 +100,29 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:scrollbars=
"none"
/>
android:scrollbars=
"none"
/>
<
Relative
Layout
<
Linear
Layout
android:id=
"@+id/return_to_duel"
android:id=
"@+id/return_to_duel"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:background=
"@drawable/window3"
android:background=
"@drawable/window3"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/logo_small"
android:id=
"@+id/logo_small"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
gravity=
"center"
android:layout_
gravity=
"center"
android:src=
"@drawable/ic_launcher3"
/>
android:src=
"@drawable/ic_launcher3"
/>
<cn.garymb.ygomobile.ui.widget.ShimmerTextView
<cn.garymb.ygomobile.ui.widget.ShimmerTextView
android:id=
"@+id/shimmer_tv"
android:id=
"@+id/shimmer_tv"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_alignParentLeft=
"true"
android:layout_marginStart=
"-263dp"
android:layout_marginLeft=
"1dp"
android:layout_toEndOf=
"@id/logo_small"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"@string/return_to_duel"
android:text=
"@string/return_to_duel"
android:textColor=
"@color/item_title"
/>
android:textColor=
"@color/item_title"
/>
</RelativeLayout>
</LinearLayout>
</FrameLayout>
</FrameLayout>
</LinearLayout>
</LinearLayout>
...
...
mobile/src/main/res/layout/fragment_home_horizontal.xml
View file @
26e30000
This diff is collapsed.
Click to expand it.
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