{"id":17887222,"url":"https://github.com/susmit-a/androidaceeditor","last_synced_at":"2025-03-22T16:30:45.457Z","repository":{"id":45831166,"uuid":"118899097","full_name":"Susmit-A/AndroidAceEditor","owner":"Susmit-A","description":"Ace editor for use in android apps","archived":false,"fork":false,"pushed_at":"2018-03-20T08:52:04.000Z","size":1810,"stargazers_count":18,"open_issues_count":4,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T13:32:03.878Z","etag":null,"topics":["android","android-library","hacktoberfest","hacktoberfest18","hacktoberfest2018","help-wanted","java","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Susmit-A.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-25T10:31:10.000Z","updated_at":"2025-02-19T18:56:28.000Z","dependencies_parsed_at":"2022-08-31T03:51:29.087Z","dependency_job_id":null,"html_url":"https://github.com/Susmit-A/AndroidAceEditor","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Susmit-A%2FAndroidAceEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Susmit-A%2FAndroidAceEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Susmit-A%2FAndroidAceEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Susmit-A%2FAndroidAceEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Susmit-A","download_url":"https://codeload.github.com/Susmit-A/AndroidAceEditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986293,"owners_count":20542990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","hacktoberfest","hacktoberfest18","hacktoberfest2018","help-wanted","java","javascript"],"created_at":"2024-10-28T13:23:02.687Z","updated_at":"2025-03-22T16:30:44.605Z","avatar_url":"https://github.com/Susmit-A.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndroidAceEditor\nThis is a text/code editor meant for integration as a modular component of the overall UI.\nThe aim is to provide a powerful editor that can be used just like any other View.\n\nAce text editor has been used for this purpose because it is feature-rich, fast, and easy to modify and embed in applications.\n\n\nPlease note that this library is currently supported on android versions 5.0(Lollipop) and above.\n\nIntegration with existing project\n---\n\n### Setup\n\n##### build.gradle (project)\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven {\n            url 'https://jitpack.io'\n        }\n    }\n}\n```\n\n#### build.gradle (app)\n```groovy\ndependencies {\n    ...\n    compile 'com.github.Susmit-A:AndroidAceEditor:0.5.0'\n}\n```\n\n### Basic Usage\n#### XML\n```xml\n...\n\u003ccom.susmit.aceeditor.AceEditor\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:id=\"@+id/editor\"/\u003e\n...\n```\n\n#### Java\nDemo Activity:\n```java\npublic class MainActivity extends Activity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n        editor = findViewById(R.id.editor);\n        \n        //call this to set up themes or modes at time of creation of view.\n        //If you are setting the theme or mode through another view's action,\n        //call setTheme and/or setMode directly\n        editor.setOnLoadedEditorListener(new OnLoadedEditorListener() {\n            @Override\n            public void onCreate() {\n                editor.setTheme(AceEditor.Theme.TERMINAL);\n                editor.setMode(AceEditor.Mode.C_Cpp);\n            }\n        });\n        \n        //Since a WebView is used for the content, you need to set the following listener to process the text\n        //It is also used to retrive other values, such as selected text or number of lines\n        editor.setResultReceivedListener(new ResultReceivedListener() {\n            @Override\n            public void onReceived(String text, int FLAG_VALUE) {\n                if(FLAG_VALUE == AceEditor.Request.VALUE_TEXT)\n                {\n                    Toast.makeText(MainActivity.this, \"Typed text:\\n\\n\" + text, Toast.LENGTH_SHORT).show();\n                }\n            }\n        }); \n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusmit-a%2Fandroidaceeditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusmit-a%2Fandroidaceeditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusmit-a%2Fandroidaceeditor/lists"}