我想让我的布局或视图(不是屏幕尺寸)的宽度在一些Android设备的高度,所以我该如何做到这一点?例如:如何在android中获取warp_content或match_parent布局的宽度和高度?
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingRight="8dp"
android:paddingLeft="8dp"
android:id="@+id/layout_scrol_left"/>
我有这样的布局,我想布局宽度和高度运行时大小(DIP),我该怎么办呢?
可能重复[获取屏幕宽度和高度](http://stackoverflow.com/questions/4743116/get-screen-width-and-height) –
我的问题是不同的,我想让我的视图或布局大小在运行时间,而不是屏幕尺寸 – b4hr4m