我正在尝试在Android中创建一个带有fontawesome字符串作为“ icon”和普通文本作为标签的按钮
目前,我正在使用它(在dashboard.xml中):
<Button
android:id="@+id/ndc"
style="?android:attr/borderlessButtonStyle"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@android:color/transparent"
android:text="@string/icon_ndc"
android:textColor="#FFFFFF"
android:shadowColor="#000000"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="1"
/>
这(在strings.xml中,它是一个字体很棒的图标)
<string name="icon_ndc"></string>
如何添加必须具有不同大小,颜色等的标签?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句