android - How to remove ems from TextView programatically? -
having textview in layout xml ems width 8,
<textview android:id="@+id/more" android:ems="8" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@color/popup_grey" android:drawableleft="@drawable/dot_small" android:text="@string/get_more" />
i need remove ems
textview dynamically
on condition. tried view.setems(0)
, shrinks
textview width 0
.
is there piece of code remove it?
thanks in advance.
you can try this:
view.setems(0) @ sametime put width of textview match_parent? way won't shrink textview
hope helps gud luck
Comments
Post a Comment