2013-07-26 85 views
0

我想在android中創建照片拼貼應用。我不知道從哪裏開始。如果有人能幫助我,我可以做到這一點。我認爲它在一個佈局中使用三個視圖,但我不明白如何實現照片拼貼。我創建了一個應用程序,其中我使用了一個縮放視圖整個屏幕,並且也具有平移縮放功能。照片拼貼:如何在android中實現多個網格類型視圖

<com.simpleapps.sceneryphotoframes.zoom.ImageZoomView 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/zoomview" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
/> 

但這是一種觀點。我想知道如何做到這一點的多張照片。提前感謝。

回答

0

它很簡單,對於任何一個想..

我只是增加了多個自定義視圖。

<LinearLayout 
android:id="@+id/parentviewLayout" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:orientation="horizontal" > 

<com.simpleapps.photocollage.PanZoomView 
android:id="@+id/zoomview1" 
android:layout_weight="1" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
/> 
<com.simpleapps.photocollage.PanZoomView1 
android:id="@+id/zoomview2" 
android:layout_weight="1" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
/> 
<com.simpleapps.photocollage.PanZoomView2 
android:id="@+id/zoomview3" 
android:layout_weight="1" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
/> 

</LinearLayout>