1

ここに画像の説明を入力

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>

友人はこれを解決するために私を助けてくれます...回転で適切な画像エッジを取得する方法

4

2 に答える 2

0

9パッチツールで9パッチ画像にしてみてください。画像を伸縮可能にします。

于 2013-01-11T10:01:43.527 に答える
0

これをxmlのimageviewsに追加します

android:antialias="true"
于 2013-01-11T09:05:22.927 に答える