I created two linearlayout with rotation and then I placed the imageview in it ...
If the app loads and imageview displayed the edges of images in imageview look like this
How can i get the imageview with proper edges.
以下是我的 xml 内容:
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_marginTop="220dp"
android:background="@drawable/mainscreen_imageframe"
android:gravity="center"
android:rotation="-8" >
<ImageView
android:id="@+id/imgBride"
android:layout_width="150dip"
android:layout_height="132dp"
android:layout_marginBottom="15dip"
android:adjustViewBounds="true"
android:contentDescription="@string/app_name"
android:scaleType="fitXY"
android:background="@drawable/noimage" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="-47dip"
android:layout_marginTop="210dp"
android:background="@drawable/mainscreen_imageframe"
android:gravity="center"
android:rotation="9" >
<ImageView
android:id="@+id/imgGroom"
android:layout_width="150dp"
android:layout_height="132dp"
android:layout_marginBottom="15dip"
android:adjustViewBounds="true"
android:contentDescription="@string/app_name"
android:scaleType="fitXY"
android:src="@drawable/noimage" />
</LinearLayout>
</LinearLayout>
朋友们帮我解决这个问题......如何在旋转中获得正确的图像边缘