shortcut buttons are placed outside the editor

This commit is contained in:
TrianguloY 2019-03-23 18:13:27 +01:00
parent fbf32b7c64
commit 66564f381b
2 changed files with 22 additions and 23 deletions

View file

@ -1372,6 +1372,7 @@ public class ScriptEditor extends ResourceWrapperActivity implements View.OnClic
new ShortcutText("(", ")"), new ShortcutText("(", ")"),
new ShortcutText("[", "]"), new ShortcutText("[", "]"),
new ShortcutText("{", "}"), new ShortcutText("{", "}"),
new ShortcutText("var ", ""),
}; };
private View.OnClickListener mShortcutButtonClickListener = new View.OnClickListener() { private View.OnClickListener mShortcutButtonClickListener = new View.OnClickListener() {

View file

@ -13,41 +13,39 @@
android:id="@+id/sc_h" android:id="@+id/sc_h"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" android:layout_gravity="center_horizontal"
android:text="@string/sc_h" android:text="@string/sc_h"
android:textStyle="italic" android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_gravity="center_horizontal" /> android:textStyle="italic" />
<fr.xgouchet.texteditor.ui.AdvancedEditText <FrameLayout
android:id="@+id/sc_text"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
style="@style/sc_text" /> android:layout_weight="1">
</LinearLayout> <fr.xgouchet.texteditor.ui.AdvancedEditText
android:id="@+id/sc_text"
style="@style/sc_text"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout <HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:orientation="vertical">
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left">
<LinearLayout
android:id="@+id/completions"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" /> android:layout_gravity="bottom|left">
</HorizontalScrollView>
<LinearLayout
android:id="@+id/completions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" />
</HorizontalScrollView>
</FrameLayout>
<HorizontalScrollView <HorizontalScrollView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|left"> android:layout_gravity="bottom|center_horizontal">
<LinearLayout <LinearLayout
android:id="@+id/shortcuts" android:id="@+id/shortcuts"