Viewgroup을 부모로 사용하여 배경 이미지가있는 relativelayout이있는 레이아웃이 있습니다. relativelayout에 컨트롤을 동적으로 추가하고 줌 및 스크롤 할 수 있습니다. 방향을 변경하면 배경 이미지가 가로 방향으로 축소됩니다. 배경 이미지에 비례하여 상대 컨트롤을 변경하고 싶습니다. 안드로이드에 초보자가 어디서부터 시작 해야할지 명확하지 않습니까 ??android - 오리엔테이션에서 배경 이미지에 비례하여 레이아웃을 변경합니다.
레이아웃
<com.example.pdoc.zoomablepdf.ZoomableViewGroup
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foregroundGravity="center"
android:id="@+id/zoomLayout"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:background="@drawable/sample1pdf"
android:id="@+id/RelLayout">
</RelativeLayout>
</com.example.pdoc.zoomablepdf.ZoomableViewGroup>
사실 난 그냥 제어 WRT 배경 이미지를 비례하고 싶은, 그래서 그것에 대해 다른 레이아웃을 생성하지 못할 ... 배경이 사촌 : 당신은 자세한 내용을 보려면 여기를 볼 수있는이
같은 뭔가 이미지도 동적으로 변경되고 컨트롤은 동적으로 추가됩니다. –