android 背景图缩放,android背景图按比例缩放方法
生活随笔
收集整理的這篇文章主要介紹了
android 背景图缩放,android背景图按比例缩放方法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
直接在你的layout文件的開頭加一個FrameLayout ,里面放一個ImageView,因為只有android:src可以設(shè)置android:scaleType,android:background是無法設(shè)置的,我的代碼:
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/main_background_normal_nextchapter"
android:scaleType = "centerCrop"
/>
原文:http://blog.csdn.net/only2xlr/article/details/44161283
總結(jié)
以上是生活随笔為你收集整理的android 背景图缩放,android背景图按比例缩放方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为麦芒新机渲染图曝光:疑似后置奥利奥三摄
- 下一篇: position: sticky 属性