RealEditText behaves like TextView (Eclipse compatible)
I am using RealTextView and I am facing the following problem. First of all let me say, I would love to use this in Android Studio (and gradle). However, I have a project in Eclipse that needs the RealEditText properties. I've tried * manually importing the library and RealEditText behaves like a TextView.
in my 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 then referencing it in the activity / fragment (pretty common practice, nothing happens 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 also tried adding a property android:editable="true"
to the view, but that didn't matter. Has anyone tried to import this library into Eclipse? Any ideas why this is happening?
* copied the lib package (no checkboxes and button views), updated attr.xml with lib data
EDIT:
The solution to this problem includes touch properties in the widget declaration:
android:focusable="true"
android:focusableInTouchMode="true"
source to share
No one has answered this question yet
Check out similar questions: