Today we finish creating a Gradle plugin that add default wrap_content width/height attributes to all views. Check previous post if you haven’t followed.
In previous post we created a basic Gradle plugin. And I realized that it’s easier just to write them in Android Studio, right in the modules build.gradle. And then you can move it to standalone project to build and release. What we’re going to do now is make all views to have a default wrap_content attribute.
In the previous post I created simple Android Studio plugin which displays quote of the day on IDE launch. Those are more single user use and not declared anywhere in project, which means that they’re not automatically installed for other users. Today let’s look at creating Gradle plugin.
Hi, If you want some Android Studio plugin which does not exist you probably were thinking about creating them by your own, but if you haven’t created those, it might seem like that’s too hard. It’s not. And since Android Studio/IDEA runs for JVM, we use Java or Kotlin. Let’s start with a setting up and creating a simple motivational quote poping up on IDE’s launch, then we’ll get into more complex stuff!