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
268262bf
Commit
268262bf
authored
Jul 30, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微调聊天室布局
parent
e7a1e470
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+4
-2
mobile/src/main/res/layout/fragment_mycard.xml
mobile/src/main/res/layout/fragment_mycard.xml
+2
-2
mobile/src/main/res/layout/fragment_mycard_chating_room.xml
mobile/src/main/res/layout/fragment_mycard_chating_room.xml
+1
-1
No files found.
mobile/build.gradle
View file @
268262bf
...
...
@@ -10,7 +10,7 @@ android {
//noinspection ExpiredTargetSdkVersion
targetSdkVersion
29
versionCode
310000727
versionName
"3.
9.8
"
versionName
"3.
10.0
"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
ndk
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
268262bf
...
...
@@ -103,6 +103,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
private
CardView
cv_banner
;
private
TextView
tv_banner_loading
;
private
XBanner
xb_banner
;
private
McNews
mcNews
;
private
ArrayList
<
McNews
>
mcNewsList
;
//ygopro功能
private
CardView
cv_game
;
...
...
@@ -191,6 +192,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
//轮播图
public
void
initBanner
(
View
view
,
Bundle
saveBundle
)
{
Log
.
i
(
"3.10.0看看"
,
saveBundle
+
""
);
xb_banner
=
view
.
findViewById
(
R
.
id
.
xb_banner
);
cv_banner
=
view
.
findViewById
(
R
.
id
.
cv_banner
);
cv_banner
.
post
(()
->
{
...
...
@@ -213,7 +215,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
tv_type
=
v
.
findViewById
(
R
.
id
.
tv_type
);
iv_image
=
v
.
findViewById
(
R
.
id
.
iv_image
);
McNews
mcNews
=
mcNewsList
.
get
(
position
);
mcNews
=
mcNewsList
.
get
(
position
);
ImageUtil
.
setImageAndBackground
(
getContext
(),
mcNews
.
getImage_url
(),
iv_image
);
tv_time
.
setText
(
mcNews
.
getCreate_time
());
tv_title
.
setText
(
mcNews
.
getTitle
());
...
...
@@ -222,7 +224,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
if
(
saveBundle
==
null
)
{
findMcNews
();
}
else
{
HomeFragment
.
this
.
mcNewsList
=
(
ArrayList
<
McNews
>)
saveBundle
.
getSerializable
(
ARG_MC_NEWS_LIST
);
mcNewsList
=
(
ArrayList
<
McNews
>)
saveBundle
.
getSerializable
(
ARG_MC_NEWS_LIST
);
if
(
mcNewsList
!=
null
)
handler
.
sendEmptyMessage
(
TYPE_BANNER_QUERY_OK
);
else
...
...
mobile/src/main/res/layout/fragment_mycard.xml
View file @
268262bf
...
...
@@ -3,13 +3,13 @@
android:id=
"@+id/drawer_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/dialogshort"
android:orientation=
"vertical"
>
<FrameLayout
android:id=
"@+id/fl_head"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:background=
"@drawable/dialogshort"
android:orientation=
"vertical"
android:padding=
"10dp"
>
...
...
@@ -95,7 +95,7 @@
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:layout_gravity=
"bottom"
android:background=
"@drawable/
button
_bg"
android:background=
"@drawable/
list_item
_bg"
android:orientation=
"vertical"
android:padding=
"10dp"
>
...
...
mobile/src/main/res/layout/fragment_mycard_chating_room.xml
View file @
268262bf
...
...
@@ -2,7 +2,7 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/
button_n
"
android:background=
"@drawable/
dialogcube
"
android:gravity=
"center"
android:orientation=
"vertical"
>
...
...
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