Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ We welcome contributions! Please follow these steps:

## 📜 License

Distributed under the GPL-v3. See [LICENSE](LICENSE) for more information.
Distributed under the GNU GPL-3.0. See [LICENSE](LICENSE) for more information.
72 changes: 36 additions & 36 deletions main/src/main/res/layout/activity_editor.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="match_parent"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:id="@+id/drawer_layout">
android:layout_height="match_parent">

<RelativeLayout
android:id="@+id/main_content"
android:layout_height="match_parent"
android:layout_width="match_parent">
android:layout_width="match_parent"
android:layout_height="match_parent">

<com.google.android.material.appbar.MaterialToolbar
android:layout_height="?attr/actionBarSize"
android:id="@+id/toolbar"
android:layout_width="match_parent"
app:title="@string/app_name"
android:id="@+id/toolbar" />
android:layout_height="?attr/actionBarSize"
app:title="@string/app_name" />

<RelativeLayout
android:layout_height="match_parent"
android:id="@+id/tabs_pager"
android:layout_width="match_parent"
android:layout_below="@id/toolbar"
android:id="@+id/tabs_pager">
Expand Down Expand Up @@ -51,54 +50,55 @@
android:src="@drawable/redo" />
</RelativeLayout>
<androidx.viewpager2.widget.ViewPager2
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_below="@id/tabs_undo_redo"
android:id="@+id/view_pager" />
<include
android:id="@+id/empty_editor"
android:layout_height="match_parent"
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_below="@+id/toolbar"
layout="@layout/empty_editor_layout" />
android:layout_height="match_parent"
android:layout_below="@id/tabs_undo_redo"
android:id="@+id/view_pager" />
<include
android:id="@+id/empty_editor"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_below="@+id/toolbar"
layout="@layout/empty_editor_layout" />

</RelativeLayout>

</RelativeLayout>

<com.google.android.material.navigation.NavigationView
android:layout_height="match_parent"
android:id="@+id/nav"
android:layout_width="wrap_content"
android:layout_gravity="start"
android:id="@+id/nav">
android:layout_height="match_parent"
android:layout_gravity="start">

<RelativeLayout
android:layout_height="match_parent"
android:layout_width="wrap_content">
android:layout_width="wrap_content"
android:layout_height="match_parent">

<com.google.android.material.navigationrail.NavigationRailView
android:layout_height="match_parent"
android:id="@+id/nav_rail"
android:layout_width="60dp"
android:layout_height="match_parent"
app:menu="@menu/navigation_rail"
app:menuGravity="bottom"
android:id="@+id/nav_rail" />
app:menuGravity="bottom" />

<TextView
android:layout_height="wrap_content"
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_toEndOf="@+id/nav_rail"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:textSize="25sp"
android:id="@+id/title"
android:text="Title" />
android:layout_toEndOf="@+id/nav_rail"
android:text="Title"
android:textSize="25sp" />

<FrameLayout
android:layout_height="match_parent"
android:id="@+id/nav_content"
android:layout_width="match_parent"
android:layout_toEndOf="@+id/nav_rail"
android:layout_height="match_parent"
android:layout_below="@+id/title"
android:id="@+id/nav_content"
android:padding="8dp" />
android:layout_toEndOf="@+id/nav_rail"
>
</RelativeLayout>
</com.google.android.material.navigation.NavigationView>

Expand Down
17 changes: 8 additions & 9 deletions main/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout 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">
Expand All @@ -17,26 +16,26 @@
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_below="@id/toolbar"
android:gravity="end|center_vertical"
android:orientation="horizontal"
android:padding="8dp"
android:gravity="end|center_vertical">
android:padding="8dp">

<ImageButton
android:id="@+id/new_project"
style="@style/Widget.AppCompat.ActionButton"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/plus"
style="@style/Widget.AppCompat.ActionButton"
android:contentDescription="@string/new_project" />
android:contentDescription="@string/new_project"
android:src="@drawable/plus" />
</LinearLayout>

<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider"
android:layout_below="@id/actions"
android:layout_marginTop="8dp" />
android:layout_marginTop="8dp"
android:background="?android:attr/listDivider" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/projects_recycler_view"
Expand Down
3 changes: 1 addition & 2 deletions main/src/main/res/layout/dialog_input_layout.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout 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="wrap_content">
Expand Down
50 changes: 25 additions & 25 deletions main/src/main/res/layout/dialog_new_file_layout.xml
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp">

<com.google.android.material.button.MaterialButtonToggleGroup
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:id="@+id/create_type"
app:singleSelection="true"
app:selectionRequired="true">
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:selectionRequired="true"
app:singleSelection="true">

<com.google.android.material.button.MaterialButton
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/file"
style="?attr/materialButtonOutlinedStyle"
android:text="@string/file"
android:id="@+id/file" />
<com.google.android.material.button.MaterialButton
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/file" />

<com.google.android.material.button.MaterialButton
android:id="@+id/folder"
style="?attr/materialButtonOutlinedStyle"
android:text="@string/folder"
android:id="@+id/folder" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/folder" />

