【发布时间】:2016-07-02 16:11:09
【问题描述】:
我想要一个button like this。 它基本上是一个文本:NEXT,右侧有一个 Chevron。
我已经尝试了一个带有透明背景和android:drawableRight 的按钮,但是drawable 的填充看起来很奇怪。
我怎样才能获得想要的外观?
到目前为止我所拥有的:
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Next"
android:textColor="@color/colorAccent"
android:drawableRight="@drawable/chevron_right"
android:background="#00000000"/>
/很抱歉发布链接而不是直接发布照片,但我的声誉不够高。/
【问题讨论】:
-
分享你目前拥有的代码
-
@GennadiiSaprykin 添加了它。
标签: android android-layout material-design android-button