Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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-Cn-Ko-En
Commits
15b89369
Commit
15b89369
authored
Dec 14, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix arrange bg size
parent
d9a744aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mobile/src/main/java/cn/garymb/ygomobile/adapter/DialogImageAdapter.java
.../java/cn/garymb/ygomobile/adapter/DialogImageAdapter.java
+5
-5
No files found.
mobile/src/main/java/cn/garymb/ygomobile/adapter/DialogImageAdapter.java
View file @
15b89369
...
...
@@ -3,7 +3,6 @@ package cn.garymb.ygomobile.adapter;
import
android.content.Context
;
import
android.graphics.Bitmap
;
import
android.graphics.BitmapFactory
;
import
android.util.Log
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.BaseAdapter
;
...
...
@@ -18,7 +17,6 @@ import cn.garymb.ygomobile.AppsSettings;
import
cn.garymb.ygomobile.bean.ImageItem
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.ui.plus.DialogPlus
;
import
cn.garymb.ygomobile.utils.CurImageInfo
;
import
cn.garymb.ygomobile.utils.FileUtils
;
import
cn.garymb.ygomobile.utils.YGOUtil
;
...
...
@@ -37,8 +35,6 @@ public class DialogImageAdapter extends BaseAdapter {
this
.
context
=
context
;
this
.
mImageView
=
imageView
;
this
.
imageItems
=
imageItems
;
if
(
itemWidth_itemHeight
[
0
]
>=
960
)
itemWidth_itemHeight
[
0
]/=
7
;
if
(
itemWidth_itemHeight
[
1
]
>=
540
)
itemWidth_itemHeight
[
1
]/=
7
;
this
.
itemWidth
=
itemWidth_itemHeight
[
0
];
this
.
itemHeight
=
itemWidth_itemHeight
[
1
];
this
.
mFilename
=
outFile
;
...
...
@@ -81,7 +77,11 @@ public class DialogImageAdapter extends BaseAdapter {
//初始化item的布局iv
if
(
convertView
==
null
)
{
iv
=
new
ImageView
(
context
);
iv
.
setLayoutParams
(
new
GridView
.
LayoutParams
(
itemWidth
,
itemHeight
));
int
width
=
itemWidth
;
int
height
=
itemHeight
;
if
(
itemWidth
>=
960
)
width
=
itemWidth
/
7
;
if
(
itemHeight
>=
540
)
height
=
itemHeight
/
7
;
iv
.
setLayoutParams
(
new
GridView
.
LayoutParams
(
width
,
height
));
iv
.
setScaleType
(
ImageView
.
ScaleType
.
FIT_CENTER
);
iv
.
setPadding
(
3
,
3
,
3
,
3
);
}
else
{
...
...
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