我开始材料布局,想知道如何使这个按钮。特别是两个与感谢如何做这些安卓按钮
-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. 按钮在安卓
- 4. 安卓:如何点击一个按钮
- 5. 安卓viewtreeObserver负载按钮
- 6. 安卓:切换按钮
- 7. 安卓按钮问题
- 8. 安卓双按钮提交
- 9. 安卓耳机按钮
- 10. 安卓图像按钮
- 11. 安卓移动按钮
- 12. 安卓幻灯片按钮
- 13. 单选按钮(安卓)
- 14. 安卓与Eclipse按钮
- 15. 画布和安卓按钮
- 16. 安卓按钮里面PopupWindow
- 17. 钛:安卓选项按钮
- 18. 安卓按钮选择器
- 19. 安卓按钮放置
- 20. 你会如何去做这些按钮的工作?
- 21. 如何打破这样做,而按钮
- 22. 安卓:哪个按钮被按下
- 23. 安卓后退按钮按下检查
- 24. 如何获得这些按钮内联?
- 25. 如何对齐这些按钮?
- 26. 你如何制作这些按钮?
- 27. 我如何居中这些按钮
- 28. 如何显示这些按钮
- 29. 如何阻止这些按钮重叠?
- 30. 如何居中这些导航按钮?
程序兼容性,并创建Widget.AppCompat.Button.Borderless(.Colored)按钮主题,设计它
之间enter image description here
微小线无论你想在styles.xml – Zoe
如果我把无边界按钮并排会锻炼? –
我不明白 – Zoe