vendor/rockchip/common/apps/RkHandWriting/res/layout/activity_main.xml

111 lines
3.7 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2023 Rockchip Electronics S.LSI Co. LTD
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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffffff"
android:orientation="vertical">
<LinearLayout
android:id="@+id/top_view"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:orientation="horizontal"
android:paddingTop="5dp">
<Button
android:id="@+id/save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="清除加速层" />
<Button
android:id="@+id/background"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="背景" />
<Button
android:id="@+id/undo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="撤回" />
<Button
android:id="@+id/redo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="反撤回" />
<Button
android:id="@+id/clear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="清除" />
<Spinner
android:id="@+id/pen_color_spinner"
android:layout_width="70dp"
android:layout_height="50dp"
android:entries="@array/penColorSpinner"
android:spinnerMode="dropdown" />
<!--<CheckBox
android:id="@+id/smooth"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20dp"
android:textColor="@android:color/black"
android:text="平滑" />-->
<CheckBox
android:id="@+id/eraser"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="橡皮擦"
android:textColor="@android:color/black"
android:textSize="20dp" />
<Button
android:id="@+id/exit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="退出" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/black" />
<com.rockchip.handwritingdemo.HandWritingView
android:id="@+id/handwriting_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/top_view"
android:background="@android:color/white" />
</LinearLayout>