【发布时间】:2017-04-10 06:14:01
【问题描述】:
我一直在寻找解决方案,但找不到。
我想要一个没有边框但带有底线文本的按钮(它看起来像 Web 中的链接按钮)。
下面是按钮,我尝试了以下属性:
android:style="@style/Widget.AppCompat.Button.Borderless"
android:style="?android:attr/buttonBarButtonStyle
android:style="?android:attr/borderlessButtonStyle"
android:style="@android:style/Widget.Holo.Button.Borderless"
<Button
android:id="@+id/ForgetPwd"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="#7AD8D3"
android:text="Forget password"
android:style="?android:attr/borderlessButtonStyle"
android:textColor="#ffffff" />
欢迎提出任何建议。
【问题讨论】: