- 博客(2)
- 收藏
- 关注

原创 Android 中获取控件宽和高的方法(详细解析)
Android 中获取控件宽和高的方法第一种:直接获取getWidth()和getHeight() 我们都知道这两个方法在onCreate()方法中得到的数据都是0;代码: mTextView = (TextView) findViewById(R.id.textview); mWidth = mTextView.getWidth(); mHeight = mTextV
2017-01-10 17:40:44
19446
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人