热门条目ui调整完成
171
live/src/main/res/layout/item_main_com2.xml
Normal file
@@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.yunbao.common.custom.RatioRoundImageView
|
||||
android:id="@+id/author"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/user_info_bg"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:riv_corner_radius="18dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:textColor="#333333"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toEndOf="@+id/author"
|
||||
app:layout_constraintTop_toTopOf="@+id/author"
|
||||
tools:text="栗子栗子🌰zzz" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="02 - 11发布"
|
||||
android:textColor="#999999"
|
||||
android:textSize="10sp"
|
||||
app:layout_constraintStart_toStartOf="@+id/name"
|
||||
app:layout_constraintTop_toBottomOf="@+id/name" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/attentionImg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="18dp"
|
||||
android:src="@mipmap/ic_yola_attention"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/author"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/author" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="哇这里我也太想去了!真是太漂亮了 请问一下路边结冰了吗?会不会封路?"
|
||||
android:textColor="#333333"
|
||||
android:textSize="13sp"
|
||||
app:layout_constraintEnd_toEndOf="@+id/attentionImg"
|
||||
app:layout_constraintStart_toStartOf="@+id/name"
|
||||
app:layout_constraintTop_toBottomOf="@+id/author" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/videoImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:scaleType="centerCrop"
|
||||
app:layout_constraintDimensionRatio="1.78"
|
||||
app:layout_constraintEnd_toEndOf="@+id/attentionImg"
|
||||
app:layout_constraintStart_toStartOf="@+id/name"
|
||||
app:layout_constraintTop_toBottomOf="@+id/content" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/videoStartImage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/ic_yola_play_video"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/videoImage"
|
||||
app:layout_constraintEnd_toEndOf="@+id/videoImage"
|
||||
app:layout_constraintStart_toStartOf="@+id/videoImage"
|
||||
app:layout_constraintTop_toTopOf="@+id/videoImage" />
|
||||
|
||||
<com.yunbao.common.views.NineGridLayout
|
||||
android:id="@+id/nine_grid_layout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
app:layout_constraintEnd_toEndOf="@+id/attentionImg"
|
||||
app:layout_constraintStart_toStartOf="@+id/name"
|
||||
app:layout_constraintTop_toBottomOf="@+id/videoImage"
|
||||
app:ngl_corner_radius="5dp"
|
||||
app:ngl_divider_width="6dp"
|
||||
app:ngl_space="95dp" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/shareImg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="-5dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_yola_share"
|
||||
app:layout_constraintStart_toStartOf="@+id/content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/nine_grid_layout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/shareText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#999999"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/shareImg"
|
||||
app:layout_constraintStart_toEndOf="@+id/shareImg"
|
||||
app:layout_constraintTop_toTopOf="@+id/shareImg"
|
||||
tools:text="98" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/msgImg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="-5dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_yola_comment"
|
||||
app:layout_constraintEnd_toEndOf="@+id/content"
|
||||
app:layout_constraintHorizontal_bias="0.26"
|
||||
app:layout_constraintStart_toStartOf="@+id/content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/nine_grid_layout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/msgText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#999999"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/msgImg"
|
||||
app:layout_constraintStart_toEndOf="@+id/msgImg"
|
||||
app:layout_constraintTop_toTopOf="@+id/msgImg"
|
||||
tools:text="98" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/likeImg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="-5dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_yola_like"
|
||||
app:layout_constraintEnd_toEndOf="@+id/content"
|
||||
app:layout_constraintHorizontal_bias="0.52"
|
||||
app:layout_constraintStart_toStartOf="@+id/content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/nine_grid_layout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/likeText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#999999"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/likeImg"
|
||||
app:layout_constraintStart_toEndOf="@+id/likeImg"
|
||||
app:layout_constraintTop_toTopOf="@+id/likeImg"
|
||||
tools:text="98" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
BIN
live/src/main/res/mipmap-hdpi/ic_yola_attention.png
Normal file
|
After Width: | Height: | Size: 721 B |
BIN
live/src/main/res/mipmap-hdpi/ic_yola_camera.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
live/src/main/res/mipmap-hdpi/ic_yola_comment.png
Normal file
|
After Width: | Height: | Size: 633 B |
BIN
live/src/main/res/mipmap-hdpi/ic_yola_has_attention.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
live/src/main/res/mipmap-hdpi/ic_yola_like.png
Normal file
|
After Width: | Height: | Size: 741 B |
BIN
live/src/main/res/mipmap-hdpi/ic_yola_play_video.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
live/src/main/res/mipmap-hdpi/ic_yola_search.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
live/src/main/res/mipmap-hdpi/ic_yola_share.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
live/src/main/res/mipmap-mdpi/ic_yola_attention.png
Normal file
|
After Width: | Height: | Size: 393 B |
BIN
live/src/main/res/mipmap-mdpi/ic_yola_camera.png
Normal file
|
After Width: | Height: | Size: 875 B |
BIN
live/src/main/res/mipmap-mdpi/ic_yola_comment.png
Normal file
|
After Width: | Height: | Size: 294 B |
BIN
live/src/main/res/mipmap-mdpi/ic_yola_has_attention.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
live/src/main/res/mipmap-mdpi/ic_yola_like.png
Normal file
|
After Width: | Height: | Size: 430 B |
BIN
live/src/main/res/mipmap-mdpi/ic_yola_play_video.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
live/src/main/res/mipmap-mdpi/ic_yola_search.png
Normal file
|
After Width: | Height: | Size: 730 B |
BIN
live/src/main/res/mipmap-mdpi/ic_yola_share.png
Normal file
|
After Width: | Height: | Size: 538 B |
BIN
live/src/main/res/mipmap-xhdpi/ic_yola_attention.png
Normal file
|
After Width: | Height: | Size: 722 B |
BIN
live/src/main/res/mipmap-xhdpi/ic_yola_camera.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
live/src/main/res/mipmap-xhdpi/ic_yola_comment.png
Normal file
|
After Width: | Height: | Size: 521 B |
BIN
live/src/main/res/mipmap-xhdpi/ic_yola_has_attention.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
live/src/main/res/mipmap-xhdpi/ic_yola_like.png
Normal file
|
After Width: | Height: | Size: 788 B |
BIN
live/src/main/res/mipmap-xhdpi/ic_yola_play_video.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
live/src/main/res/mipmap-xhdpi/ic_yola_search.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
live/src/main/res/mipmap-xhdpi/ic_yola_share.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/ic_yola_attention.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/ic_yola_camera.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/ic_yola_comment.png
Normal file
|
After Width: | Height: | Size: 907 B |
BIN
live/src/main/res/mipmap-xxxhdpi/ic_yola_has_attention.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/ic_yola_like.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/ic_yola_play_video.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/ic_yola_search.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/ic_yola_share.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |