---
title: "杂乱的知识点"
author: "jogickis"
date: "2014-01-23T15:55:31Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2014-02-19T14:53:08Z"
id: 2008594
url: "https://jogickis.iteye.com/blog/2008594"
---

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