ITeye博客

杂乱的知识点

jogickis · 2014-01-23 15:55 · Android · 移动开发 · Markdown

  • 获取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"

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。