1

Android:滚动时jquery移动文本框在固定标题上重叠

当用户单击任何文本框并开始滚动时,焦点文本框会与固定标题重叠(如上所示)。

https://www.dropbox.com/s/vk6nzeeqrx68uai/Screenshot_2013-10-01-10-19-39-2.png

当用户单击该文本框时,是否有任何想法可以防止文本框突出显示。

图片:https ://www.dropbox.com/s/43nee5bw4x9grzk/Screenshot_2013-10-01-13-37-11-1.png

我希望第二个文本框在单击后也与第一个文本框相同。

谢谢拉兹

4

2 回答 2

1

Selector.xml在drawable中使用文件,然后使用两个不同的背景图像。一个是悬停图像,另一个是普通图像。

前任 :

 <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/hover_Bg" android:state_pressed="true"></item>
<item android:drawable="@drawable/hover_Bg" android:state_focused="true"></item>
<item android:drawable="@drawable/normal_Bg"></item>

</selector>

在你这样的布局集中。

 <EditText
            android:id="@+id/firstname_edt"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dip"
            android:background="@drawable/Selector"
            android:inputType="textPersonName" >
        </EditText>
于 2013-10-01T09:49:20.513 回答
1

对于混合应用程序(HTML5、JS),在元标记中使用 user-scalable=no"。

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
于 2013-10-01T09:57:58.363 回答