feat: functions keyboard
This commit is contained in:
15
app/src/main/res/drawable/bg_item_module.xml
Normal file
15
app/src/main/res/drawable/bg_item_module.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_selected="true">
|
||||
<shape>
|
||||
<solid android:color="#e5e5e5"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="#ffffff"/>
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
15
app/src/main/res/drawable/bg_item_property.xml
Normal file
15
app/src/main/res/drawable/bg_item_property.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_pressed="true">
|
||||
<shape>
|
||||
<solid android:color="#e5e5e5"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="@android:color/transparent"/>
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
11
app/src/main/res/drawable/divider_functions_view.xml
Normal file
11
app/src/main/res/drawable/divider_functions_view.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<size
|
||||
android:width="1dp"
|
||||
android:height="1dp"/>
|
||||
|
||||
<solid android:color="@color/divider_functions_keyboard"/>
|
||||
|
||||
</shape>
|
||||
@@ -139,7 +139,7 @@
|
||||
android:layout_alignParentBottom="true"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/functions"
|
||||
android:id="@+id/properties"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
@@ -156,9 +156,16 @@
|
||||
android:layout_above="@+id/symbol_bar"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@+id/functions"/>
|
||||
android:layout_toRightOf="@+id/properties"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<com.stardust.scriptdroid.ui.edit.keyboard.FunctionsKeyboardView
|
||||
android:id="@+id/functions_keyboard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.stardust.scriptdroid.ui.widget.EWebView
|
||||
@@ -166,8 +173,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"/>
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
30
app/src/main/res/layout/functions_keyboard_view.xml
Normal file
30
app/src/main/res/layout/functions_keyboard_view.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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:orientation="vertical">
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/divider_functions_keyboard"/>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/properties"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#fafafa"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/divider_functions_keyboard"/>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/module_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
12
app/src/main/res/layout/item_module.xml
Normal file
12
app/src/main/res/layout/item_module.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/bg_item_module"
|
||||
android:gravity="center"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingRight="12dp"
|
||||
android:textColor="#616161"
|
||||
android:textSize="16sp">
|
||||
|
||||
</TextView>
|
||||
10
app/src/main/res/layout/item_property.xml
Normal file
10
app/src/main/res/layout/item_property.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:background="@drawable/bg_item_property"
|
||||
android:gravity="center"
|
||||
android:textColor="#414141"
|
||||
android:textSize="@dimen/textSize_item_property">
|
||||
|
||||
</TextView>
|
||||
@@ -9,4 +9,5 @@
|
||||
<color name="color_j">#99CC99</color>
|
||||
<color name="prefTextColorSecondary">#9DA0A2</color>
|
||||
<color name="prefTextColorPrimary">#282C2F</color>
|
||||
<color name="divider_functions_keyboard">#f0f0f0</color>
|
||||
</resources>
|
||||
|
||||
@@ -7,4 +7,6 @@
|
||||
<dimen name="script_and_folder_list_divider_left_margin">0dp</dimen>
|
||||
<dimen name="script_and_folder_list_divider_right_margin">0dp</dimen>
|
||||
<dimen name="fab_margin">16dp</dimen>
|
||||
<dimen name="padding_item_property">8dp</dimen>
|
||||
<dimen name="textSize_item_property">14sp</dimen>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user