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
348adfe4
Commit
348adfe4
authored
Dec 15, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改卡组图标布局
parent
afc6d296
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
34 deletions
+32
-34
mobile/src/main/res/layout/fragment_deck_cards.xml
mobile/src/main/res/layout/fragment_deck_cards.xml
+32
-34
No files found.
mobile/src/main/res/layout/fragment_deck_cards.xml
View file @
348adfe4
...
@@ -45,26 +45,6 @@
...
@@ -45,26 +45,6 @@
android:layout_weight=
"1"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"15dp"
android:layout_height=
"15dp"
android:layout_gravity=
"bottom"
android:layout_marginEnd=
"5dp"
android:src=
"@drawable/box_deck"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:shadowColor=
"@color/black"
android:shadowDx=
"1"
android:shadowDy=
"1"
android:shadowRadius=
"2"
android:text=
"@string/deck_name"
android:textColor=
"@color/holo_blue_light"
android:textSize=
"10sp"
android:textStyle=
"bold"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_click_like"
android:id=
"@+id/ll_click_like"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -113,22 +93,40 @@
...
@@ -113,22 +93,40 @@
android:paddingEnd=
"5dp"
android:paddingEnd=
"5dp"
android:weightSum=
"1"
>
android:weightSum=
"1"
>
<
androidx.appcompat.widget.AppCompatTextView
<
!-- 将图标和文本放在同一个容器中 -->
android:id=
"@+id/tv_deck"
<FrameLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_gravity=
"top|start"
android:layout_weight=
"0.8"
>
android:layout_marginTop=
"2dp"
android:layout_weight=
"0.8"
<!-- 文本视图 -->
android:maxLines=
"2"
<androidx.appcompat.widget.AppCompatTextView
android:shadowColor=
"@color/black"
android:id=
"@+id/tv_deck"
android:shadowDx=
"1"
android:layout_width=
"match_parent"
android:shadowDy=
"1"
android:layout_height=
"wrap_content"
android:shadowRadius=
"2"
android:layout_gravity=
"top|start"
android:text=
"@string/select_deck"
android:layout_marginTop=
"2dp"
android:textColor=
"@color/white"
android:maxLines=
"2"
android:textSize=
"18sp"
android:shadowColor=
"@color/black"
android:textStyle=
"bold"
/>
android:shadowDx=
"1"
android:shadowDy=
"1"
android:shadowRadius=
"2"
android:text=
"@string/select_deck"
android:textColor=
"@color/white"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
<!-- 图标叠在文本下方 -->
<ImageView
android:layout_width=
"60dp"
android:layout_height=
"40dp"
android:layout_gravity=
"bottom|end"
android:scaleType=
"fitXY"
android:scaleX=
"1"
android:scaleY=
"1.4"
android:src=
"@drawable/box_deck"
android:alpha=
"0.1"
/>
</FrameLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_genesys_scoreboard"
android:id=
"@+id/ll_genesys_scoreboard"
...
...
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