Issue
I'm making two buttons.
if One button is clicked, the other button's text is changed.
I coded initial status using setText
mBtn.setOnClickListener(this);
mBtn.setText("Connect");
and changing text using
mBtn.setText("Disconnect");
In this case, button's length is fixed initial length.
What can i do?
Solution
use this on your layout it will work. remove fixed width first.
android:layout_width="wrap_content"
Answered By - sudesh regmi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.