【发布时间】:2012-06-02 11:51:34
【问题描述】:
我有一个线性布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_menu"
android:layout_width="fill_parent"
android:layout_height="70px"
android:layout_alignParentBottom="true"
android:background="@drawable/footer_bar"
android:gravity="center" >
</LinearLayout>
当我设置条件时
if (constant.getscreenresolution() >= 800) {
//i want to make it height * 2
}
那么layout params怎么设置呢?
【问题讨论】:
标签: android layoutparams