1

次のようにキーパッドを作成する必要があります 1) 編集テキストのみが最初に表示
されます 2) 編集テキストをクリックすると、tabwidget/Buttons/ImageView が起動し、ウィジェットの最初のタブにはデフォルトのシステム キーパッドと残りのタブが含まれますカスタムキーパッドが含まれています。3) EditText がキーパッドと tabWi の上に表示されます。下記のように SCrollView を使用してみました。次の XML があります。

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

    <ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true">

      <EditText
      android:id="@+id/editview"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="15dp"
      android:ems="10"
      android:inputType="text"/>

    </ScrollView>

    <RelativeLayout
        android:id="@+id/relView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="-8dip ">
        <ImageView
            android:id="@+id/button1"
            android:src="@drawable/ic_launcher"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_marginRight="-8dip" 
            android:layout_marginLeft="-8dip" />

        <ImageView
            android:id="@+id/button2"
            android:src="@drawable/ic_launcher"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/button1"
            android:adjustViewBounds="true"
            android:layout_marginRight="-8dip" />
        <ImageView
            android:id="@+id/button3"
            android:src="@drawable/ic_launcher"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/button2"
            android:adjustViewBounds="true"
            android:layout_marginRight="-8dip" />
        <ImageView
            android:id="@+id/button4"
            android:src="@drawable/ic_launcher"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/button3"
            android:adjustViewBounds="true"
            android:layout_marginRight="-8dip" />

    </RelativeLayout>

</RelativeLayout>

このようにして、キーパッドを起動し、android:windowSoftInputMode="stateAlwaysHidden|adjustResize|adjustPan" を設定することで、画像ビューが画面の下部に表示されます。

しかし、ImageView のみを取得したいのですが、EditText & Edit Text のクリック時にキーパッドをキーパッドの上に配置する必要があります。

4

0 に答える 0