これがコードです
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white" >
<ImageView
android:id="@+id/first_imageview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dip"
android:layout_marginTop="5dip"
android:src="@drawable/frame" />
<ImageView
android:id="@+id/second_imageview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/first_imageview"
android:layout_alignLeft="@id/first_imageview"
android:scaleType="fitXY" />
</RelativeLayout>
次に、の高さと幅を検出して、first_imageview
に設定する必要がありsecond_image_view
ます。どうやってするの?