左边一个ImageView
然后右边一个LinearLayout包括上面的title和下面的详细商品布局。
再右边价格,再右边一个ImageView整个外面套一层RelativeLayout
然后右边一个LinearLayout包括上面的title和下面的详细商品布局。
再右边价格,再右边一个ImageView整个外面套一层RelativeLayout
解决方案 »
- android下opengl多线程渲染
- Android 系统下创建xml失败??
- 请问经典的andrid的开发教材 有哪些?
- emulator 和QQ的兼容问题
- 判断GPS是否开启问题
- android 应用计费
- 为什么使用AsyncTask可以解决UI主线程阻塞的问题?
- 请神帮忙解释getContentResolver().update参数
- 网页是根据什么识别终端设备的?
- 为什么Fragment中的按钮写在onActivityCreated中依旧无效?
- 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>