master
chenjunda 2 years ago
parent 34607e370d
commit ea3a595021

@ -80,12 +80,12 @@ public class IndexFragment extends Fragment implements View.OnClickListener {
product.setProductPrice(new BigDecimal("9.9")); product.setProductPrice(new BigDecimal("9.9"));
Product product1 = new Product(); Product product1 = new Product();
product1.setImageUrlId(R.drawable.cz1); product1.setImageUrlId(R.drawable.cz2);
product1.setProductName("橙子"); product1.setProductName("橙子");
product1.setProductPrice(new BigDecimal("29.9")); product1.setProductPrice(new BigDecimal("29.9"));
Product product2 = new Product(); Product product2 = new Product();
product2.setImageUrlId(R.drawable.yz1); product2.setImageUrlId(R.drawable.yz2);
product2.setProductName("柚子"); product2.setProductName("柚子");
product2.setProductPrice(new BigDecimal("19.9")); product2.setProductPrice(new BigDecimal("19.9"));
@ -95,12 +95,12 @@ public class IndexFragment extends Fragment implements View.OnClickListener {
product3.setProductPrice(new BigDecimal("19.9")); product3.setProductPrice(new BigDecimal("19.9"));
Product product4 = new Product(); Product product4 = new Product();
product4.setImageUrlId(R.drawable.applep); product4.setImageUrlId(R.drawable.pg1);
product4.setProductName("苹果"); product4.setProductName("苹果");
product4.setProductPrice(new BigDecimal("49.9")); product4.setProductPrice(new BigDecimal("49.9"));
Product product5 = new Product(); Product product5 = new Product();
product5.setImageUrlId(R.drawable.lemonp); product5.setImageUrlId(R.drawable.nm2);
product5.setProductName("柠檬"); product5.setProductName("柠檬");
product5.setProductPrice(new BigDecimal("9.9")); product5.setProductPrice(new BigDecimal("9.9"));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

@ -134,9 +134,9 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="80dp"
android:layout_height="wrap_content" android:layout_height="80dp"
android:src="@drawable/li" /> android:src="@drawable/xl1" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -156,9 +156,9 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="80dp"
android:layout_height="wrap_content" android:layout_height="80dp"
android:src="@drawable/apple" /> android:src="@drawable/pg2" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -178,9 +178,9 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="80dp"
android:layout_height="wrap_content" android:layout_height="80dp"
android:src="@drawable/lemon" /> android:src="@drawable/nm1" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -200,9 +200,9 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="80dp"
android:layout_height="wrap_content" android:layout_height="80dp"
android:src="@drawable/mangguo" /> android:src="@drawable/mg1" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

@ -13,11 +13,11 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="45dp"
android:layout_height="wrap_content" android:layout_height="45dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
android:src="@drawable/index" /> android:src="@drawable/shouye" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -41,11 +41,11 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="45dp"
android:layout_height="wrap_content" android:layout_height="45dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
android:src="@drawable/product" /> android:src="@drawable/xigua" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -71,10 +71,10 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="45dp"
android:layout_height="wrap_content" android:layout_height="45dp"
android:layout_gravity="center" android:layout_gravity="center"
android:src="@drawable/shoppingcart" /> android:src="@drawable/gwc" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -101,10 +101,10 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="45dp"
android:layout_height="wrap_content" android:layout_height="45dp"
android:layout_gravity="center" android:layout_gravity="center"
android:src="@drawable/pearson" /> android:src="@drawable/zhuye" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

@ -7,11 +7,11 @@
<ImageView <ImageView
android:id="@+id/user_icon" android:id="@+id/user_icon"
android:layout_width="wrap_content" android:layout_width="80dp"
android:layout_height="wrap_content" android:layout_height="80dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:src="@drawable/user_icon" /> android:src="@drawable/momo" />
<!--卡券--> <!--卡券-->
<LinearLayout <LinearLayout
@ -224,7 +224,7 @@
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:textSize="18sp" android:textSize="18sp"
android:layout_marginTop="90dp" android:layout_marginTop="60dp"
android:text="退出登录" android:text="退出登录"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
android:layout_gravity="center" android:layout_gravity="center"

@ -13,18 +13,29 @@
android:layout_marginTop="15dp" android:layout_marginTop="15dp"
android:background="#FFF" android:background="#FFF"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:src="@drawable/huo"/>
<TextView <TextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_marginLeft="5dp"
android:layout_weight="1" android:layout_weight="1"
android:drawableLeft="@drawable/shuiguo"
android:drawablePadding="8dp"
android:gravity="center_vertical"
android:text="热门商品" android:text="热门商品"
android:gravity="center_vertical"
android:textColor="#000" android:textColor="#000"
android:textSize="18sp" /> android:textSize="18sp"/>
<!-- <TextView-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="50dp"-->
<!-- android:layout_marginLeft="5dp"-->
<!-- android:layout_weight="1”-->
<!-- android:text="热门商品"-->
<!-- android:gravity="center_vertical"-->
<!-- android:textColor="#000"-->
<!-- android:textSize="18sp" />-->
<ImageView <ImageView
android:layout_width="25dp" android:layout_width="25dp"

Loading…
Cancel
Save