Friday, 15 July 2011

Android add Button inside TextView programmatically -



Android add Button inside TextView programmatically -

i want add together button in middle of text in textview, when see phone number in text, replace button in textview, , set background of button contact picture, how can add together button textview ? possible ?

<textview android:id="@+id/textview" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" />

you talking placing widget(or view) within widget. not possible. can add together widgets within layouts. however, can position widget on top of widget if utilize relative layout.

refer : developer.android.com/guide/topics/ui/declaring-layout.html

android

No comments:

Post a Comment