master
bsywa 2 years ago
parent 9a3e77bf97
commit 8d2f4a41e8

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

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

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<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) {
searchView = view.findViewById(R.id.searchView);
searchView.setOnClickListener(this);
orangeLine = view.findViewById(R.id.chengzi);
orangeLine = view.findViewById(R.id.sunflower);
orangeLine.setOnClickListener(this);
youziLine = view.findViewById(R.id.youzi);
youziLine = view.findViewById(R.id.pinkrose);
youziLine.setOnClickListener(this);
juziLine = view.findViewById(R.id.juzi);
juziLine = view.findViewById(R.id.redrose);
juziLine.setOnClickListener(this);
xiguaLine = view.findViewById(R.id.xigua);
xiguaLine = view.findViewById(R.id.conation);
xiguaLine.setOnClickListener(this);
liLine = view.findViewById(R.id.li);
liLine = view.findViewById(R.id.tulipa);
liLine.setOnClickListener(this);
lemonLine = view.findViewById(R.id.lemon);
lemonLine = view.findViewById(R.id.ju);
lemonLine.setOnClickListener(this);
mangguoLine = view.findViewById(R.id.mangguo);
mangguoLine = view.findViewById(R.id.moli);
mangguoLine.setOnClickListener(this);
appleLine = view.findViewById(R.id.apple);
appleLine = view.findViewById(R.id.flower);
appleLine.setOnClickListener(this);
gridView = view.findViewById(R.id.index_famous_gridview);
initData();
@ -75,28 +75,28 @@ public class IndexFragment extends Fragment implements View.OnClickListener {
private void initData() {
productList = new ArrayList<>();
Product product = new Product();
product.setImageUrlId(R.drawable.juzip);
product.setProductName("橘子");
product.setImageUrlId(R.drawable.sunflower);
product.setProductName("向日葵");
product.setProductPrice(new BigDecimal("9.9"));
Product product1 = new Product();
product1.setImageUrlId(R.drawable.orange);
product1.setProductName("橙子");
product1.setImageUrlId(R.drawable.pinkrose);
product1.setProductName("粉玫瑰");
product1.setProductPrice(new BigDecimal("29.9"));
Product product2 = new Product();
product2.setImageUrlId(R.drawable.youzip);
product2.setProductName("柚子");
product2.setImageUrlId(R.drawable.redrose);
product2.setProductName("红玫瑰");
product2.setProductPrice(new BigDecimal("19.9"));
Product product3 = new Product();
product3.setImageUrlId(R.drawable.xiguap);
product3.setProductName("西瓜");
product3.setImageUrlId(R.drawable.canation);
product3.setProductName("康乃馨");
product3.setProductPrice(new BigDecimal("19.9"));
Product product4 = new Product();
product4.setImageUrlId(R.drawable.applep);
product4.setProductName("苹果");
product4.setImageUrlId(R.drawable.tulipa);
product4.setProductName("郁金香");
product4.setProductPrice(new BigDecimal("49.9"));
Product product5 = new Product();
product5.setImageUrlId(R.drawable.lemonp);
product5.setProductName("柠檬");
product5.setImageUrlId(R.drawable.ju);
product5.setProductName("菊花");
product5.setProductPrice(new BigDecimal("9.9"));
productList.add(product);
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">
<LinearLayout
android:id="@+id/chengzi"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/sunflower"
android:layout_width="2dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/chengzi" />
android:layout_width="69dp"
android:layout_height="70dp"
android:src="@drawable/sunflower" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="49dp"
android:layout_marginTop="5dp"
android:text="橙子"
android:text="向日葵"
android:textColor="#696969"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/youzi"
android:id="@+id/pinkrose"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/youzi" />
android:layout_width="69dp"
android:layout_height="70dp"
android:src="@drawable/pinkrose" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="49dp"
android:layout_marginTop="5dp"
android:text="柚子"
android:text="粉玫瑰"
android:textColor="#696969"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/juzi"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/redrose"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/juzi" />
android:layout_width="69dp"
android:layout_height="70dp"
android:src="@drawable/redrose" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="49dp"
android:layout_marginTop="5dp"
android:text="橘子"
android:text="红玫瑰"
android:textColor="#696969"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/xigua"
android:id="@+id/conation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@ -104,15 +104,15 @@
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/xigua" />
android:layout_width="69dp"
android:layout_height="70dp"
android:src="@drawable/canation" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="49dp"
android:layout_marginTop="5dp"
android:text="西瓜"
android:text="康乃馨"
android:textColor="#696969"
android:textSize="20sp" />
</LinearLayout>
@ -126,7 +126,7 @@
android:orientation="horizontal">
<LinearLayout
android:id="@+id/li"
android:id="@+id/tulipa"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@ -134,21 +134,21 @@
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/li" />
android:layout_width="69dp"
android:layout_height="70dp"
android:src="@drawable/tulipa" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="49dp"
android:layout_marginTop="5dp"
android:text="香"
android:text="郁金香"
android:textColor="#696969"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/apple"
android:id="@+id/ju"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@ -156,21 +156,21 @@
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/apple" />
android:layout_width="69dp"
android:layout_height="70dp"
android:src="@drawable/ju" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="49dp"
android:layout_marginTop="5dp"
android:text="苹果"
android:text="菊花"
android:textColor="#696969"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/lemon"
android:id="@+id/moli"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@ -178,21 +178,21 @@
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/lemon" />
android:layout_width="69dp"
android:layout_height="70dp"
android:src="@drawable/moli" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="49dp"
android:layout_marginTop="5dp"
android:text="柠檬"
android:text="茉莉"
android:textColor="#696969"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/mangguo"
android:id="@+id/flower"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@ -200,15 +200,15 @@
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/mangguo" />
android:layout_width="69dp"
android:layout_height="70dp"
android:src="@drawable/flower" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="49dp"
android:layout_marginTop="5dp"
android:text="芒果"
android:text="水仙"
android:textColor="#696969"
android:textSize="20sp" />
</LinearLayout>

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

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

Loading…
Cancel
Save