{"id":21278709,"url":"https://github.com/pranaypatel512/androidlivetemplates","last_synced_at":"2025-07-11T08:33:25.449Z","repository":{"id":59956339,"uuid":"209861735","full_name":"pranaypatel512/AndroidLiveTemplates","owner":"pranaypatel512","description":" :rocket: A curated android templates to make android development more easy and fast :battery: !","archived":false,"fork":false,"pushed_at":"2020-05-22T06:13:06.000Z","size":14544,"stargazers_count":142,"open_issues_count":0,"forks_count":14,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-05-02T03:09:31.951Z","etag":null,"topics":["android","android-studio","android-studio-live-templates","android-studio-settings"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pranaypatel512.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-20T18:59:53.000Z","updated_at":"2024-04-25T20:49:57.000Z","dependencies_parsed_at":"2022-09-25T10:25:45.497Z","dependency_job_id":null,"html_url":"https://github.com/pranaypatel512/AndroidLiveTemplates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranaypatel512%2FAndroidLiveTemplates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranaypatel512%2FAndroidLiveTemplates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranaypatel512%2FAndroidLiveTemplates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranaypatel512%2FAndroidLiveTemplates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranaypatel512","download_url":"https://codeload.github.com/pranaypatel512/AndroidLiveTemplates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225708273,"owners_count":17511635,"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-studio","android-studio-live-templates","android-studio-settings"],"created_at":"2024-11-21T10:15:50.495Z","updated_at":"2024-11-21T10:15:51.199Z","avatar_url":"https://github.com/pranaypatel512.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![banner](./images/live_template_image_feature.png) \n-------------------------------------------------------\n\n# AndroidLiveTemplates\n\n :rocket: A curated android templates to make android development more easy and fast:battery:!\n \n### :bulb: Goal \n\nThe main idea behind this repo is to share basic android development template which helps developers to write less code.\n\n### :hammer: How to use:\n\n**Step 1:** First download latest AndroidLiveTemplates from [Live_templates_android.zip](https://github.com/pranaypatel512/AndroidLiveTemplates/blob/master/Live_templates_android.zip?raw=true)\n\n**Step 2:** Open AndroidStudio and Choose menu **File** \u003e and select **Import Settings...** from the menu.\n\n**Step 3:** Specify live template configuration path by selection **Live_templates_android.zip** file.\n\n**Step 4:** Now select the **Live templates** checkbox and click OK.\n          \n**Step 5:** After restarting AndroidStudio you will get the all templates at **Live Templates** by navigating\n                  **File** \u003e **Settings** \u003e **Editor** \u003e **Live Templates**\n                  \n * **[Video] Live template setup** : https://youtu.be/QDA4tWGsIIs\n\n\n### :book: Example:\n\nWe have added templates in individual templates group like AndroidManifest, AndroidXmlLayoutTemplates, AndroidGradle, AndroidXmlMenu etc.\n\n**1. AndroidXmlLayoutTemplates**\n\n| Template Name   \t| Purpose       \t| Properties |\n|-----------------\t|---------------\t|------------|\n| center_parent    | Set view in the center of parent in the ConstraintLayout |app:layout_constraintStart_toStartOf=\"parent\" app:layout_constraintEnd_toEndOf=\"parent\" app:layout_constraintTop_toTopOf=\"parent\" app:layout_constraintBottom_toBottomOf=\"parent\"\n| center_vertical  | Set vertical constraint on view | app:layout_constraintTop_toTopOf=\"@+id/VIEW_ID\" app:layout_constraintBottom_toBottomOf=\"@+id/VIEW_ID\"\n| center_vertical_parent  | Set vertical constraint on view with parent | app:layout_constraintStart_toStartOf=\"parent\" app:layout_constraintEnd_toEndOf=\"parent\"\n| center_horizontal  |  Set horizontal constraint on view | app:layout_constraintStart_toStartOf=\"@+id/VIEW_ID\" app:layout_constraintEnd_toEndOf=\"@+id/VIEW_ID\"\n| center_horizontal_parent  | Set horizontal constraint on view with parent | app:layout_constraintStart_toStartOf=\"parent\" app:layout_constraintEnd_toEndOf=\"parent\"\n\nFor more templates checkout [AndroidXmlLayoutTemplates](https://github.com/pranaypatel512/AndroidLiveTemplates/wiki#1-androidxmllayouttemplates) in wiki.\n\n**2. AndroidManifest**\n\n| Template Name   \t| Purpose       \t| Properties |\n|-----------------\t|---------------\t|------------|\n| permission_storage | Add read/write permissioin for external storage  | \u003c uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/\u003e                \u003c uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/\u003e\n| permission_location | Add location permissioins in manifest  | \u003c uses-permissions android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/\u003e \u003c uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/\u003e\n\nFor more templates checkout [AndroidManifest](https://github.com/pranaypatel512/AndroidLiveTemplates/wiki#2-androidmanifest) in wiki.\n\n\n**3. AndroidGradle**\n\n| Template Name   \t| Purpose       \t| Properties |\n|-----------------\t|---------------\t|------------|\n| buildTypes | Default buildTypes setup in gradle with release and debug  | buildTypes { release { minifyEnabled false ...} debug { minifyEnabled false ...} }\n\nFor more templates checkout [AndroidGradle](https://github.com/pranaypatel512/AndroidLiveTemplates/wiki#3-androidgradle) in wiki.\n\n\n* **Live template usages guide** : https://youtu.be/35D7FyjGRxM\n\n                  \n### Screenshots\n| Center in parent                                                                | \n| ------------------------------------------------------------------------------- | \n| \u003cimg src=\"./images/example_center_parent.gif\" height=\"500\" alt=\"Screenshots\"/\u003e  |\n-----------------------------------------------------------------------------------\n| Android menu setup                                                              |\n| ------------------------------------------------------------------------------- |\n| \u003cimg src=\"./images/example_menu.gif\" height=\"500\" alt=\"Screenshots\"/\u003e           |\n-----------------------------------------------------------------------------------\n| Gradle build config setup                                                              |\n| ------------------------------------------------------------------------------- |\n| \u003cimg src=\"./images/build_type.gif\" height=\"500\" alt=\"Screenshots\"/\u003e             |\n-----------------------------------------------------------------------------------\n\n### :heavy_plus_sign: Adding more templates!\n\n**we are Welcoming PR!**\n\n**Step 1:** Add new template(s) in your android studio aftert importing latest [Live_templates_android.zip](https://github.com/pranaypatel512/AndroidLiveTemplates/blob/master/Live_templates_android.zip?raw=true)\n\n**Step 2:** Export the setting with only \"Live Templates\" section.\n         **File** -\u003e **Exports Settings** -\u003e Click on **Select None** to deselect other settings. -\u003e Select **Live Templates(schemes)**\n\n![Exports Settings](./images/export_settings.png)\n         \n**Step 3:** Upload latest settings file with new branch and Send PR.\n\n Check out contribution guidelines [CONTRIBUTING.md](https://github.com/pranaypatel512/AndroidLiveTemplates/blob/master/CONTRIBUTING.md) \n\n### :movie_camera: Videos guide\n\n* **Live template setup** : https://youtu.be/QDA4tWGsIIs\n* **Live template usages** : https://youtu.be/35D7FyjGRxM\n\n### Blog\n\nCheckout AndroidLiveTemplate blog post [HERE](https://proandroiddev.com/add-custom-live-templates-in-android-studio-11b59dd0284d) by [Jovche Mitrejchevski](https://github.com/mitrejcevski)\n\n### Built With\n\n* [Android Studio](https://developer.android.com/studio/index.html) - The Official IDE for Android\n\n### :envelope: Get in touch!\n\n* [@Twitter](https://twitter.com/pranatpatel_)\n\n* https://pranaypatel512.github.io/\n\n### Find this project useful ? ❤️\n\nSupport it by clicking the ⭐️ button on the upper right of this page. ✌️\n\n### License\n\n```\n   Copyright © 2019 Pranay Patel\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranaypatel512%2Fandroidlivetemplates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranaypatel512%2Fandroidlivetemplates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranaypatel512%2Fandroidlivetemplates/lists"}