私のアンドロイドアプリケーションでは、私のアプリケーションでzoom able.nutを作成する必要があります。アクティビティのいくつかはscrollviewで始まり、このコードはscrollviewを認識しません。スクロール可能なアクティビティをピンチズームするにはどうすればよいですか?これは私のレイアウトの一つです。アンドロイドでズームイン/アウトのスクロールビューを作成する方法は?
はまたScaleGestureDetectorしようとした How to make zoomable scrollview?
/アウトscrollviewでズームをしたいです。あなたの助けを事前
で
おかげにappriciatedされますありがとうこれは私のレイアウト
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/horizontalScrollView"
android:layout_gravity="center"
android:fillViewport="false">
<LinearLayout
android:id="@+id/wd_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical" >
<!-- Start Circle -->
<TableRow
android:id="@+id/row_circl1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:background="@mipmap/ic_launcher" >
<RelativeLayout
android:id="@+id/circle_layout2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/ic_launcher" >
</RelativeLayout>
</TableRow>
<ImageView
android:id="@+id/img_engin_circle1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="@mipmap/ic_launcher"
android:contentDescription="TODO"
android:layout_gravity="center_horizontal" />
<TableRow
android:id="@+id/row_name_circle"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginTop="30dp" >
<RelativeLayout
android:id="@+id/circle_name_layout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="-15dp"
android:background="@mipmap/ic_launcher" >
<ImageView
android:id="@+id/img_name_circle1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="@mipmap/ic_launcher"
android:contentDescription="TODO" />
<ImageView
android:id="@+id/img_engin_circle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/ic_launcher"
android:contentDescription="TODO"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/circle_name_layout2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="-15dp"
android:background="@mipmap/ic_launcher" >
<ImageView
android:id="@+id/img_name_circle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="@mipmap/ic_launcher"
android:contentDescription="TODO" />
</RelativeLayout>
</TableRow>
<RelativeLayout
android:id="@+id/circle_layout1"
android:layout_width="match_parent"
android:layout_height="172dp"
android:background="@mipmap/ic_launcher"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_gravity="right">
<RelativeLayout
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="172dp"
android:background="@mipmap/ic_launcher"
android:layout_gravity="right"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/circle_layout1"
android:layout_width="match_parent"
android:layout_height="172dp"
android:background="@mipmap/ic_launcher"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_gravity="right">
<RelativeLayout
android:id="@+id/relativeLaysdfout"
android:layout_width="match_parent"
android:layout_height="172dp"
android:background="@mipmap/ic_launcher"
android:layout_gravity="right"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/circle_laysdfout1"
android:layout_width="match_parent"
android:layout_height="172dp"
android:background="@mipmap/ic_launcher"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_gravity="right">
<RelativeLayout
android:id="@+id/dsf"
android:layout_width="match_parent"
android:layout_height="172dp"
android:background="@mipmap/ic_launcher"
android:layout_gravity="right"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
<!-- End Circle -->
</LinearLayout>
</ScrollView>
これは
アウトでズーム完璧な作業私の活動ですが、私はカントです私たちの写真ギャラリーのように左から右へ、またはその逆に移動
こんにちは、あなたは解決策を見つけましたか? – isha
もし私が望むならまだ適切な解決策を見つけられません。私は@ishaを共有します –
reply @mehul for reply..iは同じ解決策が必要です – isha