-1
私はリターン計算書に示されているテキストの代わりに画像を配置したいに見えるかもしれませんあなたのケースメソッドでアンドロイドのタブアクティビティTABSに画像を配置する方法は?
@Override
public CharSequence getPageTitle(int position) {
switch (position) {
case 0:
return "Personal Information";
case 1:
return "Address Infromation";
case 2:
return "Qualification";
case 3:
return "Work Experience";
}
return null;
}
次のような文字列の代わりに
setIcon()
を使用する必要が
https://www.simplifiedcoding.net/android-tablayout-example-using-viewpager-fragments/ –
私たちは置く方法を知りたいですテキストの代わりにイメージ –