I have an EditText which is android:focusable=”false”.
I would like to do something when this edittext is clicked by the user.
how can I do this please?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
here is the solution I find for this problem:
I declared my text view liek this:
EditText
android:id=”@+id/Daily”
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:layout_alignParentLeft=”true”
android:layout_alignParentRight=”true”
android:layout_below=”@+id/UserInformations”
android:editable=”false”
android:cursorVisible=”false”
android:longClickable=”false”
android:gravity=”right” >
EditText>
The most important is to declare those lines:
And then use a simple setOnClickListener.