杂乱的知识点

  • 获取RadioGroup中RadioButton选中的内容:
    ((RadioButton) mLayout.findViewById(radioGroup.getCheckedRadioButtonId())).getText().toString();

  • 获取View的高、宽
            int w = View.MeasureSpec.makeMeasureSpec(0,View.MeasureSpec.UNSPECIFIED);  
   int h = View.MeasureSpec.makeMeasureSpec(0,View.MeasureSpec.
            mIvLocation.measure(w, h);
           int height =mIvLocation.getMeasuredHeight();  
           int width =mIvLocation.getMeasuredWidth() ;
  • EditText显示和隐藏光标:android:cursorVisible="true"

你可能感兴趣的:(杂乱)