-1
A
回答
2
1
你应该寻找 “FloatingActionButton”。
例如:
<android.support.design.widget.CoordinatorLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/viewA"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.15">
</LinearLayout>
<LinearLayout
android:id="@+id/viewB"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.85" >
</LinearLayout>
</LinearLayout>
<android.support.design.widget.FloatingActionButton
android:id="@+id/btn_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/activity_horizontal_margin"
android:clickable="true"
android:src="@drawable/ic_ok"
app:layout_anchor="@id/viewA"
app:layout_anchorGravity="left|bottom"
app:backgroundTint="@color/accent"/>
</android.support.design.widget.CoordinatorLayout>
相关问题
- 1. 在操作栏顶部显示视图
- 2. 显示额外操作栏
- 3. 如何在URL栏上显示图像
- 4. 如何在inkcanvas外部显示图像
- 5. 如何在android中的操作栏上显示图标
- 6. 如何显示外部图像到textview?
- 7. 如何显示在操作栏
- 8. 操作栏在Android上不显示
- 9. 如何在操作栏上显示viewpager片段的位置?
- 10. 操作ActionScript 3中的外部图像
- 11. 外部图像不显示在Apache下
- 12. Android操作栏,不显示图标
- 13. 不显示操作栏
- 14. Mouseover上的显示图像(在jsfiddle内部的工作示例)
- 15. 如何在rails_admin的列表操作中显示图像?
- 16. PNG图像显示在IOS半透明
- 17. 如何使操作栏标题在菜单栏图标下方显示
- 18. 如何在导航栏上方显示图像CSS和HTML
- 19. 如何在MVC中显示外部图像3
- 20. 如何在android中显示外部图像?
- 21. 如何在SSRS中显示外部图像?
- 22. 如何在Android中隐藏并显示TabWidget的上半部分
- 23. Android:显示操作栏(如果支持)
- 24. 在屏幕下半部分显示图像和用户信息
- 25. 只在操作栏中显示标签
- 26. SSRS - 如何根据列中的URL显示外部图像
- 27. 如何操作网站上的图像?
- 28. 如何在计算机显示器显示之前操作输出图像?
- 29. 在操作栏中更改图像
- 30. 如何显示图像的一部分?
我很抱歉,如果它是那么明显,但我还是在学习阶段。 – Shubh
你想要一个[FloatingActionButton](https://developer.android.com/reference/android/support/design/widget/FloatingActionButton.html) –