调整首页BannerUi
This commit is contained in:
parent
d17bb8cf50
commit
12c5e18b0c
@ -20,7 +20,7 @@ public class CustomViewHolder implements BannerViewHolder<BannerBean> {
|
||||
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT
|
||||
);
|
||||
imageView.setLayoutParams(params);
|
||||
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
|
||||
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
|
||||
//Glide.with(context).load(data.getImageUrl()).into(imageView);
|
||||
ImgLoader.display(context,data.getImageUrl(),imageView);
|
||||
|
||||
|
@ -59,7 +59,7 @@ public class MainHomeLiveAdapter extends RefreshAdapter<LiveBean> {
|
||||
this.context = context;
|
||||
this.Height = h;
|
||||
mHeadView = mInflater.inflate(R.layout.item_main_home_live_head, null, false);
|
||||
mHeadView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, DpUtil.dp2px(120)));
|
||||
mHeadView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, DpUtil.dp2px(85)));
|
||||
}
|
||||
|
||||
public View getHeadView() {
|
||||
|
@ -356,7 +356,7 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
mBanner.setOutlineProvider(new ViewOutlineProvider() {
|
||||
@Override
|
||||
public void getOutline(View view, Outline outline) {
|
||||
outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 10);
|
||||
outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 30);
|
||||
}
|
||||
});
|
||||
mBanner.setClipToOutline(true);
|
||||
|
@ -1,10 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/top_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="135dp"
|
||||
android:layout_height="85dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
@ -27,15 +26,12 @@
|
||||
android:id="@+id/banner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="3dp"
|
||||
|
||||
android:layout_marginBottom="5dp"
|
||||
app:delay_time="3000"
|
||||
app:indicator_drawable_selected="@drawable/bg_home_indicator_selected"
|
||||
app:indicator_drawable_unselected="@drawable/bg_home_indicator_unselected"
|
||||
app:indicator_height="8dp"
|
||||
app:indicator_margin="6dp"
|
||||
app:indicator_width="8dp">
|
||||
app:indicator_height="10dp"
|
||||
app:indicator_width="10dp">
|
||||
|
||||
</com.ms.banner.Banner>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user