Closed bajabob closed 8 years ago
feature/75-recording-count
.Sample render, see Wes's implementation for TagView
and view_tag.xml
for how he created a rounded box with text inside. Font color is R.color.white_80
(or @color/white_80 is specifying in xml file) and box color is R.color.grey_50
(or @color/grey_50is specifying in xml file).
Good job @JenningsF ! Works great :+1:
As a user of the FastPhrase application I would like to know how many objects are in each of my folders before I click on them.
As a developer of this application I am to add a recording count to
FolderView
. This count should be the same font and size as the folder name, and should be right aligned on the screen. The only font change shall be that the color of the text shall beR.color.black_60
. Additionally, this count should only be visible when the folder is closed, not when the folder is open.Files you will be working in:
FolderViewHolder
in the method,onBindData
. This is where thedata
comes in, calldata.recordings.size()
to get the count.FolderView
this is where you will create a methodsetItemCount(int count)
which will set the number of items. In this file you will determine whether to show or hide the count.view_folder.xml
this is where you will add a new right alignedTextView
for the count. Give it anid
so you can tell it how many items it has and whether or not to show.