|
|
@@ -4,7 +4,7 @@
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="93dp">
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/text_view_main_fourth_category_title1"
|
|
|
@@ -21,16 +21,16 @@
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/text_view_main_fourth_category_title2"
|
|
|
- android:layout_width="160dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="5dp"
|
|
|
+ android:ellipsize="end"
|
|
|
android:lineSpacingExtra="6sp"
|
|
|
android:maxLines="2"
|
|
|
+ android:maxWidth="150dp"
|
|
|
android:textColor="@color/C000000"
|
|
|
android:textSize="14sp"
|
|
|
- android:ellipsize="end"
|
|
|
app:layout_constraintBottom_toTopOf="@+id/text_view_main_fourth_category_title3"
|
|
|
- app:layout_constraintEnd_toStartOf="@+id/image_view_main_fourth_category"
|
|
|
app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/text_view_main_fourth_category_title1"
|
|
|
@@ -52,10 +52,12 @@
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/image_view_main_fourth_category"
|
|
|
- android:layout_width="124dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:scaleType="fitXY"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:scaleType="centerCrop"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintDimensionRatio="V, 124:93"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/text_view_main_fourth_category_title2"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
tools:src="@drawable/img_bestbucket_banner_1"/>
|
|
|
</android.support.constraint.ConstraintLayout>
|