|
|
|
|
@ -56,63 +56,14 @@
|
|
|
|
|
android:layout_marginRight="8dip"
|
|
|
|
|
android:textAppearance="@style/TextAppearanceSecondaryItem" />
|
|
|
|
|
|
|
|
|
|
<!-- 插入图片按钮 -->
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_insert_image"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:src="@android:drawable/ic_menu_gallery"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:layout_marginRight="8dip" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_set_bg_color_header"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 富文本工具栏 - 单独放置 -->
|
|
|
|
|
<HorizontalScrollView
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="#F5F5F5"
|
|
|
|
|
android:scrollbars="none">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_bold"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:src="@android:drawable/ic_menu_edit"
|
|
|
|
|
android:contentDescription="@string/formatting_bold" />
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_italic"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:src="@android:drawable/ic_menu_edit"
|
|
|
|
|
android:contentDescription="@string/formatting_italic" />
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_underline"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:src="@android:drawable/ic_menu_edit"
|
|
|
|
|
android:contentDescription="@string/formatting_underline" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</HorizontalScrollView>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/sv_note_edit"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_height="0dip"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
@ -160,6 +111,57 @@
|
|
|
|
|
android:layout_height="7dip"
|
|
|
|
|
android:background="@drawable/bg_color_btn_mask" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 富文本工具栏 - 放置在页面底部 -->
|
|
|
|
|
<HorizontalScrollView
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="#F5F5F5"
|
|
|
|
|
android:scrollbars="none">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_bold"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:src="@android:drawable/ic_menu_edit"
|
|
|
|
|
android:contentDescription="@string/formatting_bold" />
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_italic"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:src="@android:drawable/ic_menu_edit"
|
|
|
|
|
android:contentDescription="@string/formatting_italic" />
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_underline"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
|
android:src="@android:drawable/ic_menu_edit"
|
|
|
|
|
android:contentDescription="@string/formatting_underline" />
|
|
|
|
|
<!-- 插入图片按钮 -->
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_insert_image"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:src="@android:drawable/ic_menu_gallery"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color"
|
|
|
|
|
android:layout_marginRight="8dip" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/btn_set_bg_color_header"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:background="@drawable/bg_btn_set_color" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</HorizontalScrollView>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
@ -215,9 +217,10 @@
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:layout_marginRight="3dip"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_marginRight="3dip"
|
|
|
|
|
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
@ -236,9 +239,9 @@
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:layout_marginRight="2dip"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:layout_marginRight="2dip"
|
|
|
|
|
android:src="@drawable/selected" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
|