今、android studioを使い、上半分をsurfaceviewでポリゴンを表示したいのですが、
xmlファイルまたはjavaファイルのどこを変更すればいいのかわからず、
全画面javaファイルのsurfaceviewになってしまっています。
どこを変更すればいいか分かりますか?
javaファイルはこのページを使っており
http://blog.fujiu.jp/2013/08/android_24.html
xmlファイルはただデザインでsurfaceviewを付けただけという状態です。
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.example.pc632g.a3d.ds"> <SurfaceView android:layout_width="fill_parent" android:layout_height="300dp" android:id="@+id/surfaceView2" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="New Button" android:id="@+id/button3" android:layout_below="@+id/surfaceView2" android:layout_centerHorizontal="true" /> </RelativeLayout>

回答1件
あなたの回答
tips
プレビュー