- 获取RadioGroup中RadioButton选中的内容:
((RadioButton) mLayout.findViewById(radioGroup.getCheckedRadioButtonId())).getText().toString(); - 获取View的高、宽
int h = View.MeasureSpec.makeMeasureSpec(0,View.MeasureSpec.
mIvLocation.measure(w, h);
int height =mIvLocation.getMeasuredHeight();
int width =mIvLocation.getMeasuredWidth() ;
- EditText显示和隐藏光标:android:cursorVisible="true"