谁能帮我解决这个顶部带有 imageview(衣架)的标签栏? ImageView 应随着选项卡更改而更改位置。
最佳答案
tabs 是 Tab String s 的数组
for (String tab_name : tabs) {
actionBar.addTab(actionBar.newTab().setText(tab_name).setTabListener(this).setIcon(R.drawable.ic_launcher));
}
这可以帮助您将图像放在选项卡上
关于android - 顶部带有图像的操作栏选项卡 - android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46565885/