0
這裏是在滾動型佈局大小會隨着變化意味着它會放大按鈕點擊,但我的首要頭和頁腳的形象永遠是不管變焦值的相同位置的XML .......的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如果得到解決 –
創建一個新的文件夾佈局的土地,在資源的開發文件夾拷貝到YOUR.xml它設計accordingl在視圖中。 –