Android tabの設定について
lang
1protected void inittabs(){ 2Resources res = getResources(); 3intent = new Intent().setClass(this, Tab1.class); 4spec = tabHost.newTabSpec("Tab1") 5.setIndicator("Tab1", res.getColor(R.color.tab_widget)) 6.setContent(intent); 7tabHost.addTab(spec); 8}
というコードを書いています。やりたいことは
.setIndicator("Tab1", res.getColor(R.color.tab_widget)) でtabの中に表示するテキストの色をしていしたいのです。しかし、
"Wrong 2nd argument type. Found:'int', required 'android.graphics.drawable.Drawable'..."と出てきます。どこがいけないのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。