一个关于设置imagebutton的问题
本人菜鸟,求各位大牛帮忙啊!在xml中怎么设置俩个imagebutton并列一行,且各占一半啊!额。。还有个问题,在listview中添加item,比如添加文档,貌似默认的新建的在之前建的下面,怎么让新建的文档在之前建的文档上面呢?
[解决办法]
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <imagebutton android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"/> <imagebutton android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"/> </LinearLayout>
[解决办法]