Вот XML, в котором размер ScrollView расположение будет меняться означает, что она будет увеличить изображение на кнопку мыши, но мои топ заголовков и нижних колонтитулов всегда будет находиться в таком же положении, независимо от значений масштабирования .......LinearLayout Кнопки не отображаются, если ориентация устройства изменилась на горизонтальную?
XML
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/layout_zoom_buttons"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/btn_zoomIn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/zoomin1" />
<ImageView
android:id="@+id/btn_zoomout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/zoomin1" />
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<com.example.imagetouchview.TouchImageView
android:id="@+id/imagezoom"
android:layout_width="fill_parent"
android:layout_height="400dp"
android:layout_gravity="center">
</com.example.imagetouchview.TouchImageView>
</ScrollView>
<LinearLayout
android:id="@+id/layout_buttons"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
android:id="@+id/btn_email_fatwa"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/zoomin1"
android:layout_weight="1"/>
<ImageView
android:id="@+id/btn_share_fatwa"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/zoomin1"
android:layout_weight="1"/>
<ImageView
android:id="@+id/btn_save_fatwa"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/zoomin1"
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>
эта схема хорошо в вертикальной ориентации, а когда устройство ориентация меняется на горизонтальной нижние кнопки invisible.I я следую Salmans Ayub Answer For Image Zoomin and Out
Мне нужны обе ориентации, пожалуйста, отредактируйте мой код для работы с ориентацией – user3233280
, вам нужно спроектировать его в обеих ориентациях, поскольку я дал ссылку следовать этому. и принять ans, если получить решение –
создать новую папку layout-land, в ресурсе папка скопировать YOUR.xml в нее и спроектировать соответствующим образом. –