All Projects → keyboardsurfer → Idea Live Templates

keyboardsurfer / Idea Live Templates

Licence: apache-2.0
An #androidDev collection of Live Templates for Android Studio

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Idea Live Templates

Android Kubernetes Blockchain
WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode. Refer to https://developer.ibm.com/patterns/category/blockchain/ for other blockchain code patterns.
Stars: ✭ 105 (-93.45%)
Mutual labels:  android-studio
Reel Search Android
Reel Search for Android is a UI/UX design for autocomplete action. It is a beautiful minimalistic addition to any use case.
Stars: ✭ 110 (-93.14%)
Mutual labels:  android-studio
Beatplayer
Music Player
Stars: ✭ 117 (-92.7%)
Mutual labels:  android-studio
Android code arbiter
针对Android Studio的源码扫描工具
Stars: ✭ 105 (-93.45%)
Mutual labels:  android-studio
App onboarding
In this tutorial I will be showing you how to create Onboarding screen in Android Studio from scratch without using any library.
Stars: ✭ 110 (-93.14%)
Mutual labels:  android-studio
Cameraxdemo
A sample camera app with CameraX API from Android Jetpack
Stars: ✭ 112 (-93.01%)
Mutual labels:  android-studio
Coursera Java For Android
Solutions for the course Java for Android
Stars: ✭ 94 (-94.14%)
Mutual labels:  android-studio
Awesome flutter ui
This repository demonstrates use of various widgets in flutter and tricks to create beautiful UI elements in flutter for Android and IOS
Stars: ✭ 120 (-92.51%)
Mutual labels:  android-studio
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (-93.14%)
Mutual labels:  android-studio
Tiktok
This is a demo app built using 'Hilt' a new dependency injection framework for Android along with ViewPager2 and ExoPlayer2.
Stars: ✭ 114 (-92.89%)
Mutual labels:  android-studio
Livesmashbar
An elegant looking and easy to use informative library with LiveData integration for Android.
Stars: ✭ 107 (-93.33%)
Mutual labels:  android-studio
Twittercompose
TwitterCompose is an Android application 📱 for showcasing Jetpack Compose for building declarative UI in Android.
Stars: ✭ 109 (-93.2%)
Mutual labels:  android-studio
Androidlivetemplates
🚀 A curated android templates to make android development more easy and fast 🔋 !
Stars: ✭ 114 (-92.89%)
Mutual labels:  android-studio
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (-93.45%)
Mutual labels:  android-studio
Geomapping With Unity Mapbox
Geomap is the virtualization of data that maps a Country. Mapbox Unity SDK gives data(Global map layers of Streets, Buildings, Elev, and Satellite) generating custom 3D worlds for Mobile VR/AR apps.
Stars: ✭ 118 (-92.64%)
Mutual labels:  android-studio
Is Engine
SFML C++ game engine that allows to create games on Web (HTML 5 - CSS 3), Android and PC
Stars: ✭ 94 (-94.14%)
Mutual labels:  android-studio
Android Styler
Android Studio / IDEA plugin that helps to create styles
Stars: ✭ 110 (-93.14%)
Mutual labels:  android-studio
Android Examples
[Examples] Simple basic isolated apps, for budding android devs.
Stars: ✭ 1,602 (-0.06%)
Mutual labels:  android-studio
Anychart Android
AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
Stars: ✭ 1,762 (+9.92%)
Mutual labels:  android-studio
Android Inappbilling
A sample which uses Google's Play Billing Library and it does InApp Purchases and Subscriptions.
Stars: ✭ 114 (-92.89%)
Mutual labels:  android-studio

What is this?

A collection of useful live templates that you can use within your AndroidStudio or IntelliJ IDEA installation.

I can haz?

All vanilla Android templates live within Android Studio since version 1.5. So if you're happy with the defaults there's no need for you to use this repository any more. Just install a recent version of Android Studio and you're all set.

