master
bsywa 2 years ago
parent 9a3e77bf97
commit 8d2f4a41e8

@ -1,3 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml

@ -12,6 +12,6 @@
</deviceKey> </deviceKey>
</Target> </Target>
</targetSelectedWithDropDown> </targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-04-13T07:29:15.473088200Z" /> <timeTargetWasSelectedWithDropDown value="2023-04-19T09:01:21.751615Z" />
</component> </component>
</project> </project>

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings"> <component name="GradleSettings">
<option name="linkedExternalProjectsSettings"> <option name="linkedExternalProjectsSettings">
<GradleProjectSettings> <GradleProjectSettings>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

@ -41,21 +41,21 @@ public class IndexFragment extends Fragment implements View.OnClickListener {
private void init(View view) { private void init(View view) {
searchView = view.findViewById(R.id.searchView); searchView = view.findViewById(R.id.searchView);
searchView.setOnClickListener(this); searchView.setOnClickListener(this);
orangeLine = view.findViewById(R.id.chengzi); orangeLine = view.findViewById(R.id.sunflower);
orangeLine.setOnClickListener(this); orangeLine.setOnClickListener(this);
youziLine = view.findViewById(R.id.youzi); youziLine = view.findViewById(R.id.pinkrose);
youziLine.setOnClickListener(this); youziLine.setOnClickListener(this);
juziLine = view.findViewById(R.id.juzi); juziLine = view.findViewById(R.id.redrose);
juziLine.setOnClickListener(this); juziLine.setOnClickListener(this);
xiguaLine = view.findViewById(R.id.xigua); xiguaLine = view.findViewById(R.id.conation);
xiguaLine.setOnClickListener(this); xiguaLine.setOnClickListener(this);
liLine = view.findViewById(R.id.li); liLine = view.findViewById(R.id.tulipa);
liLine.setOnClickListener(this); liLine.setOnClickListener(this);
lemonLine = view.findViewById(R.id.lemon); lemonLine = view.findViewById(R.id.ju);
lemonLine.setOnClickListener(this); lemonLine.setOnClickListener(this);
mangguoLine = view.findViewById(R.id.mangguo); mangguoLine = view.findViewById(R.id.moli);
mangguoLine.setOnClickListener(this); mangguoLine.setOnClickListener(this);
appleLine = view.findViewById(R.id.apple); appleLine = view.findViewById(R.id.flower);
appleLine.setOnClickListener(this); appleLine.setOnClickListener(this);
gridView = view.findViewById(R.id.index_famous_gridview); gridView = view.findViewById(R.id.index_famous_gridview);
initData(); initData();
@ -75,28 +75,28 @@ public class IndexFragment extends Fragment implements View.OnClickListener {
private void initData() { private void initData() {
productList = new ArrayList<>(); productList = new ArrayList<>();
Product product = new Product(); Product product = new Product();
product.setImageUrlId(R.drawable.juzip); product.setImageUrlId(R.drawable.sunflower);
product.setProductName("橘子"); product.setProductName("向日葵");
product.setProductPrice(new BigDecimal("9.9")); product.setProductPrice(new BigDecimal("9.9"));
Product product1 = new Product(); Product product1 = new Product();
product1.setImageUrlId(R.drawable.orange); product1.setImageUrlId(R.drawable.pinkrose);
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.youzip); product2.setImageUrlId(R.drawable.redrose);
product2.setProductName("柚子"); product2.setProductName("红玫瑰");
product2.setProductPrice(new BigDecimal("19.9")); product2.setProductPrice(new BigDecimal("19.9"));
Product product3 = new Product(); Product product3 = new Product();
product3.setImageUrlId(R.drawable.xiguap); product3.setImageUrlId(R.drawable.canation);
product3.setProductName("西瓜"); product3.setProductName("康乃馨");
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.tulipa);
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.ju);
product5.setProductName("柠檬"); product5.setProductName("菊花");
product5.setProductPrice(new BigDecimal("9.9")); product5.setProductPrice(new BigDecimal("9.9"));
productList.add(product); productList.add(product);
productList.add(product1); productList.add(product1);

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

@ -30,73 +30,73 @@
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:id="@+id/chengzi" android:id="@+id/sunflower"
android:layout_width="0dp" android:layout_width="2dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="69dp"
android:layout_height="wrap_content" android:layout_height="70dp"
android:src="@drawable/chengzi" /> android:src="@drawable/sunflower" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="49dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:text="橙子" android:text="向日葵"
android:textColor="#696969" android:textColor="#696969"
android:textSize="20sp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/youzi" android:id="@+id/pinkrose"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="69dp"
android:layout_height="wrap_content" android:layout_height="70dp"
android:src="@drawable/youzi" /> android:src="@drawable/pinkrose" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="49dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:text="柚子" android:text="粉玫瑰"
android:textColor="#696969" android:textColor="#696969"
android:textSize="20sp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/juzi" android:id="@+id/redrose"
android:layout_width="0dp" android:layout_width="1dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="69dp"
android:layout_height="wrap_content" android:layout_height="70dp"
android:src="@drawable/juzi" /> android:src="@drawable/redrose" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="49dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:text="橘子" android:text="红玫瑰"
android:textColor="#696969" android:textColor="#696969"
android:textSize="20sp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/xigua" android:id="@+id/conation"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -104,15 +104,15 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="69dp"
android:layout_height="wrap_content" android:layout_height="70dp"
android:src="@drawable/xigua" /> android:src="@drawable/canation" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="49dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:text="西瓜" android:text="康乃馨"
android:textColor="#696969" android:textColor="#696969"
android:textSize="20sp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>
@ -126,7 +126,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:id="@+id/li" android:id="@+id/tulipa"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -134,21 +134,21 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="69dp"
android:layout_height="wrap_content" android:layout_height="70dp"
android:src="@drawable/li" /> android:src="@drawable/tulipa" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="49dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:text="香" android:text="郁金香"
android:textColor="#696969" android:textColor="#696969"
android:textSize="20sp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/apple" android:id="@+id/ju"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -156,21 +156,21 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="69dp"
android:layout_height="wrap_content" android:layout_height="70dp"
android:src="@drawable/apple" /> android:src="@drawable/ju" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="49dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:text="苹果" android:text="菊花"
android:textColor="#696969" android:textColor="#696969"
android:textSize="20sp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/lemon" android:id="@+id/moli"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -178,21 +178,21 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="69dp"
android:layout_height="wrap_content" android:layout_height="70dp"
android:src="@drawable/lemon" /> android:src="@drawable/moli" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="49dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:text="柠檬" android:text="茉莉"
android:textColor="#696969" android:textColor="#696969"
android:textSize="20sp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/mangguo" android:id="@+id/flower"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
@ -200,15 +200,15 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="69dp"
android:layout_height="wrap_content" android:layout_height="70dp"
android:src="@drawable/mangguo" /> android:src="@drawable/flower" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="49dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:text="芒果" android:text="水仙"
android:textColor="#696969" android:textColor="#696969"
android:textSize="20sp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>

@ -8,23 +8,24 @@
<!--APPLogo及名字--> <!--APPLogo及名字-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="142dp"
android:gravity="center_horizontal"
android:layout_marginTop="40dp" android:layout_marginTop="40dp"
android:gravity="center_horizontal"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:src="@drawable/orange" /> android:src="@drawable/flower" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="22sp" android:text="flower"
android:textColor="#000000" android:textColor="#000000"
android:textStyle="italic" android:textSize="22sp"
android:text="Orange" /> android:textStyle="italic" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout

@ -8,23 +8,24 @@
<!--APPLogo及名字--> <!--APPLogo及名字-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="162dp"
android:gravity="center_horizontal"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:gravity="center_horizontal"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="133dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:src="@drawable/orange" /> android:src="@drawable/flower" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="33dp"
android:textSize="22sp" android:text="flower"
android:textColor="#000000" android:textColor="#000000"
android:textStyle="italic" android:textSize="22sp"
android:text="Orange" /> android:textStyle="italic" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout

Loading…
Cancel
Save