【发布时间】:2019-03-09 11:37:07
【问题描述】:
我的键盘一直挡住我的视线。有没有办法解决这个问题?
当我点击描述 2 插入一些东西时,但是键盘太烦人了……我看不到我在输入什么……实际上这不是一页。其他页面也喜欢这个。我看不到我正在输入的内容,只有关闭键盘才能看到内容。
这是代码
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center|top">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="300dp"></ListView>
</LinearLayout>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="60dp"
android:layout_height="wrap_content"
android:text="DATE:" />
<TextView
android:id="@+id/Select_Date"
android:layout_width="60dp"
android:layout_height="38dp"
android:text="SELECT DATE"
android:textSize="19dp"
/>
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="60dp"
android:layout_height="wrap_content"
android:text="TXN NO:" />
<TextView
android:id="@+id/D_Txn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="60dp"
android:layout_height="wrap_content"
android:text="NAME:" />
<EditText
android:id="@+id/D_Name"
android:layout_width="273dp"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPersonName" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="72dp"
android:layout_height="wrap_content"
android:text="AMOUNT:" />
<EditText
android:id="@+id/D_Amount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="number" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="110dp"
android:layout_height="wrap_content"
android:text="DESCRIPTION1:" />
<Spinner
android:id="@+id/D_Description"
android:layout_width="match_parent"
android:layout_height="35dp"
android:background="@android:drawable/btn_dropdown"
android:spinnerMode="dropdown" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="60dp"
android:layout_height="wrap_content"
android:text="DESCRIPTION2:" />
<EditText
android:id="@+id/Ds_Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPersonName" />
</TableRow>
</TableLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:gravity="center|bottom"
android:orientation="horizontal">
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TableRow>
<Button
android:textColor="@color/my_color_state"
android:id="@+id/Db_New"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="NEW" />
<Button
android:textColor="@color/my_color_state"
android:id="@+id/Db_Save"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:enabled="false"
android:text= "SAVE" />
</TableRow>
<TableRow>
<Button
android:textColor="@color/my_color_state"
android:id="@+id/Db_Print"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="PRINT" />
<Button
android:textColor="@color/my_color_state"
android:id="@+id/Db_Back"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="BACK" />
</TableRow>
</TableLayout>
</LinearLayout>
【问题讨论】:
标签: android user-interface interface