Last active
December 29, 2015 19:09
-
-
Save sakebook/7715899 to your computer and use it in GitHub Desktop.
画像を敷き詰めて背景に表示
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<bitmap xmlns:android="http://schemas.android.com/apk/res/android" | |
android:src="@drawable/YOUR_IMAGE" | |
android:antialias="true" | |
android:dither="false" | |
android:filter="false" | |
android:gravity="fill" | |
android:tileMode="repeat" /> | |
<!-- antialias アンチエリアスを有効または無効にします --> | |
<!-- dither ビットマップが画面と同じピクセル設定を持たない場合 ( 例: RGB 565 の画面で ARGB 8888 のビットマップ ) にビットマップのディザリングを有効または無効にします --> | |
<!-- filter ビットマップのフィルタリングを有効または無効にします。フィルタリングはビットマップが伸びたり縮んだりしたときに見た目を滑らかにするものです --> | |
<!-- gravity ビットマップの寄せを定義します。gravity はビットマップがコンテナよりも小さい場合にコンテナ内にでのその Drawable の位置を指示します --> | |
<!-- tileMode タイルモードを定義します。タイルモードが有効な場合はビットマップが繰り返されます。タイルモードが有効なときは gravity は無視されます --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考
http://y-anz-m.blogspot.jp/2010/10/android-repeat.html
http://www.techdoctranslator.com/android/guide/resources/available-resources/drawable-resource