If you want to make your own live templates this collection can be used as starting point. To get started, simply clone this repository to your Android Studio's config/templates folder.

JetBrains has you covered in finding the location of this folder.

Once you found it, cd into it, run git clone https://github.com/keyboardsurfer/idea-live-templates . and restart AndroidStudio.

Included live templates

the doc is generated by ./listCurrentTemplates

Android.xml

  • const: "Define android style int constant"
  • fbc: "findViewById with cast"
  • foreach: "Create a for each loop"
  • gone: "Set view visibility to GONE"
  • IntentView: "Creates an Intent with ACTION_VIEW"
  • key: "Key for a bundle"
  • newInstance: "create a new Fragment instance with arguments"
  • noInstance: "private empty constructor to prohibit instance creation"
  • rgS: "get a String from resources"
  • rouiT: "runOnUIThread"
  • sbc: "block comment for structuring code"
  • Sfmt: "String format"
  • starter: "Creates a static start(...) helper method to start an Activity"
  • Toast: "Create a new Toast"
  • ViewConstructors: "Adds generic view constructors"
  • visible: "Set view visibility to VISIBLE"
  • wrapIt: "adds a gradle wrapper task"

AndroidComments.xml

  • ccode: "code tag for javadoc"
  • cfalse: "puts false in a comment section"
  • clink: "link from within javadoc"
  • ctrue: "puts true in a comment section"
  • fixme: "adds // FIXME"
  • noop: "indicate that a method does not have any operations"
  • stopship: "adds // STOPSHIP"
  • todo: "adds // TODO"

AndroidExternal.xml

  • createObservable: "Create RxJava Observable"
  • Crouton: "Creates a new Crouton"
  • CroutonFragment: "Creates a new Crouton for display within a fragment"
  • CroutonShow: "Creates a new Crouton with Crouton.showText"
  • onEvent: "Adds onEvent method for eventbus"
  • onEventMainThread: "Adds onMainThreadEvent method for eventbus"

AndroidLog.xml

  • logd: "Log.d(TAG, String)"
  • loge: "Log.e(TAG, String, Exception)"
  • logi: "Log.i(TAG, String)"
  • logm: "Log method name and its arguments"
  • logr: "Log result of this method"
  • logt: "A static logtag with your current classname"
  • logw: "Log.w(TAG, String, Exception)"
  • wtf: "Log.wtf(TAG, String, Exception)"

AndroidParcelable.xml

  • Parcelable: "Create a parcelable block for your current class"
  • ParcelableEnum: "Create a parcelable block for your current enum"
  • ParcelableEnumTest: "Creates basic parcelable enum test methods"
  • ParcelBoolean: "writes a single boolean value to a parcel"
  • UnparcelBoolean: "reads a single boolean value from a parcel"
  • UnparcelIntArray: "Unparcels an int array"
  • UnparcelStringArray: "Unparcels a String array"

AndroidXML.xml

  • appNs: "adds application namespace"
  • lh: "android:layout_height="""
  • lhm: "android:layout_height="match_parent""
  • lhw: "android:layout_height="wrap_content""
  • lw: "android:layout_width="""
  • lwm: "android:layout_width="match_parent""
  • lww: "android:layout_width="wrap_content""
  • toolsNs: "adds tools namespace to Android xml file"

Contribution to this collection

If you want to add a core Android template, do so directly within the AOSP. The project the live templates live in is platform/tools/adt/idea. The path within the project is android/resources/liveTemplates.

The Android tools team provides further documentation as well as info on which branch to build.

If you want to supply a template that is not core Android but useful, follow this guide:

  1. Sign the CLA
  2. Fork the project
  3. Add your own live templates
  4. Run ./listCurrentTemplates.sh and insert the relevant output in the README.md
  5. Send a pull request
  6. Wait
  7. Profit

License

Copyright 2016, The Android Open Source Project

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for
additional information regarding copyright ownership. The ASF licenses this
file to you 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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].