{"id":19720906,"url":"https://github.com/piasy/live-template","last_synced_at":"2025-10-20T11:50:46.881Z","repository":{"id":75583069,"uuid":"64887751","full_name":"Piasy/live-template","owner":"Piasy","description":"AndroidStudio and Idea live templates.","archived":false,"fork":false,"pushed_at":"2016-08-04T00:30:33.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-29T21:39:22.813Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Piasy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-04T00:05:29.000Z","updated_at":"2023-01-31T08:58:38.000Z","dependencies_parsed_at":"2023-06-06T23:45:06.862Z","dependency_job_id":null,"html_url":"https://github.com/Piasy/live-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Piasy/live-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2Flive-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2Flive-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2Flive-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2Flive-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piasy","download_url":"https://codeload.github.com/Piasy/live-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2Flive-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280087870,"owners_count":26269717,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-11T23:12:54.481Z","updated_at":"2025-10-20T11:50:46.875Z","avatar_url":"https://github.com/Piasy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# live-template\n\nAndroidStudio and Idea live templates.\n\n## Credit\n\nMost of the templates are imported from:\n\n+ [ztelur/Android-Studio-live-template](https://github.com/ztelur/Android-Studio-live-template)\n+ [keyboardsurfer/idea-live-templates](https://github.com/keyboardsurfer/idea-live-templates)\n\nInstall script is based on [square/java-code-styles](https://github.com/square/java-code-styles)\n\n## template content\n\n### templates/Android.xml\n- **`IntentView`**: \"Creates an Intent with ACTION_VIEW\"\n- **`Sfmt`**: \"String format\"\n- **`Toast`**: \"Create a new Toast\"\n- **`ViewConstructors`**: \"Adds generic view constructors\"\n- **`const`**: \"Define android style int constant\"\n- **`fbc`**: \"findViewById with cast\"\n- **`foreach`**: \"Create a for each loop\"\n- **`gone`**: \"Set view visibility to GONE\"\n- **`key`**: \"Key for a bundle\"\n- **`newInstance`**: \"create a new Fragment instance with arguments\"\n- **`noInstance`**: \"private empty constructor to prohibit instance creation\"\n- **`rgS`**: \"get a String from resources\"\n- **`rouiT`**: \"runOnUIThread\"\n- **`sbc`**: \"block comment for structuring code\"\n- **`starter`**: \"Creates a static start(...) helper method to start an Activity\"\n- **`visible`**: \"Set view visibility to VISIBLE\"\n- **`wrapIt`**: \"adds a gradle wrapper task\"\n\n### templates/AndroidComments.xml\n- **`ccode`**: \"code tag for javadoc\"\n- **`cfalse`**: \"puts false in a comment section\"\n- **`clink`**: \"link from within javadoc\"\n- **`ctrue`**: \"puts true in a comment section\"\n- **`fixme`**: \"adds // FIXME\"\n- **`noop`**: \"indicate that a method does not have any operations\"\n- **`stopship`**: \"adds // STOPSHIP\"\n- **`todo`**: \"adds // TODO\"\n\n### templates/AndroidExternal.xml\n- **`cob`**: \"create a Observable\"\n- **`createObservable`**: \"Create RxJava Observable\"\n- **`csub`**: \"create a Subscriber\"\n- **`fmp1`**: \"flatmap with func1\"\n- **`fob`**: \"create observable by Observable.from\"\n- **`ft1`**: \"filter with func1\"\n- **`job`**: \"create observable by Observable.just\"\n- **`mp1`**: \"map with func1\"\n- **`na0`**: \"create an Action0 object\"\n- **`na1`**: \"create an Action1 object\"\n- **`obmain`**: \"observeOn(AndroidSchedulers.mainThread())\"\n- **`onEventMainThread`**: \"Adds onMainThreadEvent method for eventbus\"\n- **`onEvent`**: \"Adds onEvent method for eventbus\"\n- **`subio`**: \"subscribeOn(Schedulers.io())\"\n\n### templates/AndroidLog.xml\n- **`logd`**: \"Log.d(TAG, String)\"\n- **`loge`**: \"Log.e(TAG, String, Exception)\"\n- **`logi`**: \"Log.i(TAG, String)\"\n- **`logm`**: \"Log method name and its arguments\"\n- **`logr`**: \"Log result of this method\"\n- **`logt`**: \"A static logtag with your current classname\"\n- **`logw`**: \"Log.w(TAG, String, Exception)\"\n- **`wtf`**: \"Log.wtf(TAG, String, Exception)\"\n\n### templates/AndroidParcelable.xml\n- **`ParcelBoolean`**: \"writes a single boolean value to a parcel\"\n- **`ParcelableEnumTest`**: \"Creates basic parcelable enum test methods\"\n- **`ParcelableEnum`**: \"Create a parcelable block for your current enum\"\n- **`Parcelable`**: \"Create a parcelable block for your current class\"\n- **`UnparcelBoolean`**: \"reads a single boolean value from a parcel\"\n- **`UnparcelIntArray`**: \"Unparcels an int array\"\n- **`UnparcelStringArray`**: \"Unparcels a String array\"\n\n### templates/AndroidXML.xml\n- **`appNs`**: \"adds application namespace\"\n- **`lh`**: \"android:layout_height=\u0026quot;\u0026quot;\"\n- **`lhm`**: \"android:layout_height=\u0026quot;match_parent\u0026quot;\"\n- **`lhw`**: \"android:layout_height=\u0026quot;wrap_content\u0026quot;\"\n- **`lw`**: \"android:layout_width=\u0026quot;\u0026quot;\"\n- **`lwm`**: \"android:layout_width=\u0026quot;match_parent\u0026quot;\"\n- **`lww`**: \"android:layout_width=\u0026quot;wrap_content\u0026quot;\"\n- **`toolsNs`**: \"adds tools namespace to Android xml file\"\n\n### templates/AndroidXMLExtend.xml\n- **`LL`**: \"LInearyLayout\"\n- **`txall`**: \"all text property\"\n- **`txc`**: \"android:text_color=\u0026quot;\u0026quot;\"\n- **`txs`**: \"android:text_size=\u0026quot;\u0026quot;\"\n- **`txsc`**: \"text color and text size\"\n\n### templates/Java.xml\n- **`main`**: \"create main func\"\n- **`pln`**: \"System.out.println\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiasy%2Flive-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiasy%2Flive-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiasy%2Flive-template/lists"}