【发布时间】:2018-08-31 20:47:16
【问题描述】:
我正在尝试在 ImageView 上重复图像。
我尝试在 imageView 上使用位图作为src,但问题是在不同的屏幕尺寸上重复正在改变,我需要修复它并且在所有屏幕尺寸上看起来都一样,请帮助
到目前为止我做了什么
图像视图
<ImageView
android:src="@drawable/test"
android:scaleType="fitXY"
android:layout_width="match_parent"
android:layout_height="25dp"
android:background="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/item_event_category_calender3"
app:layout_constraintVertical_bias="0.0" />
和位图
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/circle_grey_new"
android:tileMode="repeat"
android:dither="true"/>
【问题讨论】: