|
|
|
|
@ -16,22 +16,26 @@
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:background="@drawable/list_background"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/background"
|
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!-- 顶部工具栏 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/note_title"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/surface"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:elevation="4dp"
|
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_modified_date"
|
|
|
|
|
@ -60,72 +64,78 @@
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_undo"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:contentDescription="@string/menu_undo"
|
|
|
|
|
android:src="@drawable/ic_undo" />
|
|
|
|
|
android:src="@drawable/ic_undo"
|
|
|
|
|
android:tint="@color/onSurface"
|
|
|
|
|
android:alpha="0.8" />
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_redo"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:contentDescription="@string/menu_redo"
|
|
|
|
|
android:src="@drawable/ic_redo" />
|
|
|
|
|
android:src="@drawable/ic_redo"
|
|
|
|
|
android:tint="@color/onSurface"
|
|
|
|
|
android:alpha="0.8" />
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_set_bg_color"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:padding="12dp" />
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:contentDescription="设置背景颜色"
|
|
|
|
|
android:src="@drawable/ic_format_color_fill"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/add_img_btn"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:background="@drawable/bg_btn_insert_image"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:contentDescription="@string/menu_insert_image"
|
|
|
|
|
android:padding="12dp" />
|
|
|
|
|
android:src="@android:drawable/ic_menu_camera"
|
|
|
|
|
android:tint="@color/onSurface"
|
|
|
|
|
android:alpha="0.8" />
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/extract_img_btn"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:background="@drawable/bg_btn_insert_image"
|
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:contentDescription="提取图片内容"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:src="@drawable/ic_insert_image" />
|
|
|
|
|
android:src="@android:drawable/ic_menu_camera"
|
|
|
|
|
android:tint="@color/onSurface"
|
|
|
|
|
android:alpha="0.8" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 标题编辑区域 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/note_title_area"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:background="@android:color/transparent">
|
|
|
|
|
android:padding="16dp"
|
|
|
|
|
android:background="@color/surface">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_title_hint"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/note_title_hint"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:layout_marginRight="8dp" />
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/et_title"
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
@ -133,34 +143,38 @@
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:hint="@string/note_title_placeholder"
|
|
|
|
|
android:maxLength="50"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:background="@null"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:singleLine="true" />
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:fontFamily="sans-serif-medium" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_title_count"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="0/50"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textColor="#999999"
|
|
|
|
|
android:layout_marginLeft="8dp" />
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:alpha="0.6"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:gravity="center_vertical" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="1dp"
|
|
|
|
|
android:background="#E0E0E0" />
|
|
|
|
|
android:background="@color/divider_color" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 富文本格式化工具栏 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/rich_text_toolbar"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:background="#F5F5F5">
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:background="@color/surface"
|
|
|
|
|
android:elevation="2dp">
|
|
|
|
|
|
|
|
|
|
<!-- 加粗按钮 -->
|
|
|
|
|
<ImageButton
|
|
|
|
|
@ -168,10 +182,11 @@
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:contentDescription="@string/menu_bold"
|
|
|
|
|
android:src="@drawable/ic_format_bold" />
|
|
|
|
|
android:src="@drawable/ic_format_bold"
|
|
|
|
|
android:tint="@color/onSurface" />
|
|
|
|
|
|
|
|
|
|
<!-- 斜体按钮 -->
|
|
|
|
|
<ImageButton
|
|
|
|
|
@ -180,10 +195,11 @@
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:contentDescription="@string/menu_italic"
|
|
|
|
|
android:src="@drawable/ic_format_italic" />
|
|
|
|
|
android:src="@drawable/ic_format_italic"
|
|
|
|
|
android:tint="@color/onSurface" />
|
|
|
|
|
|
|
|
|
|
<!-- 下划线按钮 -->
|
|
|
|
|
<ImageButton
|
|
|
|
|
@ -192,10 +208,11 @@
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:contentDescription="@string/menu_underline"
|
|
|
|
|
android:src="@drawable/ic_format_underlined" />
|
|
|
|
|
android:src="@drawable/ic_format_underlined"
|
|
|
|
|
android:tint="@color/onSurface" />
|
|
|
|
|
|
|
|
|
|
<!-- 文本颜色按钮 -->
|
|
|
|
|
<ImageButton
|
|
|
|
|
@ -204,10 +221,11 @@
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:contentDescription="@string/menu_text_color"
|
|
|
|
|
android:src="@drawable/ic_format_color_text" />
|
|
|
|
|
android:src="@drawable/ic_format_color_text"
|
|
|
|
|
android:tint="@color/onSurface" />
|
|
|
|
|
|
|
|
|
|
<!-- 高亮按钮 -->
|
|
|
|
|
<ImageButton
|
|
|
|
|
@ -216,199 +234,214 @@
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
android:contentDescription="@string/menu_highlight"
|
|
|
|
|
android:src="@drawable/ic_format_color_fill" />
|
|
|
|
|
android:src="@drawable/ic_format_color_fill"
|
|
|
|
|
android:tint="@color/onSurface" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/sv_note_edit"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="7dip"
|
|
|
|
|
android:background="@drawable/bg_color_btn_mask" />
|
|
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="0dip"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:scrollbars="none"
|
|
|
|
|
android:overScrollMode="never"
|
|
|
|
|
android:layout_gravity="left|top"
|
|
|
|
|
android:fadingEdgeLength="0dip">
|
|
|
|
|
android:layout_gravity="left|top">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="fill_parent">
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:background="@color/surface"
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:padding="24dp"
|
|
|
|
|
android:elevation="4dp"
|
|
|
|
|
android:radius="12dp">
|
|
|
|
|
|
|
|
|
|
<net.micode.notes.ui.NoteEditText
|
|
|
|
|
android:id="@+id/note_edit_view"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="left|top"
|
|
|
|
|
android:background="@null"
|
|
|
|
|
android:autoLink="all"
|
|
|
|
|
android:linksClickable="false"
|
|
|
|
|
android:minLines="12"
|
|
|
|
|
android:minLines="16"
|
|
|
|
|
android:textAppearance="@style/TextAppearancePrimaryItem"
|
|
|
|
|
android:lineSpacingMultiplier="1.2" />
|
|
|
|
|
android:lineSpacingMultiplier="1.3"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/note_edit_list"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginLeft="-10dip"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="7dip"
|
|
|
|
|
android:background="@drawable/bg_color_btn_mask" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/btn_set_bg_color"
|
|
|
|
|
android:layout_height="43dip"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:background="@drawable/bg_color_btn_mask"
|
|
|
|
|
android:layout_gravity="top|right" />
|
|
|
|
|
|
|
|
|
|
<!-- 背景颜色选择器 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/note_bg_color_selector"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@drawable/note_edit_color_selector_panel"
|
|
|
|
|
android:layout_marginTop="30dip"
|
|
|
|
|
android:layout_marginRight="8dip"
|
|
|
|
|
android:background="@color/surface"
|
|
|
|
|
android:layout_marginTop="80dip"
|
|
|
|
|
android:layout_marginRight="16dip"
|
|
|
|
|
android:layout_gravity="top|right"
|
|
|
|
|
android:visibility="gone">
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:elevation="8dp"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:radius="12dp">
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_yellow"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/note_bg_yellow"
|
|
|
|
|
android:radius="8dp" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_yellow_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:layout_marginRight="5dip"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_blue"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/note_bg_blue"
|
|
|
|
|
android:radius="8dp" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_blue_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_marginRight="3dip"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_white"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/note_bg_white"
|
|
|
|
|
android:radius="8dp"
|
|
|
|
|
android:elevation="1dp" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_white_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_marginRight="2dip"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_green"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/note_bg_green"
|
|
|
|
|
android:radius="8dp" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_green_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_red"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/note_bg_red"
|
|
|
|
|
android:radius="8dp" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_bg_red_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 字体大小选择器 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/font_size_selector"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@drawable/font_size_selector_bg"
|
|
|
|
|
android:background="@color/surface"
|
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
|
android:visibility="gone">
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:elevation="8dp"
|
|
|
|
|
android:padding="16dp"
|
|
|
|
|
android:radius="16dp"
|
|
|
|
|
android:layout_margin="16dp">
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/ll_font_small"
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="8dp">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
@ -417,36 +450,41 @@
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/font_small"
|
|
|
|
|
android:layout_marginBottom="5dip" />
|
|
|
|
|
android:text="Aa"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:fontFamily="sans-serif-medium" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/menu_font_small"
|
|
|
|
|
android:textAppearance="@style/TextAppearanceUnderMenuIcon" />
|
|
|
|
|
android:text="小"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:alpha="0.8" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_small_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:layout_marginRight="6dip"
|
|
|
|
|
android:layout_marginBottom="-7dip"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/ll_font_normal"
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="8dp">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
@ -455,36 +493,41 @@
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/font_normal"
|
|
|
|
|
android:layout_marginBottom="5dip" />
|
|
|
|
|
android:text="Aa"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:fontFamily="sans-serif-medium" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/menu_font_normal"
|
|
|
|
|
android:textAppearance="@style/TextAppearanceUnderMenuIcon" />
|
|
|
|
|
android:text="标准"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:alpha="0.8" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_medium_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_marginRight="6dip"
|
|
|
|
|
android:layout_marginBottom="-7dip"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/ll_font_large"
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="8dp">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
@ -493,36 +536,41 @@
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/font_large"
|
|
|
|
|
android:layout_marginBottom="5dip" />
|
|
|
|
|
android:text="Aa"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:fontFamily="sans-serif-medium" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/menu_font_large"
|
|
|
|
|
android:textAppearance="@style/TextAppearanceUnderMenuIcon" />
|
|
|
|
|
android:text="大"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:alpha="0.8" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_large_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_marginRight="6dip"
|
|
|
|
|
android:layout_marginBottom="-7dip"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/ll_font_super"
|
|
|
|
|
android:layout_width="0dip"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="8dp">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
@ -531,32 +579,37 @@
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/font_super"
|
|
|
|
|
android:layout_marginBottom="5dip" />
|
|
|
|
|
android:text="Aa"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:fontFamily="sans-serif-medium" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/menu_font_super"
|
|
|
|
|
android:textAppearance="@style/TextAppearanceUnderMenuIcon" />
|
|
|
|
|
android:text="超大"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:alpha="0.8" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/iv_super_select"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_marginRight="6dip"
|
|
|
|
|
android:layout_marginBottom="-7dip"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
android:src="@drawable/ic_done_circle"
|
|
|
|
|
android:tint="@color/primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 字数统计 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/word_count_area"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
@ -568,14 +621,18 @@
|
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
|
android:background="@drawable/bg_word_count_panel">
|
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
|
android:background="@color/surface"
|
|
|
|
|
android:elevation="4dp"
|
|
|
|
|
android:radius="20dp">
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_word_count_label"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/word_count_label"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/onSurface"
|
|
|
|
|
android:alpha="0.8"
|
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
|
android:gravity="center_vertical" />
|
|
|
|
|
<TextView
|
|
|
|
|
@ -583,7 +640,9 @@
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="0"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
android:gravity="center_vertical" />
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/primary"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:fontFamily="sans-serif-medium" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
</FrameLayout>
|