我開始材料佈局,想知道如何使這個按鈕。特別是兩個與感謝如何做這些安卓按鈕
-5
A
回答
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 –
相關問題
- 1. 按鈕在安卓
- 2. 安卓:如何點擊一個按鈕
- 3. 安卓與Eclipse按鈕
- 4. 安卓雙按鈕提交
- 5. 安卓按鈕問題
- 6. 安卓幻燈片按鈕
- 7. 安卓圖像按鈕
- 8. 鈦:安卓選項按鈕
- 9. 安卓按鈕裏面PopupWindow
- 10. 畫布和安卓按鈕
- 11. 你會如何去做這些按鈕的工作?
- 12. 如何打破這樣做,而按鈕
- 13. 如何顯示這些按鈕
- 14. 你如何製作這些按鈕?
- 15. 如何獲得這些按鈕內聯?
- 16. 我如何居中這些按鈕
- 17. 如何對齊這些按鈕?
- 18. 如何讓這些按鈕居中?
- 19. 安卓按鈕監聽器的一些組合
- 20. 如何在安卓(0x7f0b005e)更改這些數字R.java
- 21. 安卓吧sherlock添加按鈕
- 22. 安卓浮動左/右按鈕
- 23. 安卓:註銷相機按鈕
- 24. 離子安卓按鈕不起作用
- 25. 安卓按鈕及其工作方式
- 26. 安卓:ClassCastException異常從按鈕
- 27. 安卓:impelment的onclick()的按鈕
- 28. 安卓視圖用按鈕查看
- 29. 安卓方向按鈕點擊動作
- 30. 覆蓋安卓的MediaController的按鈕
程序兼容性,並創建Widget.AppCompat.Button.Borderless(.Colored)按鈕主題,設計它
之間enter image description here
微小線無論你想在styles.xml – Zoe
如果我把無邊界按鈕並排會鍛鍊? –
我不明白 – Zoe