Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android布局中的三角形视图_Android_Android Layout_Layout_View_Photo - Fatal编程技术网

android布局中的三角形视图

android布局中的三角形视图,android,android-layout,layout,view,photo,Android,Android Layout,Layout,View,Photo,我正在做一个照片拼贴应用程序。我现在需要一种在布局中绘制三角形自定义视图的方法。这在android布局中是可能的。如果是的话,请给我一些建议 我的布局如下 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout an

我正在做一个照片拼贴应用程序。我现在需要一种在布局中绘制三角形自定义视图的方法。这在android布局中是可能的。如果是的话,请给我一些建议

我的布局如下

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

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

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

</LinearLayout>
</FrameLayout>

我的布局中有三个自定义视图。我希望它有不同的形状。示例图像如下所示

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

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

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

</LinearLayout>
</FrameLayout>

像这样在图像中布局。
提前感谢

如果您看到我的布局,您需要图片了解您面临的问题。布局类似于我给出的示例图像中的第三帧。我想开发一个布局,就像示例图像第二帧中的布局。有解决方案吗?我和你有同样的问题!我也想要一个解决方案。投票表决我的问题,这样这个问题可以得到一些关注,人们可以提供帮助。