mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
126 lines
4.7 KiB
XML
126 lines
4.7 KiB
XML
<!--
|
|
Copyright (C) 2014 Google Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<android.opengl.GLSurfaceView
|
|
android:id="@+id/gl_surface_view"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_gravity="top" />
|
|
|
|
<ToggleButton
|
|
android:id="@+id/backface_button"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/light_button"
|
|
android:layout_alignLeft="@+id/light_button"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:paddingRight="5dp"
|
|
android:textOff="@string/backface_off"
|
|
android:textOn="@string/backface_on" />
|
|
|
|
<ToggleButton
|
|
android:id="@+id/light_button"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/first_person_button"
|
|
android:layout_alignLeft="@+id/first_person_button"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginBottom="15dp"
|
|
android:layout_marginRight="5dp"
|
|
android:paddingRight="5dp"
|
|
android:textOff="@string/light_off"
|
|
android:textOn="@string/light_on" />
|
|
|
|
<ToggleButton
|
|
android:id="@+id/first_person_button"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/third_person_button"
|
|
android:layout_alignLeft="@+id/third_person_button"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:paddingRight="5dp"
|
|
android:textOff="@string/first_person"
|
|
android:textOn="@string/first_person" />
|
|
|
|
<ToggleButton
|
|
android:id="@+id/third_person_button"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/top_down_button"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:paddingRight="5dp"
|
|
android:textOff="@string/third_person"
|
|
android:textOn="@string/third_person" />
|
|
|
|
<ToggleButton
|
|
android:id="@+id/top_down_button"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="5dp"
|
|
android:paddingRight="5dp"
|
|
android:textOff="@string/top_down"
|
|
android:textOn="@string/top_down" />
|
|
|
|
<ToggleButton
|
|
android:id="@+id/pause_button"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@+id/first_person_button"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginTop="61dp"
|
|
android:layout_alignParentRight="true"
|
|
android:paddingRight="5dp"
|
|
android:textOff="@string/pause"
|
|
android:textOn="@string/resume" />
|
|
|
|
<Button
|
|
android:id="@+id/button_shareToSketchfab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignRight="@+id/pause_button"
|
|
android:text="@string/share_to_sketchfab" />
|
|
|
|
<Button
|
|
android:id="@+id/button_saveOnDevice"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_toLeftOf="@+id/button_shareToSketchfab"
|
|
android:text="@string/save_to_file" />
|
|
|
|
<Button
|
|
android:id="@+id/close_visualization_button"
|
|
android:layout_width="200dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBaseline="@+id/top_down_button"
|
|
android:layout_alignBottom="@+id/top_down_button"
|
|
android:layout_centerHorizontal="true"
|
|
android:paddingLeft="5dp"
|
|
android:text="@string/close_visualization" />
|
|
|
|
</RelativeLayout> |