title: Android EditText typed value not showing
body: <p>In my android application, i have used Search Edittext is not showing the text what i have typed,</p>
  
  <p>i have used Two fragments in my parent activity.</p>
  
  <p>This is my XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/landingbackground"
      android:orientation="vertical" &gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical" &gt;
  
          &lt;RelativeLayout
              android:id="@+id/hearderlayout"
              android:layout_width="fill_parent"
              android:layout_height="50dp"
              android:background="@color/landingheader"
              android:descendantFocusability="beforeDescendants"
              android:orientation="horizontal" &gt;
  
              &lt;ImageView
                  android:id="@+id/navigationmenu"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentLeft="true"
                  android:layout_centerVertical="true"
                  android:layout_marginLeft="15dp"
                  android:contentDescription="@string/app_name"
                  android:onClick="drawermenu"
                  android:padding="15dp"
                  android:src="@drawable/menu_icon" /&gt;
  
              &lt;ImageView
                  android:id="@+id/settingsmenu"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentRight="true"
                  android:layout_centerVertical="true"
                  android:layout_marginRight="15dp"
                  android:contentDescription="@string/app_name"
                  android:src="@drawable/settings_icon" /&gt;
  
              &lt;RelativeLayout
                  android:layout_width="400dp"
                  android:layout_height="wrap_content"
                  android:layout_marginRight="20dp"
                  android:layout_toLeftOf="@+id/communicationlayout"
                  android:background="@color/Orange" &gt;
  
                  &lt;EditText
                      android:id="@+id/searchedittext"
                      android:layout_width="400dp"
                      android:layout_height="50dp"
                      android:layout_centerHorizontal="true"
                      android:background="#222222"
                      android:hint="Search by asset name"
                      android:inputType="textPersonName"
                      android:paddingLeft="40dp"
                      android:textColor="@color/white" /&gt;
  
                  &lt;ImageView
                      android:id="@+id/searchicon"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_alignParentLeft="true"
                      android:layout_alignParentTop="true"
                      android:contentDescription="@string/app_name"
                      android:src="@drawable/searchicon" /&gt;
              &lt;/RelativeLayout&gt;
  
              &lt;ImageView
                  android:id="@+id/communicationlayout"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerVertical="true"
                  android:layout_marginRight="15dp"
                  android:layout_toLeftOf="@+id/settingsmenu"
                  android:contentDescription="@string/app_name"
                  android:src="@drawable/communication_topicon" /&gt;
  
              &lt;TextView
                  android:id="@+id/mylocationtitle"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerVertical="true"
                  android:layout_marginLeft="100dp"
                  android:text="@string/mylocationtitle"
                  android:textColor="@color/white"
                  android:textSize="22sp"
                  android:textStyle="bold" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;FrameLayout
              android:id="@+id/coverview"
              android:layout_width="match_parent"
              android:layout_height="155dp"
              android:layout_below="@+id/hearderlayout"
              android:layout_marginTop="5dp" &gt;
          &lt;/FrameLayout&gt;
  
          &lt;FrameLayout
              android:id="@+id/detailscontainer"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_below="@+id/coverview"
              android:layout_marginTop="5dp" /&gt;
  
          &lt;RelativeLayout
              android:id="@+id/carouselandinglayout"
              android:layout_width="300dp"
              android:layout_height="wrap_content"
              android:layout_below="@+id/hearderlayout"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="90dp"
              android:background="@color/white"
              android:orientation="vertical"
              android:paddingBottom="10dp"
              android:visibility="gone" &gt;
  
              &lt;TextView
                  android:id="@+id/sectorband"
                  android:layout_width="fill_parent"
                  android:layout_height="6dp"
                  android:background="#FFFF00" /&gt;
  
              &lt;ImageView
                  android:id="@+id/carouselimage"
                  android:layout_width="100dp"
                  android:layout_height="100dp"
                  android:layout_below="@+id/sectorband"
                  android:layout_marginLeft="5dp"
                  android:layout_marginTop="8dp"
                  android:contentDescription="@string/app_name"
                  android:src="@drawable/tsave" /&gt;
  
              &lt;TextView
                  android:id="@+id/colorrectanle"
                  android:layout_width="wrap_content"
                  android:layout_height="10dp"
                  android:layout_alignParentRight="true"
                  android:layout_below="@+id/sectorband"
                  android:layout_marginRight="10dp"
                  android:layout_marginTop="3dp"
                  android:background="@drawable/defaultrectangle" /&gt;
  
              &lt;TextView
                  android:id="@+id/defaultfirst"
                  android:layout_width="wrap_content"
                  android:layout_height="10dp"
                  android:layout_below="@+id/sectorband"
                  android:layout_marginRight="3dp"
                  android:layout_marginTop="3dp"
                  android:layout_toLeftOf="@+id/colorrectanle"
                  android:background="@drawable/defaultrectangle" /&gt;
  
              &lt;TextView
                  android:id="@+id/defaultsecond"
                  android:layout_width="wrap_content"
                  android:layout_height="10dp"
                  android:layout_below="@+id/sectorband"
                  android:layout_marginRight="3dp"
                  android:layout_marginTop="3dp"
                  android:layout_toLeftOf="@+id/defaultfirst"
                  android:background="@drawable/powerrectangle" /&gt;
  
              &lt;LinearLayout
                  android:id="@+id/contentlayout"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/defaultsecond"
                  android:layout_marginLeft="5dp"
                  android:layout_marginTop="2dp"
                  android:layout_toRightOf="@+id/carouselimage"
                  android:orientation="vertical" &gt;
  
                  &lt;TextView
                      android:id="@+id/carouselname"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:ellipsize="end"
                      android:singleLine="true"
                      android:text="Power Plant 1"
                      android:textColor="@color/black"
                      android:textSize="18sp"
                      android:textStyle="bold" /&gt;
  
                  &lt;View
                      android:layout_width="fill_parent"
                      android:layout_height="0.5dp"
                      android:layout_marginTop="2dp"
                      android:background="@color/addbackground" /&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/contactLayout"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="5dp"
                      android:orientation="horizontal"
                      android:visibility="visible" &gt;
  
                      &lt;ImageView
                          android:id="@+id/carouselcall"
                          android:layout_width="45dp"
                          android:layout_height="45dp"
                          android:layout_margin="5dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/call" /&gt;
  
                      &lt;ImageView
                          android:id="@+id/carouselemail"
                          android:layout_width="45dp"
                          android:layout_height="45dp"
                          android:layout_margin="3dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/email" /&gt;
  
                      &lt;ImageView
                          android:id="@+id/carouselmessage"
                          android:layout_width="45dp"
                          android:layout_height="45dp"
                          android:layout_marginBottom="5dp"
                          android:layout_marginLeft="10dp"
                          android:layout_marginTop="5dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/message" /&gt;
  
                      &lt;ImageView
                          android:id="@+id/carouselalert"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_margin="5dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/alert"
                          android:visibility="gone" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;View
                      android:layout_width="fill_parent"
                      android:layout_height="0.5dp"
                      android:layout_marginTop="2dp"
                      android:background="@color/addbackground" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;Button
                  android:id="@+id/moretext"
                  android:layout_width="50dp"
                  android:layout_height="25dp"
                  android:layout_below="@+id/contentlayout"
                  android:layout_marginLeft="5dp"
                  android:layout_marginTop="5dp"
                  android:layout_toRightOf="@+id/carouselimage"
                  android:background="#29abe2"
                  android:text="More"
                  android:textColor="@color/white"
                  android:textSize="13sp" /&gt;
  
              &lt;ImageView
                  android:id="@+id/communicationlinkimage"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/contentlayout"
                  android:layout_marginLeft="5dp"
                  android:layout_marginTop="6dp"
                  android:layout_toRightOf="@+id/moretext"
                  android:contentDescription="@string/app_name"
                  android:src="@drawable/carouselpopup"
                  android:visibility="gone" /&gt;
  
              &lt;ImageView
                  android:id="@+id/carouseldownarrow"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentRight="true"
                  android:layout_below="@+id/contentlayout"
                  android:layout_marginRight="5dp"
                  android:layout_marginTop="6dp"
                  android:contentDescription="@string/app_name"
                  android:src="@drawable/tarrow" /&gt;
  
              &lt;TextView
                  android:id="@+id/textposition"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/contentlayout"
                  android:layout_marginRight="20dp"
                  android:layout_toLeftOf="@+id/moretext"
                  android:text="kdfjkdf"
                  android:textColor="@color/white"
                  android:textSize="13sp"
                  android:visibility="gone" /&gt;
          &lt;/RelativeLayout&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
          android:id="@+id/drawer_list"
          android:layout_width="340dp"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:layout_marginTop="48dp"
          android:background="@color/signupbg"
          android:choiceMode="singleChoice"
          android:dividerHeight="0dp"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
              android:id="@+id/fragmentlistlayout"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_marginLeft="5dp"
              android:layout_marginRight="5dp"
              android:weightSum="1" &gt;
  
              &lt;LinearLayout
                  android:id="@+id/sectorLayout"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_weight=".5"
                  android:background="@color/landingbuttondefult"
                  android:onClick="onclick"
                  android:padding="10dp" &gt;
  
                  &lt;TextView
                      android:id="@+id/sectortext"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:gravity="center"
                      android:text="@string/sector"
                      android:textColor="@color/white"
                      android:textSize="18sp"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:id="@+id/assetLayout"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_weight=".5"
                  android:background="@color/landingbuttondefult"
                  android:onClick="onclick"
                  android:padding="10dp" &gt;
  
                  &lt;TextView
                      android:id="@+id/assettext"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="10dp"
                      android:gravity="center"
                      android:text="@string/facility"
                      android:textColor="@color/white"
                      android:textSize="18sp"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
  
          &lt;View
              android:layout_width="fill_parent"
              android:layout_height="1.5dp"
              android:layout_below="@+id/fragmentlistlayout"
              android:layout_marginLeft="5dp"
              android:layout_marginRight="5dp"
              android:background="@color/dividerline" /&gt;
  
          &lt;ListView
              android:id="@+id/assetsectorlist"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_above="@+id/mileselectionlayout"
              android:layout_below="@+id/fragmentlistlayout" &gt;
          &lt;/ListView&gt;
  
          &lt;RelativeLayout
              android:id="@+id/mileselectionlayout"
              android:layout_width="340dp"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_gravity="bottom"
              android:layout_marginBottom="20dp"
              android:background="@color/black"
              android:gravity="bottom"
              android:orientation="vertical"
              android:paddingBottom="20dp"
              android:paddingTop="20dp" &gt;
  
              &lt;TextView
                  android:id="@+id/milestext"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="3dp"
                  android:layout_marginTop="2dp"
                  android:textColor="@color/white"
                  android:textSize="16sp" /&gt;
  
              &lt;LinearLayout
                  android:id="@+id/linearLayout1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_below="@+id/milestext"
                  android:layout_centerVertical="true"
                  android:layout_marginTop="5dp"
                  android:orientation="horizontal" &gt;
  
                  &lt;LinearLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:orientation="vertical" &gt;
  
                      &lt;ImageView
                          android:id="@+id/onelevel"
                          android:layout_width="30dp"
                          android:layout_height="30dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/normalgrey" /&gt;
  
                      &lt;TextView
                          android:id="@+id/oneleveltext"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_marginLeft="3dp"
                          android:textColor="@color/white"
                          android:textSize="14sp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;View
                      android:layout_width="28dp"
                      android:layout_height="1dp"
                      android:layout_marginTop="9dp"
                      android:background="@color/landingbuttonselected" /&gt;
  
                  &lt;LinearLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:orientation="vertical" &gt;
  
                      &lt;ImageView
                          android:id="@+id/twolevel"
                          android:layout_width="30dp"
                          android:layout_height="30dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/normalgrey" /&gt;
  
                      &lt;TextView
                          android:id="@+id/twoleveltext"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textColor="@color/white"
                          android:textSize="14sp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;View
                      android:layout_width="28dp"
                      android:layout_height="1dp"
                      android:layout_marginTop="9dp"
                      android:background="@color/landingbuttonselected" /&gt;
  
                  &lt;LinearLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:orientation="vertical" &gt;
  
                      &lt;ImageView
                          android:id="@+id/thirdlevel"
                          android:layout_width="30dp"
                          android:layout_height="30dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/normalgrey" /&gt;
  
                      &lt;TextView
                          android:id="@+id/threeleveltext"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textColor="@color/white"
                          android:textSize="14sp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;View
                      android:layout_width="28dp"
                      android:layout_height="1dp"
                      android:layout_marginTop="9dp"
                      android:background="@color/landingbuttonselected" /&gt;
  
                  &lt;LinearLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:orientation="vertical" &gt;
  
                      &lt;ImageView
                          android:id="@+id/fourthlevel"
                          android:layout_width="30dp"
                          android:layout_height="30dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/normalgrey" /&gt;
  
                      &lt;TextView
                          android:id="@+id/fourleveltext"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textColor="@color/white"
                          android:textSize="14sp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;View
                      android:layout_width="28dp"
                      android:layout_height="1dp"
                      android:layout_marginTop="9dp"
                      android:background="@color/landingbuttonselected" /&gt;
  
                  &lt;LinearLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:orientation="vertical" &gt;
  
                      &lt;ImageView
                          android:id="@+id/fifthelevel"
                          android:layout_width="30dp"
                          android:layout_height="30dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/normalgrey" /&gt;
  
                      &lt;TextView
                          android:id="@+id/fiveleveltext"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textColor="@color/white"
                          android:textSize="14sp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;View
                      android:layout_width="28dp"
                      android:layout_height="1dp"
                      android:layout_marginTop="9dp"
                      android:background="@color/landingbuttonselected" /&gt;
  
                  &lt;LinearLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:orientation="vertical" &gt;
  
                      &lt;ImageView
                          android:id="@+id/sixthlevel"
                          android:layout_width="30dp"
                          android:layout_height="30dp"
                          android:contentDescription="@string/app_name"
                          android:src="@drawable/normalgrey" /&gt;
  
                      &lt;TextView
                          android:id="@+id/sixleveltext"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textColor="@color/white"
                          android:textSize="14sp" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
          &lt;/RelativeLayout&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>In my Activity:</p>
  
  <pre><code>mSearchText = (EditText) findViewById(R.id.searchedittext);
  
          mSearchText.addTextChangedListener(new TextWatcher() {
  
              @Override
              public void onTextChanged(CharSequence s, int start, int before,
                      int count) {
  
  //code
                  }
  
              @Override
              public void beforeTextChanged(CharSequence s, int start, int count,
                      int after) {
  
              }
  
              @Override
              public void afterTextChanged(Editable s) {
  
              }
          });
  </code></pre>
  
  <p>My Manifest:</p>
  
  <pre><code> &lt;activity
              android:name=".....LandingActivity"
              android:label="@string/app_name"
              android:screenOrientation="sensorLandscape"
              android:windowSoftInputMode="adjustPan" &gt;
          &lt;/activity&gt;
  </code></pre>
  
  <p>Can anyone help me to get solution?? i have tried with focus and all</p>
  
  <p>Thanks in Adavance</p>