In previous article Customizing TextInputLayout – Part 1, we learnt how to customize TextInputLayout and how to apply hint color to it.
In previous article TextInputLayout – Material Design Support library Tutorial, we learn what is TextInputLayout and what is functionality of it. How TextInputLayout added a new functionality to EditText. Going to next step of TextInputLayout, in this article we are going to customize TextInputLayout.
In Android, there are two constants for providing height and width of any view. But if you provide any specific height to any view, it won’t be change until you change it dynamically or statically in layout file.
What if you want to provide MAX height to any view? Max height means, your view must not exceed the limit of provided height.
When I read this question http://stackoverflow.com/questions/8974088/how-to-create-a-resizable-rectangle-with-user-touch-events-on-android on StackOverFlow, I tried to develop a custom control overlay which behaves like it.
Read this article to make your own resizable rectangle overlay on touch in Android. This will help you in Image or map application.
Download Source : https://github.com/rathodchintan/rectangle-overlay
In this article we learn how to create Custom Toast in Android Studio.
A Toast provides simple feedback in a small popup about an operation. It only fills the amount of space required for the message and the current activity remains visible and interactive.