Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

卡片背景怎么设置成圆角 #182

Open
anfeierde opened this issue Oct 12, 2019 · 1 comment
Open

卡片背景怎么设置成圆角 #182

anfeierde opened this issue Oct 12, 2019 · 1 comment

Comments

@anfeierde
Copy link

请问卡片背景怎么设置成圆角?比如天猫首页功能模块的样式

@0426ksinacom
Copy link

// mEngine.register(CardSupport.class,new MyCardLoadSupport());
public class MyCardLoadSupport extends CardSupport {
@OverRide
public void onBindBackgroundView(View layoutView, Card card) {
JSONObject extras = card.extras;
Log.e("aaa","MyCardLoadSupport extras == "+extras);

    layoutView.setBackground(layoutView.getResources().getDrawable(R.drawable.bg_shape));

// layoutView.setBackgroundColor(layoutView.getResources().getColor(R.color.colorPrimaryDark));

}

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants