Android State list generator
- Home
- chevron_right
- Tools
- chevron_right
- Android State list generator
New in android state list generator version 2:
* added all supported android states
* added checkboxes to choose custom states combination
* added description to all states and grouped the states by Android API level
States
For all API levels:
Pressed: | Focused: | Selected: | Checkable: |
This item should be used when the object is pressed (such as when a button is touched/clicked) | This item should be used when the object has input focus (such as when the user selects a text input) | This item should be used when the object is the current user selection when navigating with a directional control (such as when navigating through a list with a d-pad) | This item should be used when the object is checkable; “false” if this item should be used when the object is not checkable. (Only useful if the object can transition between a checkable and non-checkable widget.) |
Checked: | Enabled: | Window Focused: | |
This item should be used when the object is checked | This item should be used when the object is enabled (capable of receiving touch/click events) | This item should be used when the application window has focus (the application is in the foreground) |
For API level 11+:
Activated: |
This item should be used when the object is activated as the persistent selection (such as to “highlight” the previously selected list item in a persistent navigation view) |
For API level 14+:
Hovered: |
This item should be used when the object is being hovered by a cursor |
Please input drawable names below (just the drawable names, without extension like .png):
Results:
Related
Search In Blog
Want to donate?
Categories
Recent Posts: My Android Solutions
Android Parse JSON file from Assets
If you ever wondered how to read and parse a simple JSON file stored in the assets directory of your Android project, here is a way to do it.
Android Simple Section RecylerView
In this tutorial I will create a simple Sectioned RecyclerView that will show 2 sections and a few items in each section and how to move an item from one section to another. Note: For RecyclerView I used AndroidX imports and not android.support.v7.widget.RecyclerView! Setup We need to import the recycler view from AndroidX. The build.gradle…
Android Squared CardView
Recently, I had to add a perfect square CardView and I wanted to achieve this without hardcoding its width and height. I happily discovered the power of ConstraintLayout and this is how I managed to create a perfect square which should work on every dimension. In my project I created a RecyclerView with 2 columns,…