</com.google.android.material.button.MaterialButtonToggleGroup>

<com.google.android.material.textfield.TextInputLayout
android:layout_height="wrap_content"
android:id="@+id/inputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/create_type"
android:layout_marginTop="16dp"
app:startIconDrawable="@drawable/plus"
android:id="@+id/inputLayout">
app:startIconDrawable="@drawable/plus">

<com.google.android.material.textfield.TextInputEditText
android:layout_height="wrap_content"
android:id="@+id/input"
android:layout_width="match_parent"
android:id="@+id/input" />
android:layout_height="wrap_content" />

</com.google.android.material.textfield.TextInputLayout>

<TextView
android:layout_height="wrap_content"
android:id="@+id/errorMessage"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="wrap_content"
android:layout_below="@+id/inputLayout"
android:textSize="16sp"
android:textColor="?attr/colorError"
android:layout_marginTop="16dp"
android:id="@+id/errorMessage" />
android:textColor="?attr/colorError"
android:textSize="16sp"
android:visibility="gone" />

</RelativeLayout>
24 changes: 11 additions & 13 deletions main/src/main/res/layout/empty_projects_recycler_layout.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
<?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_height="match_parent"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">

<TextView
android:layout_height="wrap_content"
android:id="@+id/app_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:textSize="20sp"
android:id="@+id/app_name"
android:textStyle="bold"
android:text="@string/app_name" />

android:textStyle="bold" />

<TextView
android:layout_height="wrap_content"
android:id="@+id/you_no_have_projects"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/you_no_have_projects"
android:textSize="17sp"
android:id="@+id/you_no_have_projects"
android:textStyle="italic"
android:text="@string/you_no_have_projects" />
android:textStyle="italic" />

</LinearLayout>
4 changes: 1 addition & 3 deletions main/src/main/res/layout/fragment_file_tree.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:id="@+id/swipe_refresh">
Expand Down
48 changes: 22 additions & 26 deletions main/src/main/res/layout/item_project.xml
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="wrap_content"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="?attr/selectableItemBackground"
android:clickable="true">
android:clickable="true"
android:gravity="center_vertical"
android:orientation="horizontal">

<ImageView
android:layout_height="50dp"
android:layout_width="50dp"
android:src="@drawable/folder"
android:layout_alignParentStart="true"
android:id="@+id/icon"
android:padding="4dp" />
android:layout_width="30dp"
android:layout_height="match_parent"
android:layout_marginStart="12dp"
android:importantForAccessibility="no"
android:src="@drawable/folder" />

<TextView
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_toEndOf="@id/icon"
android:layout_toStartOf="@id/more"
android:paddingEnd="8dp"
android:textSize="20sp"
android:paddingStart="8dp"
android:layout_weight="1"
android:maxLines="2"
android:paddingTop="8dp"
android:id="@+id/name"
android:text="Project name" />
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:textSize="20sp" />

<ImageButton
android:layout_height="50dp"
android:layout_width="50dp"
android:src="@drawable/more"
android:contentDescription="@string/more"
android:layout_alignParentEnd="true"
android:id="@+id/more"
style="@style/Widget.AppCompat.ActionButton"
android:id="@+id/more" />
android:layout_width="45dp"
android:layout_height="match_parent"
android:contentDescription="@string/more"
android:src="@drawable/more" />

</RelativeLayout>
</LinearLayout>
12 changes: 6 additions & 6 deletions main/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Web Android IDE</string>
<string name="you_no_have_projects">You no have projects</string>
<string name="you_no_have_projects">You have no projects</string>
<string name="new_project">New project</string>
<string name="create_project">Create project</string>
<string name="project_name">Project name</string>
<string name="project_name_cannot_be_empty">Project name cannot be empty</string>
<string name="project_successful_created">Project successful created</string>
<string name="project_name_cannot_be_empty">Project name can\'t be empty</string>
<string name="project_successful_created">Project successfully created</string>
<string name="failed_to_create_project">Failed to create project</string>
<string name="project_already_exists">Project already exists</string>
<string name="cancel">Cancel</string>
<string name="more">More</string>
<string name="remove">Remove</string>
<string name="create">Create</string>
<string name="create">Create</string>
<string name="invalid_filename">Invalid name</string>
<string name="new_file_folder">New File/Folder</string>
<string name="file">File</string>
Expand All @@ -21,8 +21,8 @@
<string name="create_file">Create file</string>
<string name="rename_file">Rename file</string>
<string name="rename_folder">Rename folder</string>
<string name="folder_name_cannot_be_empty">Folder name cannot be empty</string>
<string name="file_name_cannot_be_empty">File name cannot be empty</string>
<string name="folder_name_cannot_be_empty">Folder name can\'t be empty</string>
<string name="file_name_cannot_be_empty">File name can\'t be empty</string>
<string name="folder_name">Folder name</string>
<string name="folder">Folder</string>
<string name="file_already_exists">File already exists</string>
Expand Down
Loading
Loading