2016-02-15 19:35:24 -05:00
|
|
|
<!--
|
|
|
|
|
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" />
|
2017-01-26 16:46:24 -05:00
|
|
|
|
2017-02-15 19:07:10 -05:00
|
|
|
<ToggleButton
|
2017-04-17 21:42:01 -04:00
|
|
|
android:id="@+id/light_button"
|
2017-02-15 19:07:10 -05:00
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-04-17 21:42:01 -04:00
|
|
|
android:layout_above="@+id/backface_button"
|
|
|
|
|
android:layout_alignLeft="@+id/backface_button"
|
2017-02-15 19:07:10 -05:00
|
|
|
android:layout_alignParentRight="true"
|
2017-04-17 21:42:01 -04:00
|
|
|
android:layout_marginBottom="15dp"
|
2017-02-15 19:07:10 -05:00
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
|
android:paddingRight="5dp"
|
2017-04-17 21:42:01 -04:00
|
|
|
android:textOff="@string/light_off"
|
|
|
|
|
android:textOn="@string/light_on" />
|
|
|
|
|
|
2017-01-26 16:46:24 -05:00
|
|
|
<ToggleButton
|
2017-04-17 21:42:01 -04:00
|
|
|
android:id="@+id/backface_button"
|
2017-01-26 16:46:24 -05:00
|
|
|
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"
|
2017-04-17 21:42:01 -04:00
|
|
|
android:layout_marginBottom="5dp"
|
2017-01-26 16:46:24 -05:00
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
|
android:paddingRight="5dp"
|
2017-04-17 21:42:01 -04:00
|
|
|
android:textOff="@string/backface_off"
|
|
|
|
|
android:textOn="@string/backface_on" />
|
|
|
|
|
|
2017-01-26 16:46:24 -05:00
|
|
|
<ToggleButton
|
2016-02-15 19:35:24 -05:00
|
|
|
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"
|
2017-01-26 16:46:24 -05:00
|
|
|
android:textOff="@string/first_person"
|
|
|
|
|
android:textOn="@string/first_person" />
|
|
|
|
|
|
|
|
|
|
<ToggleButton
|
|
|
|
|
android:id="@+id/third_person_button"
|
2016-02-15 19:35:24 -05:00
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-01-26 16:46:24 -05:00
|
|
|
android:layout_above="@+id/top_down_button"
|
2016-02-15 19:35:24 -05:00
|
|
|
android:layout_alignParentRight="true"
|
2017-01-26 16:46:24 -05:00
|
|
|
android:layout_marginBottom="5dp"
|
2016-02-15 19:35:24 -05:00
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
|
android:paddingRight="5dp"
|
2017-01-26 16:46:24 -05:00
|
|
|
android:textOff="@string/third_person"
|
|
|
|
|
android:textOn="@string/third_person" />
|
2016-02-15 19:35:24 -05:00
|
|
|
|
2017-01-26 16:46:24 -05:00
|
|
|
<ToggleButton
|
|
|
|
|
android:id="@+id/top_down_button"
|
2016-02-15 19:35:24 -05:00
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-01-26 16:46:24 -05:00
|
|
|
android:layout_alignParentBottom="true"
|
2016-02-15 19:35:24 -05:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
|
android:paddingRight="5dp"
|
2017-01-26 16:46:24 -05:00
|
|
|
android:textOff="@string/top_down"
|
|
|
|
|
android:textOn="@string/top_down" />
|
2016-02-15 19:35:24 -05:00
|
|
|
|
2017-01-26 16:46:24 -05:00
|
|
|
<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"
|
2017-02-15 19:07:10 -05:00
|
|
|
android:layout_alignParentRight="true"
|
2017-01-26 16:46:24 -05:00
|
|
|
android:paddingRight="5dp"
|
|
|
|
|
android:textOff="@string/pause"
|
|
|
|
|
android:textOn="@string/resume" />
|
2017-02-15 19:07:10 -05:00
|
|
|
|
|
|
|
|
<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" />
|
|
|
|
|
|
2017-01-27 11:47:57 -05:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/close_visualization_button"
|
|
|
|
|
android:layout_width="200dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-15 19:07:10 -05:00
|
|
|
android:layout_alignBaseline="@+id/top_down_button"
|
|
|
|
|
android:layout_alignBottom="@+id/top_down_button"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
2017-01-27 11:47:57 -05:00
|
|
|
android:paddingLeft="5dp"
|
2017-02-15 19:07:10 -05:00
|
|
|
android:text="@string/close_visualization" />
|
2017-01-26 16:46:24 -05:00
|
|
|
|
2016-02-15 19:35:24 -05:00
|
|
|
</RelativeLayout>
|