Skip to content

Instantly share code, notes, and snippets.

@a11n
Last active November 30, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a11n/70ee256f377c79be39f6 to your computer and use it in GitHub Desktop.
Save a11n/70ee256f377c79be39f6 to your computer and use it in GitHub Desktop.
Android Studio for Experts

#Android Studio for Experts (Android Dev Summit 2015) https://www.youtube.com/watch?v=Y2GC6P5hPeA

##Completion

  • Use TAB instead of ENTER for replacement
  • CTRL+SHIFT+SPACE for smarter completion (chain calls); pressing twice for even smarter completion

##General Stuff

###Selection

  • Use ALT+UP or ALT+DOWN for AST-Selection

###Intention Actions

  • Detects context

###Live Templates

  • fori; works also postfix (list.fori)
  • logi, logt, logm, logr

###Filter search / Navigation

  • invisible search in almost every list in the IDE
  • "just start typing and see what happens"

###Structural search / replace

  • placeholders $something$
  • possible to add as inspection (alternative for obvious Lint checks; even with quick fix)

###Design time attributes

  • use "tools" namespace
  • don't have effect at runtime

###Private resources

  • resourcePrefix in build.gradle

###Resource shrinking

  • build.gradle -> resourceShrinking true
  • strictMode="strict" + tools:keep/tools:discard

##Debugger ###Stacktraces

  • Analyze Stacktrace (Search via CMD+SHIFT+A)

###Variable view

  • View Bitmap
  • View as -> Android Typed Integer
  • Customize Date View
  • Expression Evaluation
  • Conditional breakpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment