Android: Keyboard is flickering when the EditText input type is number
<p>I have a layout for list items. Inside that layout list item, I have an Edit Text with input type as number. </p>

<p>My issue is when i click on the edit text the keyboard is flickering with normal alpha numerical key board and number key.</p>

<p>I am not getting any idea why it is happens.</p>

<p><strong>Layout.xml</strong></p>

<pre><code>  &lt;EditText
                android:id="@+id/edit_quantity"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/total"
                android:layout_centerHorizontal="true"
                android:background="@color/bg_white"
                android:gravity="center"
                android:inputType="number"
                android:maxLength="4"
                android:maxLines="1"
                android:minWidth="@dimen/view_cart_count_min_width"
                android:paddingLeft="@dimen/padding_normal"
                android:paddingRight="@dimen/padding_normal"
                android:textSize="@dimen/text_medium" /&gt;
</code></pre>

<p>Manifest.xml</p>

<pre><code>    &lt;activity
        android:name="com.manoramaonline.entedeal.MyCartActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:launchMode="singleTask"
        android:windowSoftInputMode="adjustResize|stateVisible" &gt;
    &lt;/activity&gt;
</code></pre>

<p>when I change the softInputMode to adJustPan  the keyboard flickirinf is stop, but the screen not resizing. So the keyboard is comes over the layout.</p>

<p>When android:windowSoftInputMode is adjust resize with edit text input type number that time the keyboard is flickering</p>

<p>I there any solution that reduce the screen size when the soft keyboard is open.</p>