<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"> <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" android:layout_height="@dimen/title_height" android:background="@color/white"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:id="@+id/btnBack" android:layout_width="@dimen/title_height" android:layout_height="@dimen/title_height" android:background="?attr/selectableItemBackground" android:scaleType="centerInside" android:src="@mipmap/ic_back_def" /> <ImageView android:id="@+id/btnClose" android:layout_width="@dimen/title_height" android:layout_height="@dimen/title_height" android:layout_toEndOf="@+id/btnBack" android:background="?attr/selectableItemBackground" android:scaleType="centerInside" android:src="@mipmap/ic_close" android:visibility="gone" /> <androidx.appcompat.widget.AppCompatTextView android:id="@+id/titleTv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginStart="96dp" android:layout_marginEnd="96dp" android:gravity="center" android:textColor="@color/black" android:textStyle="bold" android:textSize="@dimen/title_text_size" /> <androidx.appcompat.widget.AppCompatButton android:id="@+id/save" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:background="@drawable/btn_select" android:paddingHorizontal="15dp" android:textSize="@dimen/title_text_size" android:textStyle="bold" android:text="保存" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_marginEnd="15dp" android:orientation="horizontal" android:visibility="gone"> <androidx.appcompat.widget.AppCompatTextView android:id="@+id/btnPre" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@mipmap/ic_left" /> <androidx.appcompat.widget.AppCompatTextView android:id="@+id/tvIndex" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="1" android:textColor="#2c2c2c" /> <androidx.appcompat.widget.AppCompatTextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="/" android:textColor="#2c2c2c" /> <androidx.appcompat.widget.AppCompatTextView android:id="@+id/tvTotal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="2" android:textColor="#2c2c2c" /> <androidx.appcompat.widget.AppCompatTextView android:id="@+id/btnNext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@mipmap/ic_right" /> </LinearLayout> <ProgressBar android:id="@+id/progressbar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="match_parent" android:layout_height="2dp" android:layout_alignParentBottom="true" android:max="100" android:progress="0" android:progressDrawable="@drawable/progress_horizontal" android:visibility="visible" /> </RelativeLayout> </com.google.android.material.appbar.AppBarLayout> <LinearLayout android:id="@+id/bottom_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:orientation="horizontal" android:paddingTop="4dp"> <Button android:id="@+id/delete" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="删除" android:visibility="gone" /> <Button android:id="@+id/init" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="背景0" /> <Button android:id="@+id/clear" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="清除" /> <Button android:id="@+id/redo" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="ReDo" /> <Button android:id="@+id/undo" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="UnDo" /> <Button android:id="@+id/pen_width_sub" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="-宽度3" /> <Button android:id="@+id/pen_width" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="+宽度3" /> <Button android:id="@+id/eraser_width" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="橡皮宽15" /> <CheckBox android:id="@+id/strokes" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="笔锋" /> <CheckBox android:id="@+id/eraser" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="橡皮擦" /> <Button android:id="@+id/cancel" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/btn_select" android:text="退出" android:visibility="gone" /> </LinearLayout> <TextView android:layout_width="match_parent" android:layout_height="1dp" android:background="#ff000000" /> <!-- <FrameLayout android:id="@+id/tablet_view" android:layout_width="fill_parent" android:layout_height="match_parent" > </FrameLayout> --> <com.wetao.note.WeNoteView android:id="@+id/note_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/bottom_view" android:background="#ffffffff" /> <!-- <com.wetao.note.WeNoteView android:id="@+id/note_view" android:layout_width="1150px" android:layout_height="1560px" android:layout_marginLeft="103px" android:layout_marginRight="150px" android:layout_above="@+id/bottom_view" android:background="#ffffffff" /> --> </LinearLayout>