android - On HTC Desire S, soft keyboard not popping up on EditText focus -


i having edittext imeoptions="actionsearch". when click on edittext, keyboard not pop in of htc devices, htc desire s & htc incredible. edittext xml follow:

<com.myapp.utilities.font.droidsansedittext                     android:id="@+id/txtsearchbyname"                     android:layout_width="0dp"                     android:layout_height="match_parent"                     android:layout_weight="0.60"                     android:background="@drawable/edittext"                     android:ellipsize="end"                     android:gravity="left|center_vertical"                     android:hint="@string/provider_practice"                     android:imeoptions="actionsearch"                     android:inputtype="textcapwords"                     android:paddingleft="10dp"                     android:paddingright="5dp"                     android:singleline="true"                     android:tag="byname"                     android:textcolor="#a19d93"                     android:textsize="15.5sp" /> 

droidsansedittext custom edittext having droid-sans font. droidsansedittext follow :

public class droidsansedittext extends edittext {     public droidsansedittextview(context context) {         super(context);          }      public droidsansedittextview(context context, attributeset attrs) {         super(context, attrs);     }      public droidsansedittextview(context context, attributeset attrs, int defstyle) {         super(context, attrs, defstyle);     }      @override     public void settypeface(typeface tf, int style) {         if (!isineditmode()) { //for graphical layout of xml in eclipse              // here bold style handled. same way can handle italic style             if (style == 1) { // if bold (style constant, normal = 0 | bold = 1                                 // | italic = 2)                 tf = typeface.createfromasset(getcontext()                         .getapplicationcontext().getassets(),                         "droidsans-bold.ttf");             } else {                 tf = typeface.createfromasset(getcontext()                         .getapplicationcontext().getassets(), "droidsans.ttf");             }             super.settypeface(tf, 0);         }     } } 

maybe because not set typeface if edittext in edit mode?

i mean, why need that:

 if (!isineditmode()) 

if in edit mode want set typeface, write else statement , set typeface in it.

because - if textview in edit mode don't call super.settypeface(); override method , nothing in it. please try , let me know


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -