Alright, jcup, bars are nice but I'd like to add some crazy colors here. I want to show you how to create a list of items that look good and is really easy to implement. Both in Figma and in Android Studio. It's also very popular and ready to use in most of the apps.
We are going to add new colors, FAB, swag and some successes. I will show you my idea of replacing text with icons too!
HOW IT WORKS
My Wins allow you to store your achievements so you can read them whenever you want to. I've got to tell you how this app should work and show...
- Every item (success) contains title, category, importance, start date, end date, and description
- Only the description can be empty and is not visible in Main Activity list
- Categories and importance have different colors to be easier to recognize
- Importances huge, big, medium are showed using circles
- One circle = small, 4 circles = huge success and so on
- Shit, it's getting boring but everything below is more interesting! ;D
Now it's time for serious stuff.
- Create a rectangle for a new item. I recommend height of 98px and width of 394px. It's our CardView.
- Center it horizontally and put below app bar leaving few px of space between them
- Set rectangle color to white (#FFFFFF)
- You can't see it because the background is white too. You have to create new rectangle that fills the white box and set its color to almost white (#F2F2F2)
- Change background position in files to be under FAB and CardView. It will make it stay back
- Add shadow effect and set it to (1, 0, 4, 12%)
Category and Title
- Add category icon 40 x 40px (it's default small FAB size, pick the icon from the material palette). Center it vertically. Leave 16px at left.
- Create category text centered 4px below icon and set its size to 14px
- Add item name and set its size to 24 ( Those size proposals in box that you can expand are based on material design rules. It is better to use them instead of creating custom like 19)
- Set text color to primary text (#212121) and center it vertically. Keep it 24px on the right of category icon
- Add item category name centered 4px under icon (font size 14px)
- Group category name and icon to Category
Importance and Date
- Add huge importance level ( create three 8 x 8px circles using eclipse tool. Keep distance between circles- 4px. Center it vertically. Group them and name it "Importance"
- Add date in right top corner 20px top, 24px right margins (14px font size, secondary_text color)
Duplicate and Order
- Create new groups. Group all item components to Item1 and duplicate it to fill the whole window. Leave 8px space between items (hold alt and drag n drop to duplicate)
- Keep Bars at the beginning, then FAB, and your background at the end of frame in files
- You can group all items and call it "Items"
New Colors and Icons
I want to set colors for category and importance that will depend on value. For example categories:
- video- red
- business- green
- adventure- orange
Importance would be like:
- huge- red
- big- orange
- medium- green
- small- gray
All icons that I used you can find on material palette icons. Edit all item variables that you want to change before setting colors.
Let's find them!
So you've got the idea but now we have to pick best colors. Here come coolors. It's simple and easy to use. Just paste your primary color, lock it and click space to load other colors that match. If you spot great color just lock it and look for next one. When all rectangles are locked, copy hash values of picked colors to your XML file. Just add some new rows that we could use later in the android studio. Edit variables and icons of duplicated items. Now fill your category name, icon, and importance. What about a numbered list?
- Open coolors.co
- Paste primary color to first column and lock it
- Click space to load new colors and lock ones that you want to use
- Copy values to your palette XML. I recommend you notepad++
- There is no five.