background tileMode =“repeat”表示空格

时间:2017-11-05 16:12:08

标签: android xml android-layout background

所以我正在尝试将重复的平铺背景应用到我的布局,但是当它显示时它会在平铺之间显示白色空间:/有没有办法摆脱这个? this is how it displays

background_repeat

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@mipmap/texture_tile_old"
android:tileMode="repeat"/>

布局

<LinearLayout 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:id="@+id/note_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_repeat"
android:orientation="vertical"/>

0 个答案:

没有答案
相关问题