0

ボタンのクリック時にリストビューのサイズを大きくしていますが、ボタンをクリックすると、一部のリストビュー項目のテキストビュー サイズがデフォルトのままになり、それに応じて変更されません。何か案が ?これは、リストビューでフォントサイズを大きくするための私のコードの一部です。

int count = mlist.getChildCount();

if (zoom_counter==1){
    for(int i=0;i<count;i++){
        Button textTab=(Button)mlist.getChildAt(i).findViewById(R.id.myButton);
        // if your control is not textview, use your correct one
        textTab.setTextSize(TypedValue.COMPLEX_UNIT_DIP,16f);
        efficientadapter.notifyDataSetChanged();
    }
}
4

0 に答える 0