android - 像 BottomAppBar 垂直的东西?
问题描述
我想使用类似com.google.android.material.bottomappbar.BottomAppBar
,但垂直的东西来放入land
我的相机活动的活动。
我尝试使用,AppBarLayout
但结果不一样。
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:weightSum="3"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/camera"
>
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/actuacion_cameraAppBar"
android:layout_width="80dp"
android:layout_height="match_parent"
android:verticalScrollbarPosition="right"
android:layout_gravity="right"
app:fabAlignmentMode="center"
/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/actuacion_camara_tomar_foto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/foto_actuacion"
android:onClick="onClick"
app:backgroundTint="@color/colorPrimary"
app:layout_anchor="@id/actuacion_cameraAppBar"
app:srcCompat="@drawable/ic_baseline_photo_camera_24"
app:tint="@color/browser_actions_bg_grey" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
任何想法?
解决方案
推荐阅读
- javascript - 无法使用 onclick 调用名为 clear 的函数
- mongodb - 使用正则表达式和 tx 时间范围查询输出地址
- python - Tkinter:如何将元组从列表框转换为列表?
- postgresql - 使用数组去 postgres `SELECT * IN`
- java - 带绑定的 jOOQ 纯 SQL
- swift - WKWebview 使用 loadHTMLString 尝试调整字体大小并在 Swift 中使用本地自定义字体
- javascript - 检查原始数据是否损坏
- javascript - 将两个事件处理程序合并为一个(jquery)
- typescript - 检查详尽的键联合的规范方法是什么
- python - 处理断开连接的优雅方式?