我已在XML中定义了一个列表视图,如下所示:
我已在XML中定义了以下列表视图
<ListView android:id="@+id/mylist"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#00000000"
android:layout_weight="1"
android:layout_marginTop="95dip"/>
我需要根据程序中的某些结果重新定义布局边距,我该如何实现此目标?