Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
machine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
android
machine
Commits
f4a6688c
Commit
f4a6688c
authored
2 years ago
by
wjg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化推荐商品图片尺寸
parent
ae173688
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
2 deletions
+12
-2
app/src/main/java/com/ihaoin/hooloo/device/adapter/RecommendAdapter.java
+6
-0
app/src/main/java/com/ihaoin/hooloo/device/view/LauncherActivity.java
+1
-1
app/src/main/res/layout/activity_launcher.xml
+1
-1
app/src/main/res/values-w1080dp/dimens.xml
+2
-0
app/src/main/res/values/dimens.xml
+2
-0
No files found.
app/src/main/java/com/ihaoin/hooloo/device/adapter/RecommendAdapter.java
View file @
f4a6688c
...
@@ -44,6 +44,12 @@ public class RecommendAdapter extends BaseQuickAdapter<ScrollBean, BaseViewHolde
...
@@ -44,6 +44,12 @@ public class RecommendAdapter extends BaseQuickAdapter<ScrollBean, BaseViewHolde
}
}
});
});
helper
.
getConvertView
().
setTag
(
recommend
);
helper
.
getConvertView
().
setTag
(
recommend
);
if
(
recommend
.
getIndex
()
==
0
)
{
imgRecommend
.
setMaxHeight
(
Utils
.
getDimens
(
mContext
,
R
.
dimen
.
recommend_image_height_0
));
}
else
{
imgRecommend
.
setMaxHeight
(
Utils
.
getDimens
(
mContext
,
R
.
dimen
.
recommend_image_height_other
));
}
}
}
}
}
This diff is collapsed.
Click to expand it.
app/src/main/java/com/ihaoin/hooloo/device/view/LauncherActivity.java
View file @
f4a6688c
...
@@ -714,7 +714,7 @@ public class LauncherActivity extends Activity {
...
@@ -714,7 +714,7 @@ public class LauncherActivity extends Activity {
TIMESTAMP
=
Utils
.
getTimestamp
();
TIMESTAMP
=
Utils
.
getTimestamp
();
continue
;
continue
;
}
}
Log
.
i
(
AppConfig
.
TAG
,
String
.
valueOf
(
Utils
.
getTimestamp
()
-
TIMESTAMP
));
//
Log.i(AppConfig.TAG, String.valueOf(Utils.getTimestamp() - TIMESTAMP));
if
(
Utils
.
getTimestamp
()
-
TIMESTAMP
>
1000
*
30
)
{
if
(
Utils
.
getTimestamp
()
-
TIMESTAMP
>
1000
*
30
)
{
TIMESTAMP
=
Utils
.
getTimestamp
();
TIMESTAMP
=
Utils
.
getTimestamp
();
Utils
.
fastBroadcast
(
HLApplication
.
SELF
,
Base
.
BROADCAST_ACTION_CLEAR_GOODS
);
Utils
.
fastBroadcast
(
HLApplication
.
SELF
,
Base
.
BROADCAST_ACTION_CLEAR_GOODS
);
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/activity_launcher.xml
View file @
f4a6688c
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/layout_launcher"
android:id=
"@+id/layout_launcher"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
...
@@ -22,7 +23,6 @@
...
@@ -22,7 +23,6 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:adjustViewBounds=
"true"
android:adjustViewBounds=
"true"
android:src=
"@mipmap/logo"
/>
android:src=
"@mipmap/logo"
/>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rec_recommend"
android:id=
"@+id/rec_recommend"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/values-w1080dp/dimens.xml
View file @
f4a6688c
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
<dimen
name=
"toast_padding_ver"
>
55px
</dimen>
<dimen
name=
"toast_padding_ver"
>
55px
</dimen>
<dimen
name=
"recommend_padding"
>
38px
</dimen>
<dimen
name=
"recommend_padding"
>
38px
</dimen>
<dimen
name=
"recommend_image_height_0"
>
794px
</dimen>
<dimen
name=
"recommend_image_height_other"
>
392px
</dimen>
<dimen
name=
"recommend_name_margin_top"
>
82px
</dimen>
<dimen
name=
"recommend_name_margin_top"
>
82px
</dimen>
<dimen
name=
"recommend_name_margin_left"
>
68px
</dimen>
<dimen
name=
"recommend_name_margin_left"
>
68px
</dimen>
<dimen
name=
"recommend_desc_margin_top"
>
18px
</dimen>
<dimen
name=
"recommend_desc_margin_top"
>
18px
</dimen>
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/values/dimens.xml
View file @
f4a6688c
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
<dimen
name=
"toast_padding_ver"
>
55px
</dimen>
<dimen
name=
"toast_padding_ver"
>
55px
</dimen>
<dimen
name=
"recommend_padding"
>
5dp
</dimen>
<dimen
name=
"recommend_padding"
>
5dp
</dimen>
<dimen
name=
"recommend_image_height_0"
>
794px
</dimen>
<dimen
name=
"recommend_image_height_other"
>
392px
</dimen>
<dimen
name=
"recommend_name_margin_top"
>
82px
</dimen>
<dimen
name=
"recommend_name_margin_top"
>
82px
</dimen>
<dimen
name=
"recommend_name_margin_left"
>
68px
</dimen>
<dimen
name=
"recommend_name_margin_left"
>
68px
</dimen>
<dimen
name=
"recommend_desc_margin_top"
>
30px
</dimen>
<dimen
name=
"recommend_desc_margin_top"
>
30px
</dimen>
...
...
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