Tag: android studio
-
Language Injections in Android Studio / IntelliJ IDEA 💉
Android Studio is a powerful IDE with a multitude of features that I’ll probably never discover. However, when I do discover a feature of the IDE that I’ve been dreaming about, I get irrationally excited about it (and often times write a blog post such as this one). One feature that really piqued my interest…
-
Getting Started with the Motion Editor in Android Studio 4.0
Android Studio 4.0 has been released in the stable channel! 🥳 What does this mean for us? Well, the new Motion Editor is in Android Studio 4.0 and if you are someone who prefers to use the stable version of tooling, this is probably your first look at the Motion Editor. In this blog post,…
-
42MB to display account information?! Use the Android APK Analyzer to reduce your APK size!
After looking around at a few Android applications, I realised that there are many developers who don’t know about a great tool in Android Studio — the Android APK Analyzer. I cringe when I go to download a basic application (most of these apps are really simple) and the download size is over 40MB. Whenever…
-
Android ConstraintLayout — Build a layout from Scratch + Q&A — Sunday (26 Nov) 5PM GMT+2 [Live Stream]
I’ve seen quite a lot of misuse/misunderstanding of how to use ConstraintLayout practically. I was contemplating the best way to talk about these common “Don’ts” that I see people do. I’ve decided to try do something a bit different than a blog post. I’ll be live streaming on Sunday, 26 November at 5PM GMT+2 (that…
-
Introduction to Automated Android Testing – Part 6
In the previous 5 blog posts, we covered different aspects of building an Android app from scratch. We focused on including tests in the process. Here are the links to the previous posts: Post #1 – Why should we write tests? Post #2 – Set up your app for testing Post #3 – Creating API…
-
How to create a group of File Templates in Android Studio – Part 3
Update – 24 May 2021: The solution described in this blog post is now outdated – yay! See the official solution from IntelliJ. This works in Android Studio Artic Fox and above – https://www.jetbrains.com/help/idea/templates-with-multiple-files.html For historical purposes – I’ve left the original post below. ————————– In the previous two posts, we looked at creating custom…
-
ConstraintLayout 101 & the new Layout Builder in Android Studio
What is ConstraintLayout? ConstraintLayout is a new type of layout that you can use in your Android App, it is compatible down to API level 9 and is part of the support library. Its aim is to reduce layout hierarchies (and improve performance of layouts) and it also reduces the complexity of trying to work…
-
How to create your own Live Templates in Android Studio/IntelliJ – Part 2
In the last post we looked at how to create a File Template in Android Studio. In this post we will look at Live Templates and how to make your own. Live templates are “frequently-used or custom code constructs that you can insert into your source code file quickly, efficiently and accurately.”
-
How to make your own File Templates in Android Studio – Part 1
I have recently discovered something which is currently making my life easier at the moment: Custom file templates. What is a file template? A file template is a source file that already contains some code to get you started. In this example, we are going to look at creating a file template for a RecyclerView adapter implementation which is…