listview 购物车布局
android开发,求一个类似的UI布局~~~
!!
分享到:
更多
------解决方案--------------------
左边一个ImageView
然后右边一个LinearLayout包括上面的title和下面的详细商品布局。
再右边价格,再右边一个ImageView
整个外面套一层RelativeLayout
------解决方案--------------------
得有多难啊.......代码给你,控件的位置你自己再调一下
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
android:orientation="vertical" >
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#4095ef" >
android:layout_width="match_parent"
android:layout_height="wrap_content" >
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" >
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="账户余额:"
android:textColor="#FFFFFF" />
android:id="@+id/account_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" >
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/details_img1" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="合计金额:"