左边一个ImageView
然后右边一个LinearLayout包括上面的title和下面的详细商品布局。
再右边价格,再右边一个ImageView整个外面套一层RelativeLayout
然后右边一个LinearLayout包括上面的title和下面的详细商品布局。
再右边价格,再右边一个ImageView整个外面套一层RelativeLayout
解决方案 »
- android 判断网络连接的问题
- 不理解,模拟表单提交,使用http还是socket来做比较好呢?
- android解锁软件的锁定解锁屏幕的代码
- HP TC4200 平板,WACOM触屏,安装 ANDROID2,2 (X86)成功,有困惑
- android 监听 点击、弹起 事件
- 2款手机480*800显示不一致
- android 实际问题,急需要及解决,需要各位高手帮忙
- 诚恳请教一道非主流笔试题,android方向。当关闭一个APP时,只有service没能及时关闭,这时系统可能会报哪些错误?
- 急!急!急!JNI传递嵌套对象数组的问题
- “错误: 元素值必须为常量表达式”问题
- android游戏开发-暂停问题
- 报错的Logcat The application may be doing too much work on its main threa
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
android:orientation="vertical" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#4095ef" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" > <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="账户余额:"
android:textColor="#FFFFFF" /> <TextView
android:id="@+id/account_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
</LinearLayout> <LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" > <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/details_img1" /> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="合计金额:"
android:textColor="#FFFFFF" /> <TextView
android:id="@+id/items_counts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
</LinearLayout>
</LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" > <TextView
android:id="@+id/shopping_card"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
</LinearLayout> <LinearLayout
android:layout_width="0dp"
android:layout_weight="1" > <TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/icons_1"
android:text="清空购物车" /> <TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/icons_2"
android:text="提交订单" />
</LinearLayout>
</LinearLayout>
</LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:background="#4095ef" > <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="商品信息" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="订购量" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="金额" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="删除" />
</LinearLayout></LinearLayout>