<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_888
android:orientation="vertical">
<include layout="@layout/toolbar" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginTop="40dp"
android:background="@color/color_separator" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorWhite"
android:gravity="center_vertical"
android:orientation="horizontal">
<com.sample.customwidget.CustomTextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_weight="1"
android:padding="20dp"
android:text="@string/signature"
android:textColor="@color/colorBlack"
android:textSize="@dimen/text_size_18sp"
android:textStyle="bold"
/>
<android.support.v7.widget.SwitchCompat
android:id="@+id/_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:theme="@style/SwitchTheme" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="@color/color_separator" />
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginTop="40dp"
android:background="@color/color_separator" />
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:fillViewport="true">
<LinearLayout
android:id="@+id/body"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.sample.customwidget.RichEditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorWhite"
android:gravity="left"
android:imeOptions="actionDone"
android:inputType="text|textNoSuggestions|textMultiLine"
android:minHeight="200dp"
android:padding="20dp"
android:textColor="@color/colorBlack"
android:textSize="@dimen/text_size_18sp"
android:textStyle="normal" />
<com.sample.customwidget.CustomTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_weight="1"
android:lineSpacingExtra="4dp"
android:padding="15dp"
android:text="@string/signature_enabled_str"
android:textColor="@color/color_141_166_177"
android:textSize="@dimen/text_size_14sp"
oracle:customFont="@string/font_roboto_regular" />
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</LinearLayout>
</LinearLayout>
//Tool Bar Here
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@color/colorWhite"
android:orientation="vertical"
android:visibility="gone">
<View
android:layout_width="match_parent"
android:layout_height="@dimen/divider_height"
android:background="@color/colorGrayDark" />
<LinearLayout
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:weightSum="5">
<ToggleButton
android:id="@+id/Settings"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/xxx"
android:contentDescription="@string/desc_fonts"
android:textOff=""
android:textOn="" />
<com.sample.richtexteditor.richtext.RichTextToolbarImageButton
android:id="@+id/toolbar_bold"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/font_style_bold_toggle_selector" />
<com.sample.richtexteditor.richtext.RichTextToolbarImageButton
android:id="@+id/toolbar_italic"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/font_style_italic_toggle_selector" />
<com.sample.richtexteditor.richtext.RichTextToolbarImageButton
android:id="@+id/toolbar_bullet"
style="?attr/rte_ToolbarButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/font_style_bullet_toggle_selector" />
<com.sample.richtexteditor.richtext.RichTextToolbarImageButton
android:id="@+id/toolbar_bullet_number"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/font_style_bullet_toggle_number_selector" />
</LinearLayout>
<LinearLayout
android:id="@+id/font_settings_"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/my_toolbar"
android:orientation="vertical"
android:visibility="gone">
<View
android:layout_width="match_parent"
android:layout_height="@dimen/divider_height"
android:background="@color/colorGrayDark" />
<LinearLayout
android:id="@+id/font_size_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:weightSum="4">
<com.sample.customwidget.CustomTextView
android:id="@+id/fontSizeTiny"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:contentDescription="@string/desc_small_text_size"
android:gravity="center"
android:text="T"
android:textColor="@color/colorBlack"
android:textSize="12sp"
oracle:customFont="@string/font_roboto_medium" />
<com.sample.customwidget.CustomTextView
android:id="@+id/fontSizeSmall"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:contentDescription="@string/desc_medium_text_size"
android:gravity="center"
android:text="T"
android:textColor="@color/colorBlack"
android:textSize="16sp"
oracle:customFont="@string/font_roboto_medium" />
<com.sample.customwidget.CustomTextView
android:id="@+id/fontSizeMedium"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:contentDescription="@string/desc_large_text_size"
android:gravity="center"
android:text="T"
android:textColor="@color/colorBlack"
android:textSize="24sp"
oracle:customFont="@string/font_roboto_medium" />
<com.sample.customwidget.CustomTextView
android:id="@+id/fontSizeLarge"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:contentDescription="@string/desc_extra_large_text_size"
android:gravity="center"
android:src="@drawable/add"
android:text="T"
android:textColor="@color/colorBlack"
android:textSize="32sp"
oracle:customFont="@string/font_roboto_medium" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/divider_height"
android:background="@color/colorGrayDark" />
<LinearLayout
android:id="@+id/font_family_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:weightSum="2">
<com.sample.customwidget.CustomTextView
android:id="@+id/fonts_header_text_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="left"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:text="@string/fonts_settings_header_text"
android:textColor="@color/colorBlack"
android:textSize="@dimen/text_size_16sp"
oracle:customFont="@string/font_roboto_medium" />
<com.sample.customwidget.CustomTextView
android:id="@+id/fonts_family_text_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:text="DEFAULT"
android:textColor="@color/fontValueColor"
android:textSize="@dimen/text_size_16sp"
oracle:customFont="@string/font_roboto_medium" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/divider_height"
android:background="@color/colorGrayDark" />
<include layout="@layout/color_picker" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
</FrameLayout>
</LinearLayout>