【发布时间】:2017-10-28 20:40:25
【问题描述】:
【问题讨论】:
-
AppCompat 并使用 Widget.AppCompat.Button.Borderless(.Colored) 创建一个按钮主题,并将其设计为您在 styles.xml 中想要的任何内容
-
如果我将无边框按钮并排放置会锻炼吗?
-
我不明白
【问题讨论】:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
style="@style/Base.Widget.AppCompat.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:text="Criar Contan"
android:textAllCaps="true" />
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
android:background="@color/background_grey" />
<Button
style="@style/Base.Widget.AppCompat.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Entrar"
android:textAllCaps="true" />
【讨论】: