读书人

TableLayout将里头button设置为可用

发布时间: 2012-09-21 15:47:26 作者: rapoo

TableLayout将里面button设置为可用

TableLayout tableLayoutInstance;

// 假定是button
ArrayList<View> touchables = tableLayoutInstance.getTouchables();?
for(View touchable : touchables){?
? ? if( touchable instanceof Button )?
? ? ? ? ((Button)touchable).setEnable(false);?
}?

读书人网 >移动开发

热点推荐