Tabwidget 使用默认系统键盘,只需重新创建键盘
我需要创建一个键盘,如下所示 1) 最初只有编辑文本可见Tabwidget 使用默认系统键盘,只需重新创建键盘,tabwidget,keypad,Tabwidget,Keypad,我需要创建一个键盘,如下所示 1) 最初只有编辑文本可见 2) 单击编辑文本将启动一个选项卡Widget/Buttons/ImageView,该选项卡的第一个选项卡包含默认系统键盘,其余选项卡包含自定义键盘。 3) 编辑文本显示在键盘和选项卡的顶部 我尝试使用下面提到的SCrollView 我有以下XML <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout
2) 单击编辑文本将启动一个选项卡Widget/Buttons/ImageView,该选项卡的第一个选项卡包含默认系统键盘,其余选项卡包含自定义键盘。 3) 编辑文本显示在键盘和选项卡的顶部 我尝试使用下面提到的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:WindowsOfInputMode=“StateAllwayshidden |调整大小|调整平移”
但我只想获得ImageView,单击EditText时键盘应位于键盘顶部。找到了解决问题的方法,只需在父布局上设置填充(0,0,0,高度)