I want to create a custom field on which I can place more than one line of text as well as images.
And the field can be used like a button(onclick event etc.)
I want to create a custom field on which I can place more than
Share
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.
What Thomas suggested is probably enough for you, but in case you want to create your own custom widget you could extend existing ViewGroup class – for example LinearLayout. You could make a “composite view” by adding views you want to your extended LinearLayout.Take a look at the example below
Your component could implement OnClickListener, so you could add your own custom click listeners etc. This approach is more time consuming, but it gives you flexibility.
Regards!