android - Transparent Image in Textview DrawableTop Not Showing Properly -
the images shown below in png format, transparent background.
i used textview per item consists of drawabletop image , text. wanted image transparent not working properly. tried alpha method transparency entire textview lighten. wanted image, not entire textview.
by way, used textview instead of linearlayout per item consisting of imageview , textview because ide prompted me warning , advised not have warning in code.
i have following code in android:
<textview android:id="@+id/marketbtn" android:layout_width="0dp" android:layout_height="match_parent" android:layout_gravity="bottom" android:layout_weight="1" android:background="@drawable/unselected_button" android:drawabletop="@drawable/market_icon_0" android:gravity="center" android:paddingbottom="5dp" android:paddingleft="1dp" android:paddingright="1dp" android:paddingtop="5dp" android:text="@string/task_bar_lbl_market" android:textappearance="?android:attr/textappearancesmall" android:textcolor="#ffffff" android:textsize="13sp" /> i confused next. should there help, grateful! more info, here's screen cap of bug:

use button instead of textview :
<button android:id="@+id/marketbtn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/show" android:layout_alignleft="@+id/name" android:layout_marginbottom="36dp" android:background="@drawable/unselected_button" android:drawabletop="@drawable/market_icon_0" android:text="@string/task_bar_lbl_market" android:textcolor="#ffffff" android:textstyle="bold" />
Comments
Post a Comment