2222 android : layout_width =" match_parent"
2323 android : layout_height =" 100dp" >
2424
25- <ImageView
25+ <androidx .appcompat.widget.AppCompatImageView
2626 android : id =" @+id/iv_goods_img"
2727 android : layout_width =" 80dp"
2828 android : layout_height =" 80dp"
2929 android : layout_marginStart =" 10dp"
3030 android : src =" @drawable/bg_food_sample"
3131 app : layout_constraintBottom_toBottomOf =" parent"
32- app : layout_constraintLeft_toLeftOf =" parent"
32+ app : layout_constraintStart_toStartOf =" parent"
3333 app : layout_constraintTop_toTopOf =" parent" />
3434
35- <ImageView
35+ <androidx .appcompat.widget.AppCompatImageView
3636 android : id =" @+id/iv_goods_img_tip"
3737 android : layout_width =" wrap_content"
3838 android : layout_height =" wrap_content"
3939 android : src =" @drawable/tag_new_good"
40- app : layout_constraintLeft_toLeftOf =" @+id/iv_goods_img"
40+ app : layout_constraintStart_toStartOf =" @+id/iv_goods_img"
4141 app : layout_constraintTop_toTopOf =" @+id/iv_goods_img" />
4242
4343 <TextView
4444 android : id =" @+id/iv_goods_name"
4545 style =" @style/TextStyle.Title"
4646 android : layout_marginStart =" 10dp"
4747 android : textStyle =" bold"
48- app : layout_constraintLeft_toRightOf =" @+id/iv_goods_img"
48+ app : layout_constraintStart_toEndOf =" @+id/iv_goods_img"
4949 app : layout_constraintTop_toTopOf =" @+id/iv_goods_img"
5050 tools : text =" 水果" />
5151
5656 android : text =" 好吃的食物,增肥神器,有求必应"
5757 android : textColor =" @color/colorGray"
5858 android : textSize =" 10sp"
59- app : layout_constraintLeft_toLeftOf =" @+id/iv_goods_name"
59+ app : layout_constraintStart_toStartOf =" @+id/iv_goods_name"
6060 app : layout_constraintTop_toBottomOf =" @+id/iv_goods_name" />
6161
6262 <TextView
6666 android : text =" 月售1023 好评率90%"
6767 android : textColor =" @color/colorGray"
6868 android : textSize =" 10sp"
69- app : layout_constraintLeft_toLeftOf =" @+id/iv_goods_name"
69+ app : layout_constraintStart_toStartOf =" @+id/iv_goods_name"
7070 app : layout_constraintTop_toBottomOf =" @+id/iv_goods_detail" />
7171
7272 <TextView
7878 android : textColor =" @color/color_red"
7979 android : textSize =" 16sp"
8080 android : textStyle =" bold"
81- app : layout_constraintLeft_toLeftOf =" @+id/iv_goods_name"
81+ app : layout_constraintStart_toStartOf =" @+id/iv_goods_name"
8282 app : layout_constraintTop_toBottomOf =" @+id/iv_goods_comment" />
8383
84- <ImageView
84+ <androidx .appcompat.widget.AppCompatImageView
8585 android : id =" @+id/iv_goods_add"
8686 android : layout_width =" wrap_content"
8787 android : layout_height =" wrap_content"
8888 android : layout_margin =" 10dp"
8989 android : src =" @drawable/btn_add_food"
9090 app : layout_constraintBottom_toBottomOf =" parent"
91- app : layout_constraintRight_toRightOf =" parent" />
91+ app : layout_constraintEnd_toEndOf =" parent" />
9292
9393</androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments