[英]Child ImageView Not accepting Parent Layout Width & Height
當我更改線性布局背景圖像的拐角半徑時,子圖像視圖在寬度和高度相同的情況下保持不變。
角半徑對於linearlayout正確工作,但對子imageview不起作用
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="15dp"
android:layout_weight="0.5"
android:tag="3"
android:orientation="vertical" >
<com.polites.android.GestureImageView
android:id="@+id/imageView3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="centerCrop"
gesture-image:min-scale="0.75"
gesture-image:max-scale="10.0"
android:src="@drawable/sample"/>
</LinearLayout>
向視圖添加角半徑不會更改其子視圖的角半徑。您必須將那個背景單獨應用於子視圖
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.