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

クリックした後、2番目のテキストボックスも最初のテキストボックスと同じにしたい。

ありがとうラズ

4

2 に答える 2

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 に答える
1

Selector.xmlドローアブルでファイルを使用してから、2 つの異なる背景画像を使用します。1 つはホバー画像、もう 1 つは通常の画像です。

元 :

 <?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 に答える