B4A Library Droppy - Dropdown Menu

Discussion in 'Additional libraries, classes and official updates' started by DonManfred, Jul 21, 2017.

  1. DonManfred

    DonManfred Expert Licensed User

    this is a wrap for this Github project.

    Droppy
    Version:
    1
    • DroppyMenuItemView
      Methods:
      • Initialize (EventName As String, anchor As View)
      • IsInitialized As Boolean
      • getChildAt (index As Int) As View
      Properties:
      • ChildCount As Int [read only]
    • DroppyMenuPopup
      Events:
      • onClicked (view As Object, index As Int)
      • onDismissed ( As )
      Methods:
      • Initialize (EventName As String, anchor As View)
      • IsInitialized As Boolean
      • addMenuItem (item As String) As DroppyMenuPopupBuilderWrapper
      • addMenuItem2 (item As String, resource As String) As DroppyMenuPopupBuilderWrapper
      • addMenuItem3 (view As View) As DroppyMenuPopupBuilderWrapper
      • addSeparator As DroppyMenuPopupBuilderWrapper
      • addclickcallback As DroppyMenuPopupBuilderWrapper
      • addonDismissCallback As DroppyMenuPopupBuilderWrapper
      • build
      • dismiss (itemSelected As Boolean)
      • fromMenu (menu As Int) As DroppyMenuPopupBuilderWrapper
      • getMenuItemById (id As Int) As DroppyMenuItemInterface
      • hideAnimationCompleted (itemSelected As Boolean)
      • setXOffset (xOffset As Int) As DroppyMenuPopupBuilderWrapper
      • setYOffset (yOffset As Int) As DroppyMenuPopupBuilderWrapper
      • show
      • triggerOnAnchorClick (onAnchorClick As Boolean) As DroppyMenuPopupBuilderWrapper
      Properties:
      • MenuView As View [read only]

    Setup:
    - Download the library zip and extract the three files to your additional libs folder. Droppy.xml/jar/aar
    - Download Resource.zip for the Resources in the Example-Project. Here are the Images for the Dropmenu

    Example Code (simplyfied; see Exampleproject for a full Example)

    Code:
    pop.Initialize("Droppy",Button1)
        pop.addMenuItem(
    "Test1").addMenuItem2("Test2","ic_add_alert_black_18dp").addMenuItem("Options").addclickcallback.addonDismissCallback.addSeparator.addMenuItem("Options1a").addMenuItem("Options1b").triggerOnAnchorClick(True).build

    Sub Droppy_onClicked(view As Object, index As Int)
        
    Log($"Droppy_onClicked(${view}, ${index})"$)
        
    If view Is Button Then
            
    Log("btn")
        
    else if view Is Label Then
            
    Log("lbl")
        
    else if view Is DroppyMenuItemView Then
            
    Dim item As DroppyMenuItemView = view
            
    Log(item.ChildCount)
            
    If item.ChildCount = 1 Then
                
    If item.getChildAt(0Is Label Then
                    
    Dim lbl As Label = item.getChildAt(0)
                    
    Log(lbl.Text)
                
    End If
            
    End If
        
    End If
    End Sub
    Sub Droppy_onDismissed()
        
    Log($"Droppy_onDismissed()"$)
    End Sub
     

    Attached Files:

    Last edited: Jul 22, 2017
  2. DonManfred

    DonManfred Expert Licensed User

    with this code you´ll create a scrollable Menu (as of the amount of items)
    Code:
    pop.Initialize("Droppy",Button4)
        pop.addMenuItem(
    "Test4").addMenuItem2("Test5","ic_warning_black_18dp").addMenuItem("Options4").addclickcallback.addonDismissCallback.addSeparator.addMenuItem("Options4a").addMenuItem("Options 5").addMenuItem("Options 6").addMenuItem("Options 7").addMenuItem("Options 8").addMenuItem("Options 9").addMenuItem("Options 10").addMenuItem("Options 11").addMenuItem("Options 12").addMenuItem("Options 13").addMenuItem("Options 14").addMenuItem("Options 15").addMenuItem("Options 16").addMenuItem("Options 17").addMenuItem("Options 17").addMenuItem("Options 18").addMenuItem("Options 19").addMenuItem("Options 20").addMenuItem("Options 21").addMenuItem("Options 22").addMenuItem("Options 23").addMenuItem("Options 24").addMenuItem("Options 25").addMenuItem("Options 26").addMenuItem("Options 27").addMenuItem("Options 28").addMenuItem("Options 29").addMenuItem("Options 30").addMenuItem("Options 31").addMenuItem("Options 32").addMenuItem("Options 33").addMenuItem("Options34").addMenuItem("Options 35").addMenuItem("Options 36").addMenuItem("Options 37").addMenuItem("Options 38").addMenuItem("Options39").addMenuItem("Options40").addMenuItem("Options41").addMenuItem("Options42").addMenuItem("Options43").addMenuItem("Options44").addMenuItem("Options45").addMenuItem("Options46").addMenuItem("Options47").addMenuItem("Options48").addMenuItem("Options49").addMenuItem("Options50").addMenuItem("Options51").addMenuItem("Options52").addMenuItem("Options53").addMenuItem("Options 54").addMenuItem("Options 55").addMenuItem("Options 56").addMenuItem("Options 57").addMenuItem("Options 58").addMenuItem("Options 59").addMenuItem("Sixty").triggerOnAnchorClick(True).build
     
    Last edited: Jul 21, 2017
  3. javiers

    javiers Active Member Licensed User

    Hi, congratulations on your work.
    When I open the sample project, I get the following error:

    Unknown type: droppymenuitemview
    Are you missing a library reference?


    upload_2017-7-22_8-13-45.png
     
  4. DonManfred

    DonManfred Expert Licensed User

    seems i packaged the wrong jar... Try download the library again. DroppyV1.01.zip from #1
     
  5. javiers

    javiers Active Member Licensed User

    Thank you!! Solved.
     
    DonManfred likes this.
  6. jimmyF

    jimmyF Active Member Licensed User

    Hi! Thank you for this. It is a great idea.

    I have added a checkbox and would like to know how to dismiss the menu after checking/unchecking the CheckBox.

    Code:
    Dim cb As CheckBox
        cb.Initialize(
    "cb")
        cb.Text=
    "Check Me!"
        cb.Color=
    Colors.Red
        cb.TextSize=
    20
        cb.TextColor=
    Colors.White   
    pop.addMenuItem2(
    "Test4","ic_error_outline_black_18dp").addMenuItem3(cb).addclickcallback.addonDismissCallback.addSeparator.addMenuItem("Options3a").triggerOnAnchorClick(True).build
    Code:
    Sub cb_CheckedChange(Checked As Boolean)
        
    Log("cb_CheckedChange: " & Checked)
    ******I want 
    to dismiss the menu at this point
        pop.dismiss(????????????)

    End Sub
    Any help would be appreciated.
    Thanks
     
    Last edited: Jul 22, 2017
  7. DonManfred

    DonManfred Expert Licensed User

    You need to have the rigth reference to the pop object...

    Asuming you are only using one popupmenu you can to it this way
    Code:
    Sub cb_CheckedChange(Checked As Boolean)
        
    Log($"cb_CheckedChange(${Checked})"$)
        pop.dismiss(
    True)
    End Sub
     
    jimmyF likes this.
  8. jimmyF

    jimmyF Active Member Licensed User

    It certainly helps to call the proper popupmenu!
    :D
    Thank you.
    This has many possibilities.
     
  9. Multiverse app

    Multiverse app Active Member Licensed User

    Great work, again!:);)
     
  10. cxdzbl

    cxdzbl Active Member Licensed User

    How do I initialize the character size and color of the label?
     
  11. DonManfred

    DonManfred Expert Licensed User

    get the view (see example on how), get the label inside and cast it to a label (as shown in example).
    change the labels font, textsize, whatever
     
  12. cxdzbl

    cxdzbl Active Member Licensed User

    I can only modify the style of text by clicking on the event, but I still can't initialize the text in Activity_Create. I hope you can give me a code, thanks.
     
  13. DonManfred

    DonManfred Expert Licensed User

    Similar to the code in the click event you can use this technique to change the labels in activity_create.
    You just need to write the code.
    The lib does not expose methods to do this directly.
     
  14. cxdzbl

    cxdzbl Active Member Licensed User

    Maybe it's the communication of our language. I didn't notice addMenuItem3 (). Thank you. But I still have a question. I need to long press the event display menu, and don't click Show
     
    Last edited: Jul 31, 2017
  15. gregbug

    gregbug Member Licensed User

    sorry but i got this error message when i try to compile the example...
    some help?

    Code:
    B4A version: 7.01
    Parsing code.    (
    0.00s)
    Compiling code.    (
    0.01s)
    Compiling layouts code.    (
    0.00s)
    Organizing libraries.    (
    2.01s)
    Generating R 
    file.    Error
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-ldltr-v21\values-ldltr-v21.xml:
    3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v23\values-v23.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:17: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:216: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:218: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:176: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:189: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.EditText'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:264: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Material.Notification'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:276: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Material.Notification.Title'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:4: error: Error: No resource found that matches the given name: attr 'android:textAlignment'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:8: error: Error: No resource found that matches the given name: attr 'android:paddingEnd'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:11: error: Error: No resource found that matches the given name: attr 'android:layout_marginEnd'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:14: error: Error: No resource found that matches the given name: attr 'android:paddingEnd'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:17: error: Error: No resource found that matches the given name: attr 'android:layout_marginStart'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:20: error: Error: No resource found that matches the given name: attr 'android:layout_alignParentStart'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:21: error: Error: No resource found that matches the given name: attr 'android:textAlignment'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:25: error: Error: No resource found that matches the given name: attr 'android:paddingEnd'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:24: error: Error: No resource found that matches the given name: attr 'android:paddingStart'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:28: error: Error: No resource found that matches the given name: attr 'android:layout_alignParentStart'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:31: error: Error: No resource found that matches the given name: attr 'android:layout_toStartOf'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:34: error: Error: No resource found that matches the given name: attr 'android:layout_alignParentEnd'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:38: error: Error: No resource found that matches the given name: attr 'android:layout_toEndOf'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:37: error: Error: No resource found that matches the given name: attr 'android:layout_toStartOf'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:41: error: Error: No resource found that matches the given name: attr 'android:layout_marginStart'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:45: error: Error: No resource found that matches the given name: attr 'android:paddingEnd'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:44: error: Error: No resource found that matches the given name: attr 'android:paddingStart'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:49: error: Error: No resource found that matches the given name: attr 'android:paddingEnd'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v17\values-v17.xml:48: error: Error: No resource found that matches the given name: attr 'android:paddingStart'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:11: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:12: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:13: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:14: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:15: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:27: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Subtitle'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Title'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:34: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:35: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:39: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:43: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:47: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:49: error: Error: No resource found that matches the given name: attr 'android:fontFamily'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:53: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:55: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:58: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.TextView.SpinnerItem'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:59: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:61: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:106: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:110: error: Error: No resource found that matches the given name: attr 'android:colorButtonNormal'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:108: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:109: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:107: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:104: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:105: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:113: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:153: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:157: error: Error: No resource found that matches the given name: attr 'android:colorButtonNormal'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:155: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:156: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:154: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:151: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:152: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:160: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:163: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:165: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:167: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:169: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:171: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:174: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:179: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:180: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:181: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless.Colored'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v23\values-v23.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless.Colored'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:184: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Small'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:185: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ButtonBar'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:186: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.CheckBox'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:187: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.RadioButton'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:188: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:192: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ImageButton'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:193: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:195: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:197: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:199: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:203: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:205: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:207: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:208: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:210: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:214: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:220: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.RatingBar'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:221: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.SeekBar'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:222: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:223: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.TextView.SpinnerItem'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:224: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:232: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:236: error: Error: No resource found that matches the given name: attr 'android:colorButtonNormal'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:234: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:235: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:233: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:230: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:231: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:240: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.NoActionBar'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:252: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.NoActionBar'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:265: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Material.Notification.Info'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v21\values-v21.xml:272: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Material.Notification.Time'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v23\values-v23.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v23\values-v23.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v23\values-v23.xml:34: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v23\values-v23.xml:35: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.RatingBar.Indicator'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v23\values-v23.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.RatingBar.Small'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v24\values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v24\values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v25\values-v25.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.NoActionBar'.
    C:\Users\Gianluca\Desktop\Droppy\Objects\bin\extra\res3\res\values-v25\values-v25.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.NoActionBar'.
    thanks.
     
  16. DonManfred

    DonManfred Expert Licensed User

    What is the defined targetsdk set inside the manifest?
    Which android.jar are you using? use the newest one (from api 25)
     
    gregbug likes this.
  17. gregbug

    gregbug Member Licensed User

    i used an older android.jar....
    after setting newest one
    works.


    thanks for your help!!!!!!!!!!!!!!!
     
  18. petr4ppc

    petr4ppc Active Member Licensed User

    Dear friends,

    I get error:
    where I must put the directory "resource"? Please?
    Thank you
    p4ppc
     
  19. DonManfred

    DonManfred Expert Licensed User

    In the Path of your b4a file. Beside the Files and Objects Folder
     
  20. petr4ppc

    petr4ppc Active Member Licensed User

    DonManfred,

    I have this folder beside and inside, everywhere where it is possible to put this folder and - nothing.

    I am using B4A8.30, phone with Android 8.
    It is possible that I must add some permissions?

    Thank you very much
    p4ppc
     
    Last edited: Sep 18, 2018
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice