【发布时间】:2017-05-25 05:06:57
【问题描述】:
我正在处理 Surface 视图。我想在我的表面视图上有一个透明视图。该透明视图必须包含标题、描述和微调器三项内容以及一个名为“开始”的按钮。如果不输入标题、描述和 Spinner 的菜单,就无法进入该透明视图下方的下一个布局。请帮我举一些例子..如何实现这种观点???这就是我想要的..enter image description here
这是我的 Surfaceview 布局..
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MainActivity">
<LinearLayout
android:id="@+id/suface_view_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<net.ossrs.yasea.SrsCameraView
android:id="@+id/glsurfaceview_camera"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true" />
</LinearLayout>
【问题讨论】:
-
你不需要没用的LinearLayout。
标签: android android-layout surfaceview glsurfaceview