feat: new project, project manager
This commit is contained in:
BIN
app/src/main/res/drawable-xhdpi/ic_sync.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_sync.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
@@ -57,6 +57,7 @@
|
||||
android:textColor="?android:textColorSecondary"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/source_path_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
@@ -116,6 +117,7 @@
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
android:id="@+id/app_config"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dp"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</com.stardust.theme.widget.ThemeColorToolbar>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<org.autojs.autojs.ui.main.scripts.ExplorerView
|
||||
<org.autojs.autojs.ui.explorer.ExplorerView
|
||||
android:id="@+id/script_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
android:textSize="16sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<org.autojs.autojs.ui.main.scripts.ExplorerView
|
||||
<org.autojs.autojs.ui.explorer.ExplorerView
|
||||
android:id="@+id/script_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
5
app/src/main/res/layout/divider_project_toolbar.xml
Normal file
5
app/src/main/res/layout/divider_project_toolbar.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<View xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:background="#d8d8d8"/>
|
||||
59
app/src/main/res/layout/explorer_project_toolbar.xml
Normal file
59
app/src/main/res/layout/explorer_project_toolbar.xml
Normal file
@@ -0,0 +1,59 @@
|
||||
<?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="48dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingTop="3dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:src="@drawable/ic_project"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/project_name"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:text="Project"
|
||||
android:textColor="#606366"
|
||||
android:textSize="18sp"/>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/run"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginRight="2dp"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:padding="6dp"
|
||||
android:src="@drawable/ic_play_arrow_white_48dp"
|
||||
android:tint="#606366"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/build"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginRight="2dp"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:padding="6dp"
|
||||
android:src="@drawable/ic_build_black_48dp"
|
||||
android:tint="#606366"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sync"
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_marginRight="2dp"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:padding="6dp"
|
||||
android:src="@drawable/ic_sync"
|
||||
android:tint="#606366"/>
|
||||
|
||||
</LinearLayout>
|
||||
25
app/src/main/res/layout/explorer_view.xml
Normal file
25
app/src/main/res/layout/explorer_view.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
||||
<org.autojs.autojs.ui.explorer.ExplorerProjectToolbar
|
||||
android:id="@+id/project_toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:foreground="?selectableItemBackground"
|
||||
android:layout_marginTop="8dp"
|
||||
app:cardElevation="0.97dp"
|
||||
app:cardUseCompatPadding="true"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/explorer_item_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
||||
@@ -4,7 +4,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<org.autojs.autojs.ui.main.scripts.ExplorerView
|
||||
<org.autojs.autojs.ui.explorer.ExplorerView
|
||||
android:id="@+id/script_file_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
@@ -8,8 +8,4 @@
|
||||
android:id="@+id/delete"
|
||||
android:title="@string/text_delete"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_build_apk"
|
||||
android:title="@string/text_build_apk"/>
|
||||
|
||||
</menu>
|
||||
@@ -11,4 +11,5 @@
|
||||
<color name="prefTextColorPrimary">#282C2F</color>
|
||||
<color name="divider_functions_keyboard">#f0f0f0</color>
|
||||
<color name="color_red">#ef5350</color>
|
||||
<color name="project_toolbar_color">#777777</color>
|
||||
</resources>
|
||||
|
||||
@@ -396,4 +396,5 @@
|
||||
<string name="text_project">项目</string>
|
||||
<string name="text_project_location">项目位置</string>
|
||||
<string name="text_new_project">新建项目</string>
|
||||
<string name="text_js_file">js文件</string>
|
||||
</resources>
|
||||
|
||||
@@ -57,4 +57,5 @@
|
||||
|
||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user