141 lines
5.6 KiB
XML
141 lines
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
|
|
|
|
<com.stardust.theme.widget.ThemeColorToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="?attr/colorPrimary"
|
|
android:title="@string/_app_name"
|
|
app:popupTheme="@style/AppTheme.PopupOverlay">
|
|
|
|
<com.stardust.widget.ViewSwitcher
|
|
android:id="@+id/toolbar_switcher"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="right">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="right"
|
|
android:orientation="horizontal">
|
|
|
|
<com.stardust.widget.ToolbarMenuItem
|
|
android:id="@+id/run"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
app:icon="@drawable/ic_play_arrow_white_48dp"
|
|
app:icon_color="@android:color/white"
|
|
app:text="@string/text_run"/>
|
|
|
|
<com.stardust.widget.ToolbarMenuItem
|
|
android:id="@+id/undo"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
app:icon="@drawable/ic_undo_white_48dp"
|
|
app:text="@string/text_undo"/>
|
|
|
|
<com.stardust.widget.ToolbarMenuItem
|
|
android:id="@+id/redo"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
app:icon="@drawable/ic_redo_white_48dp"
|
|
app:text="@string/text_redo"/>
|
|
|
|
<com.stardust.widget.ToolbarMenuItem
|
|
android:id="@+id/save"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
android:enabled="false"
|
|
app:icon="@drawable/ic_save_white_48dp"
|
|
app:text="@string/text_save"/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="right"
|
|
android:orientation="horizontal">
|
|
|
|
<com.stardust.widget.ToolbarMenuItem
|
|
android:id="@+id/replace"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
app:icon="@drawable/ic_ali_replace"
|
|
app:text="@string/text_replace"/>
|
|
|
|
<com.stardust.widget.ToolbarMenuItem
|
|
android:id="@+id/find_prev"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
app:icon="@drawable/ic_ali_up"
|
|
app:text="@string/text_find_prev"/>
|
|
|
|
<com.stardust.widget.ToolbarMenuItem
|
|
android:id="@+id/find_next"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
app:icon="@drawable/ic_ali_down"
|
|
app:text="@string/text_find_next"/>
|
|
|
|
|
|
<com.stardust.widget.ToolbarMenuItem
|
|
android:id="@+id/cancel"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
app:icon="@drawable/ic_close_white_48dp"
|
|
app:text="@string/text_cancel"/>
|
|
|
|
|
|
</LinearLayout>
|
|
</com.stardust.widget.ViewSwitcher>
|
|
|
|
</com.stardust.theme.widget.ThemeColorToolbar>
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
<com.stardust.scriptdroid.ui.edit.CodeMirrorEditor
|
|
android:id="@+id/editor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/input_method_enhance_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="35dp"
|
|
android:background="#77f2f3f7"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/symbols"
|
|
android:layout_width="40dp"
|
|
android:layout_height="35dp"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:padding="6dp"
|
|
android:src="@drawable/ic_ali_symbol"
|
|
android:tint="#222329"/>
|
|
|
|
<com.stardust.scriptdroid.ui.edit.completion.CodeCompletionBar
|
|
android:id="@+id/code_completion_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="35dp"/>
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout> |