<?xml version="1.0" encoding="utf-8"?>
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@[package:]drawable/drawable_resource"
android:antialias=["true" | "false"]
android:dither=["true" | "false"]
android:filter=["true" | "false"]
android:gravity=["top" | "bottom" | "left" | "right" | "center_vertical" |
"fill_vertical" | "center_horizontal" | "fill_horizontal" |
"center" | "fill" | "clip_vertical" | "clip_horizontal"]
android:tileMode=["disabled" | "clamp" | "repeat" | "mirror"] />ref: [url]http://developer.android.com/guide/topics/resources/drawable-resource.html[/url]
本文深入探讨了Android应用中Bitmap的使用方法,包括如何设置抗锯齿、颜色过滤、绘制模式等关键属性,以及如何高效地在应用中加载、缓存和管理位图资源。
1万+

被折叠的 条评论
为什么被折叠?



