Commit f4a6688c by wjg

优化推荐商品图片尺寸

parent ae173688
......@@ -44,6 +44,12 @@ public class RecommendAdapter extends BaseQuickAdapter<ScrollBean, BaseViewHolde
}
});
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));
}
}
}
......@@ -714,7 +714,7 @@ public class LauncherActivity extends Activity {
TIMESTAMP = Utils.getTimestamp();
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) {
TIMESTAMP = Utils.getTimestamp();
Utils.fastBroadcast(HLApplication.SELF, Base.BROADCAST_ACTION_CLEAR_GOODS);
......
<?xml version="1.0" encoding="utf-8"?>
<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:layout_width="match_parent"
android:layout_height="match_parent"
......@@ -22,7 +23,6 @@
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@mipmap/logo" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rec_recommend"
android:layout_width="match_parent"
......
......@@ -10,6 +10,8 @@
<dimen name="toast_padding_ver">55px</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_left">68px</dimen>
<dimen name="recommend_desc_margin_top">18px</dimen>
......
......@@ -10,6 +10,8 @@
<dimen name="toast_padding_ver">55px</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_left">68px</dimen>
<dimen name="recommend_desc_margin_top">30px</dimen>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment