나는 Finger Paint API 데모를 시험해보고 있는데 버튼을 추가하려고합니다. 나는 포함했다보기로 레이아웃에 버튼 추가
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<view
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.triopsys.imosandroid.ViewControllers.SignatureViewController$MyView" />
</LinearLayout>
내 레이아웃 xml에서이보기의 상단이나 하단에 단추를 추가 할 수 없다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/buttonCancel"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Cancel" >
</Button>
<Button
android:id="@+id/buttonOk"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="OK" >
</Button>
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<view
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.triopsys.imosandroid.ViewControllers.SignatureViewController$MyView" />
</LinearLayout>
</LinearLayout>
하지만 이것은 작동하지 않습니다.
어떤 종류의 오류가 발생하고 있습니까? – iTurki