feat: new project, project manager

This commit is contained in:
hyb1996
2018-09-18 17:30:57 +08:00
parent 36e9c9481a
commit c8d2a6e7a2
42 changed files with 747 additions and 166 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View 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"/>

View 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>

View 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>

View File

@@ -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"/>