title: android edittext request focus at specific position
body: <p>I have an edittext view and button , Edit text has some default value.
  when i click on button i give focus to the edit text. but problem is cursor is at the start of edit text. how to place cursor after the default text.</p>
  
  <p>what i did.</p>
  
  <pre><code> mobile_text =(EditText)findViewById(R.id.mobile_text);
   mobile_edit = (ImageView)findViewById(R.id.mobile_edit_icon);
          mobile_edit.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  mobile_text.setEnabled(true);
                  mobile_text.requestFocus();
                  InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
                  imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
              }
          });
  </code></pre>
  
  <p>My layout.xml file</p>
  
  <pre><code>&lt;RelativeLayout
          android:paddingTop="@dimen/pad_3dp"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:paddingLeft="@dimen/pad_5dp"
          android:paddingBottom="@dimen/pad_5dp"
          &gt;
          &lt;TextView
              android:id="@+id/mobile"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="MOBILE"
              android:paddingLeft="2dp"
              android:textSize="@dimen/txt_12sp"
  
              /&gt;
          &lt;EditText
              android:paddingTop="@dimen/pad_5dp"
              android:layout_below="@+id/mobile"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="@android:color/transparent"
              android:id="@+id/mobile_text"
              android:text="9581129423"
  
              /&gt;
          &lt;ImageView
              android:clickable="true"
              android:id="@+id/mobile_edit_icon"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:src="@drawable/edit"
              android:layout_below="@+id/mobile"
              android:layout_alignParentRight="true"
              android:gravity="right|end"
              /&gt;
  
      &lt;/RelativeLayout&gt;
  </code></pre>