Note that there are some explanatory texts on larger screens.

plurals
  1. PODon't want to hide EditText View when on EditText is pressed (After keyboard comeup) in Android?
    primarykey
    data
    text
    <p>In Android Application,</p> <p>when I pressed on EditText then it looks like as below :</p> <p><img src="https://i.stack.imgur.com/rMVIH.png" alt="enter image description here"></p> <p>I am using textview above tabbar and following code </p> <pre><code> android:windowSoftInputMode="stateHidden|adjustResize|adjustPan" </code></pre> <p>in manifest file to hide tabs when EditText is pressed.But it also hides text view and button as below :</p> <p><img src="https://i.stack.imgur.com/j2byR.png" alt="enter image description here"></p> <p>I dont want to hide textview , I just want to hide tabbar.</p> <p><strong>xml file</strong></p> <p>chatroom.xml :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;TabHost android:id="@+id/tabHost" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" &gt; &lt;include layout="@layout/chat_tab_list" /&gt; &lt;/FrameLayout&gt; &lt;TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:windowSoftInputMode="adjustPan" &gt; &lt;/TabWidget&gt; &lt;/LinearLayout&gt; &lt;/TabHost&gt; </code></pre> <p></p> <p>chat_tab_list.xml :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;LinearLayout android:id="@+id/chat_list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:visibility="visible" &gt; &lt;ListView android:id="@+id/listView" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" android:background="@color/white" &gt; &lt;/ListView&gt; &lt;LinearLayout android:id="@+id/text_entry" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="bottom" android:orientation="horizontal" android:visibility="visible" &gt; &lt;EditText android:id="@+id/txt_inputText" android:layout_width="125dp" android:layout_height="wrap_content" android:layout_weight="0.8" android:hint="@string/enter_text" android:inputType="text" android:windowSoftInputMode="adjustResize" /&gt; &lt;Button android:id="@+id/btn_Send" android:layout_width="100dp" android:layout_height="wrap_content" android:layout_weight="0.2" android:text="@string/send" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p> </p> <p>Please Guide me on this.</p> <p>Any help will be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload