• Stars
    star
    136
  • Rank 262,499 (Top 6 %)
  • Language
  • License
    Apache License 2.0
  • Created almost 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿš€ A curated android templates to make android development more easy and fast ๐Ÿ”‹ !

banner

AndroidLiveTemplates

๐Ÿš€ A curated android templates to make android development more easy and fast๐Ÿ”‹!

๐Ÿ’ก Goal

The main idea behind this repo is to share basic android development template which helps developers to write less code.

๐Ÿ”จ How to use:

Step 1: First download latest AndroidLiveTemplates from Live_templates_android.zip

Step 2: Open AndroidStudio and Choose menu File > and select Import Settings... from the menu.

Step 3: Specify live template configuration path by selection Live_templates_android.zip file.

Step 4: Now select the Live templates checkbox and click OK.

Step 5: After restarting AndroidStudio you will get the all templates at Live Templates by navigating File > Settings > Editor > Live Templates

๐Ÿ“– Example:

We have added templates in individual templates group like AndroidManifest, AndroidXmlLayoutTemplates, AndroidGradle, AndroidXmlMenu etc.

1. AndroidXmlLayoutTemplates

Template Name Purpose Properties
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"
center_vertical Set vertical constraint on view app:layout_constraintTop_toTopOf="@+id/VIEW_ID" app:layout_constraintBottom_toBottomOf="@+id/VIEW_ID"
center_vertical_parent Set vertical constraint on view with parent app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"
center_horizontal Set horizontal constraint on view app:layout_constraintStart_toStartOf="@+id/VIEW_ID" app:layout_constraintEnd_toEndOf="@+id/VIEW_ID"
center_horizontal_parent Set horizontal constraint on view with parent app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"

For more templates checkout AndroidXmlLayoutTemplates in wiki.

2. AndroidManifest

Template Name Purpose Properties
permission_storage Add read/write permissioin for external storage < uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> < uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
permission_location Add location permissioins in manifest < uses-permissions android:name="android.permission.ACCESS_COARSE_LOCATION"/> < uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

For more templates checkout AndroidManifest in wiki.

3. AndroidGradle

Template Name Purpose Properties
buildTypes Default buildTypes setup in gradle with release and debug buildTypes { release { minifyEnabled false ...} debug { minifyEnabled false ...} }

For more templates checkout AndroidGradle in wiki.

Screenshots

Center in parent
Screenshots

Android menu setup
Screenshots

Gradle build config setup
Screenshots

โž• Adding more templates!

we are Welcoming PR!

Step 1: Add new template(s) in your android studio aftert importing latest Live_templates_android.zip

Step 2: Export the setting with only "Live Templates" section. File -> Exports Settings -> Click on Select None to deselect other settings. -> Select Live Templates(schemes)

Exports Settings

Step 3: Upload latest settings file with new branch and Send PR.

Check out contribution guidelines CONTRIBUTING.md

๐ŸŽฅ Videos guide

Blog

Checkout AndroidLiveTemplate blog post HERE by Jovche Mitrejchevski

Built With

โœ‰๏ธ Get in touch!

Find this project useful ? โค๏ธ

Support it by clicking the โญ๏ธ button on the upper right of this page. โœŒ๏ธ

License

   Copyright ยฉ 2019 Pranay Patel

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

More Repositories

1

KotlinRoomDbExample

Basic ToDo App using Room database and RxJava in Kotlin.
Kotlin
29
star
2

PlaceAutocomplete

Using GooglePlace to get place details. Google provide different way to implement Google Place API to get place details.Different way are like PlaceAutocompleteFragment , PlaceAutocompleteActivity . These all are implement to get place details using Google place API.
Java
21
star
3

FlutterLogin

A new Flutter application which demonstrate login and signup UI
Dart
18
star
4

CameraXDemo

CameraXDemo - Demonstrate CameraX APIs like Preview, Capture and Analysis.
Kotlin
17
star
5

JetKite

๐Ÿช JetKite - Leaning purpose Zerodha kite clone Android app built with โค using Jetpack Compose
Kotlin
16
star
6

RxRetroAPICall

API call example using Retrofit and RxJava2
Java
16
star
7

BottomNavigationView

Bottom Navigation Example
Java
14
star
8

MLKitTextRecognize

Detect text using Firebase ML Kit Text Recognition API
Kotlin
14
star
9

RxLoginSignUp

Login/SignUp screen with form validation using RxJava and RxAndroid.
Java
12
star
10

GitCommands

Here is a list of some basic Git commands to get you going with Git
11
star
11

KotlinRetrofitAPICall

Demonstrate Retrofit rest API call using RxJava in kotlin
Kotlin
10
star
12

LastKnownLocation

Demonstrate how to access current location using Fused Location API in Android
Java
7
star
13

KotlinRecyclerView

Recyclerview example using kotlin
Kotlin
7
star
14

AndroidONotificationChannel

Android O NotificationChannels example
Java
6
star
15

APODNasa

Astronomy Picture of the Day Nasa(APOD) media listing and show picture details. Built to learn and use of Latest Android development libs using Coroutines, Flow, Dagger-Hilt, Architecture Components, MVVM, Room, Retrofit, Material Guideline) https://api.nasa.gov/
Kotlin
6
star
16

KotlinAnkoDialogs

Kotlin Anko - common dialogs using kotlin anko library
Kotlin
5
star
17

KotlinLastKnownLocation

Demonstrate how to access current location using Fused Location API in kotlin (New way!)
Kotlin
5
star
18

ManageGradleDemo

Demonstrate how we can manage gradle dependencies
Kotlin
3
star
19

AccountKitDemo

Account Kit for Android: Login with SMS (working)
Kotlin
3
star
20

Material3Example

Material3 example app to showcase theming related to Material3. https://m3.material.io/
Kotlin
3
star
21

AppShortCut

Android 7.1 App Shortcuts API Example
Java
3
star
22

KotlinBootcampCourse

Practice examples for Kotlin from Udacity Kotlin BootCamp Course
Kotlin
3
star
23

FirstChar

Example to create Image bitmap using first character of string.
Java
2
star
24

FirebaseAppDistributionDemo

Example for Firebase App Distribution using Android Gradle plugin
Kotlin
2
star
25

PythonLearning

Getting started examples for python
Python
2
star
26

SharedElementTransitions

Java
1
star
27

KotlinSharedPreferencesHelper

SharedPreferencesHelper for kotlin
Kotlin
1
star
28

DayNightTheme

AppCompat now has a new theme family: Theme.AppCompat.DayNight.
Kotlin
1
star
29

FabricTools

Fabric tools examples
Java
1
star
30

MessengerDemo

Java
1
star
31

DragableView

See how to drag and ImageView in android on touch drag event.
Java
1
star
32

AndroidOAutoSizeTextView

Android O Autosizing TextViews
Java
1
star
33

KotlinAnimatedMenuItems

Kotlin Example of vector drawable for animated menu items.
Kotlin
1
star
34

CalendarKT

Add android calendar entry in simple way!
Kotlin
1
star