2017-05-28 43 views

回答

0
<?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" /> 

+0

有點運動,但按鈕丟失了點擊動畫 –

+0

只需在每個按鈕上添加android:foreground =「?android:attr/selectableItemBackground」 –

+1

完美的工作!感謝:D –