B4J Library MashIconPicker

Problem Statement: Deciding which icon to use for my ABMaterial apps components was getting a little tedious. With over 1500 icons to choose from, doing to and fro was starting to be out of the question.

Solution: Would be nice to have an icon picker like what B4J has, so MashIconPicker came about, to use on my Pen & Paper project and thus speed up some development time. What I needed was just the font icon name, but then the number is also returned, which can be passed to ..

B4X:
Return Bit.ParseInt(strValue, 16)

for one to get their icons. A map of all the icons for FA and MDI are saved on a map file. I didnt want to use a db for this. I have attached here the library itself and its source code. Its using a customlistview.

Known Issues: Some of the MDI icons for some reason show squares on the buttons.

MashIconPicker.gif
 

Attachments

  • MashIconPickerExample.zip
    2.3 KB · Views: 405
  • MashIconPickerLibrary.zip
    38.7 KB · Views: 408
  • MashIconPickerSC.zip
    24.5 KB · Views: 423
Last edited:

free2end

Member
Licensed User
many thanks for your effort and sharing!

i think that all the 8th searched items are missed...
please check it out (as a test, i search (fa) for "car") found 22 items (4 rows) but display 20 (3 rows)



B4X:
If cntItems > 7 Then
    'start a new row
    strRow = RemDelim1(",",strRow)
    mRows.Add(strRow.ToString)
    strRow.Initialize
    cntItems = 1  'was 0...
    strRow.Append(strItem).Append(",")  'so include the 8th items...
Else
    strRow.Append(strItem).Append(",")      
End If
 
Last edited:
Top