android 如何在代码中获取控件的属性值

android 怎么在代码中获取控件的属性值
冰天雪地 跪求 获取控件属性值
Android 控件

------解决方案--------------------
Button button = (Button) findViewById("");先获取控件
在通过控件对象获取对应属性的值