佈局
This commit is contained in:
parent
59f0fa4acb
commit
93db808f8b
@ -167,101 +167,96 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/topLayout"
|
android:id="@+id/topLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:gravity="bottom"
|
android:gravity="bottom"
|
||||||
|
android:orientation="horizontal"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/imageView7">
|
app:layout_constraintTop_toBottomOf="@+id/imageView7">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<RelativeLayout
|
||||||
android:id="@+id/two_layout"
|
android:id="@+id/two_layout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:layout_height="wrap_content">
|
android:gravity="bottom">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView17"
|
android:id="@+id/imageView17"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:scaleType="centerCrop"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_bg_two" />
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_bg_two" />
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<LinearLayout
|
||||||
android:id="@+id/userAvatar2Layout"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="58dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="58dp"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_marginTop="41dp"
|
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
android:layout_marginBottom="10dp"
|
android:gravity="center_horizontal"
|
||||||
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1"
|
android:orientation="vertical">
|
||||||
app:layout_constraintBottom_toTopOf="@+id/imageView12"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/user_avatar_2"
|
android:id="@+id/userAvatar2Layout"
|
||||||
|
android:layout_width="58dp"
|
||||||
|
android:layout_height="58dp"
|
||||||
|
android:layout_marginTop="41dp"
|
||||||
|
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1">
|
||||||
|
|
||||||
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
|
android:id="@+id/user_avatar_2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="1dp"
|
||||||
|
android:src="@mipmap/icon_avatar_placeholder"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:riv_oval="true" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView12"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="1dp"
|
android:layout_marginBottom="5dp"
|
||||||
android:src="@mipmap/icon_avatar_placeholder"
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_twwo" />
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:riv_oval="true" />
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:id="@+id/imageView12"
|
android:id="@+id/user_name_2"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_above="@+id/user_value_2"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/user_name_2"
|
android:ellipsize="end"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/userAvatar2Layout"
|
android:gravity="center"
|
||||||
app:layout_constraintStart_toStartOf="@+id/userAvatar2Layout"
|
android:maxLines="1"
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_twwo" />
|
android:text="TextView"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/user_name_2"
|
android:id="@+id/user_value_2"
|
||||||
android:layout_width="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_alignParentBottom="true"
|
||||||
android:ellipsize="end"
|
android:layout_marginBottom="5dp"
|
||||||
android:gravity="center"
|
android:text="TextView"
|
||||||
android:maxLines="1"
|
android:textColor="#FFFFFF"
|
||||||
android:text="TextView"
|
android:textSize="20sp" />
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:textSize="14sp"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/user_value_2"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
|
||||||
|
|
||||||
<TextView
|
</LinearLayout>
|
||||||
android:id="@+id/user_value_2"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="0dp"
|
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:text="TextView"
|
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:textSize="20sp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/imageView17"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/user_name_2"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/user_name_2" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/one_layout"
|
android:id="@+id/one_layout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="18dp">
|
android:layout_marginTop="18dp"
|
||||||
|
android:layout_weight="1">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView9"
|
android:id="@+id/imageView9"
|
||||||
@ -277,7 +272,6 @@
|
|||||||
android:id="@+id/userAvatar1Layout"
|
android:id="@+id/userAvatar1Layout"
|
||||||
android:layout_width="70dp"
|
android:layout_width="70dp"
|
||||||
android:layout_height="70dp"
|
android:layout_height="70dp"
|
||||||
android:layout_marginBottom="10dp"
|
|
||||||
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1"
|
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/imageView11"
|
app:layout_constraintBottom_toTopOf="@+id/imageView11"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
@ -335,86 +329,78 @@
|
|||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<RelativeLayout
|
||||||
android:id="@+id/three_layout"
|
android:id="@+id/three_layout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="5dp">
|
android:layout_marginEnd="5dp"
|
||||||
|
android:layout_weight="1">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView16"
|
android:id="@+id/imageView16"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:scaleType="centerCrop"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_bg_three" />
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_bg_three" />
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<LinearLayout
|
||||||
android:id="@+id/userAvatar3Layout"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="44dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="44dp"
|
android:paddingStart="10dp"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_marginTop="39dp"
|
android:gravity="center_horizontal"
|
||||||
android:layout_marginBottom="10dp"
|
android:orientation="vertical">
|
||||||
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/imageView13"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/user_avatar_3"
|
android:id="@+id/userAvatar3Layout"
|
||||||
|
android:layout_width="44dp"
|
||||||
|
android:layout_height="44dp"
|
||||||
|
android:layout_marginTop="39dp"
|
||||||
|
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1">
|
||||||
|
|
||||||
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
|
android:id="@+id/user_avatar_3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@mipmap/icon_avatar_placeholder"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:riv_oval="true" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView13"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@mipmap/icon_avatar_placeholder"
|
android:layout_marginBottom="3dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_three" />
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:riv_oval="true" />
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:id="@+id/imageView13"
|
android:id="@+id/user_name_3"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="3dp"
|
android:ellipsize="end"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/user_name_3"
|
android:gravity="center"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/userAvatar3Layout"
|
android:maxLines="1"
|
||||||
app:layout_constraintStart_toStartOf="@+id/userAvatar3Layout"
|
android:text="TextView"
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_three" />
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/user_name_3"
|
android:id="@+id/user_value_3"
|
||||||
android:layout_width="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginBottom="5dp"
|
||||||
android:ellipsize="end"
|
android:text="TextView"
|
||||||
android:gravity="center"
|
android:textColor="#FFFFFF"
|
||||||
android:maxLines="1"
|
android:textSize="20sp" />
|
||||||
android:text="TextView"
|
</LinearLayout>
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:textSize="14sp"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/user_value_3"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/imageView16"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/imageView16" />
|
|
||||||
|
|
||||||
<TextView
|
</RelativeLayout>
|
||||||
android:id="@+id/user_value_3"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="0dp"
|
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:text="TextView"
|
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:textSize="20sp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/user_name_3"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/user_name_3" />
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user