<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:layout_marginStart="@dimen/space_12" android:layout_marginTop="@dimen/space_8"> <TextView android:id="@+id/tv_self" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginRight="8dp" android:background="@drawable/shape_green_2dp_boreder_0dc3d6_f0feff" android:paddingStart="@dimen/space_3" android:paddingTop="1.5dp" android:paddingEnd="@dimen/space_3" android:paddingBottom="3dp" android:layout_marginTop="2dp" android:textSize="9dp" android:gravity="top" android:text="自营" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" android:textColor="@color/theme" /> <TextView android:id="@+id/tv_goods_name" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/space_12" android:ellipsize="end" android:text="\u3000\u3000商品名称" android:minLines="2" android:maxLines="2" android:textColor="@color/color_333333" android:textSize="@dimen/font_size_14" app:layout_constraintEnd_toEndOf="parent"/> </androidx.constraintlayout.widget.ConstraintLayout>
两行TextView前面添加一个图片/控件
最新推荐文章于 2024-04-27 11:23:57 发布