我在android中添加了图像,但它适合屏幕中间,我能做些什么来设置它的全屏?android resize image
什么是wrap_content和填充父,我没有得到如何做到这一点。
这是我的代码
<ImageView
android:scaleType="fitCenter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/my_image" android:cropToPadding="false"/>
我已经试过相同的仍然相同 – savitha 2010-03-01 11:20:04
看看这里:http://developer.android.com/intl/de/reference/android/widget/ImageView.ScaleType.html 也许你需要android:scaleType = “fitXY” 尝试参考中提到的一切,你应该能够找到你需要的东西 – WarrenFaith 2010-03-02 09:20:32
这可能有助于你http://thinkandroid.wordpress.com/2009/12/25/resizing-a-bitmap/ – 2011-08-10 10:18:23