当前位置:
代码迷
>>
Android
>> 关于自定义ViewGroup的有关问题
详细解决方案
关于自定义ViewGroup的有关问题
热度:
5
发布时间:
2016-04-28 01:12:12.0
关于自定义ViewGroup的问题
在自定义的ViewGroup里面嵌套了RelativeLayout,RelativeLayout的属性:android:layout_width="match_parent",但是它的宽度还是wrap_content,不知道怎么回事
------解决思路----------------------
那你ViewGroup的属性是wrap_content?
相关解决方案
ViewGroup 跟 View 事件传递及处理小谈
android.view.ViewGroup.LayoutParams引见
android.view.ViewGroup$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
Android 代码动态设置margin(报错:ViewGroup$MarginLayoutParams cannot be cast to android.widget.LinearLayout)