public class VerifyActivity extends BaseActivity {
private ViewPager mVerifyViewPager;
private LinearLayout ll_indicator_verify;
private ArrayList<View> viewList = new ArrayList<>();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_verify);
StatusBarCompat.setStatusBarColor(VerifyActivity.this, Color.parseColor("#ffffff"), true);
initView();
}
private void initView() {
mVerifyViewPager = (ViewPager) findViewById(R.id.mVerifyViewPager);
tv_to_verify = (TextView) findViewById(R.id.tv_to_verify);
ll_indicator_verify = (LinearLayout) findViewById(R.id.ll_indicator_verify);
LayoutInflater inflater = LayoutInflater.from(VerifyActivity.this);
//添加view
viewList.add(inflater.inflate(R.layout.viewpag
Android的ViewPager添加布局
最新推荐文章于 2024-05-17 14:24:17 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)