在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Android  網(wǎng)絡(luò)安全/ Android ImageView很?。?/span>

Android ImageView很小?

我按照android trainning上加了三張圖片,可是最后一張縮小了很多,前面兩張挺大的,壓縮了最后一張圖片的空間。

    <ImageView
        android:id="@+id/donut"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/choose_dessert"
        android:contentDescription="@string/donuts"
        android:onClick="showDonutOrder"
        android:padding="@dimen/padding_regular"
        android:src="@drawable/donut_circle" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/choose_dessert"
        android:layout_toRightOf="@id/donut"
        android:padding="@dimen/padding_wide"
        android:text="@string/donuts" />

    <ImageView
        android:id="@+id/ice_cream"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/donut"
        android:contentDescription="@string/ice_cream_sandwiches"
        android:onClick="showIceCreamOrder"
        android:padding="@dimen/padding_regular"
        android:src="@drawable/icecream_circle" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/donut"
        android:layout_toRightOf="@+id/ice_cream"
        android:padding="@dimen/padding_wide"
        android:text="@string/ice_cream_sandwiches" />

    <ImageView
        android:id="@+id/froyo"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/ice_cream"
        android:contentDescription="@string/froyo"
        android:onClick="showFroyoOrder"
        android:padding="@dimen/padding_regular"
        android:src="@drawable/froyo_circle" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/ice_cream"
        android:layout_toRightOf="@+id/froyo"
        android:padding="@dimen/padding_wide"
        android:text="@string/froyo" />

怎么讓第三章圖片顯示正常呢?

回答
編輯回答
淺時光

哥,你這問題是?

2017年4月24日 11:41
編輯回答
單眼皮

看代碼 是RelativeLayout 縱向布局,
你先看下圖片的真實像素吧,畢竟你每張圖都是自適應(yīng)的

2018年7月15日 17:46
編輯回答
孤影

能不能有個圖嗎

2017年2月1日 11:07
編輯回答
扯不斷

設(shè)置一下scaleType = fitXY 試試

2018年8月12日 01:28