java - RealEditText behaves like TextView (Compatibility with Eclipse) -
i'm using realtextview library , face next problem. first allow me say, gladly utilize in android studio (and gradle). yet, have project in eclipse has need of realedittext view properties. i've tried *manual import of library , realedittext behaves textview.
in layout.xml:
<com.myapplication.view.realedittext android:id="@+id/realedittext1" android:layout_width="400dp" android:layout_height="300dp" android:layout_below="@+id/textview1" android:layout_margintop="70dp" android:layout_torightof="@+id/textview1" android:ems="10" real:mintextsize="18sp" android:text="realedittext" />
and referencing in activity/fragment (pretty mutual practice, nil fancy happening here).
private realedittext mrealetext; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); mrealetext = (realedittext) findviewbyid(r.id.realedittext1); }
i tried adding property android:editable="true"
view, made no difference. has tried importing library eclipse? ideas why happens?
*copied lib bundle (without checkbox , button views), updated attr.xml lib data
edit:
solution issue enabling touch properties in widget declaration:
android:focusable="true" android:focusableintouchmode="true"
java android eclipse gradle
No comments:
Post a Comment