B4A Library Droppy - Dropdown Menu

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)

B4X:
    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(0) Is 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
 

Attachments

  • DroppyEx.zip
    8.1 KB · Views: 1,286
  • Resource.zip
    2.5 KB · Views: 1,228
  • DroppyV1.01.zip
    51.6 KB · Views: 1,284
Last edited:

DonManfred

Expert
Licensed User
Longtime User
with this code you´ll create a scrollable Menu (as of the amount of items)
B4X:
    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:

javiers

Active Member
Licensed User
Longtime 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
 

jimmyF

Active Member
Licensed User
Longtime 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.

B4X:
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

B4X:
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:

DonManfred

Expert
Licensed User
Longtime User
Any help would be appreciated
You need to have the rigth reference to the pop object...

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

jimmyF

Active Member
Licensed User
Longtime User
It certainly helps to call the proper popupmenu!
:D
Thank you.
This has many possibilities.
 

cxdzbl

Active Member
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
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.
 

cxdzbl

Active Member
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.
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:

gregbug

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

B4X:
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.
 

gregbug

Member
Licensed User
Longtime User
What is the defined targetsdk set inside the manifest?
Which android.jar are you using? use the newest one (from api 25)

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


thanks for your help!!!!!!!!!!!!!!!
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

I get error:
invalid resource directory name ..\resource ic_add_alert_black_18dp.png

where I must put the directory "resource"? Please?
Thank you
p4ppc
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
DonManfred,

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

B4A Version: 8.30
Parsing code. (0.00s)
Compiling code. (0.08s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
invalid resource directory name: ..\resource ic_add_alert_black_18dp.png
invalid resource directory name: ..\resource ic_error_black_18dp.png
invalid resource directory name: ..\resource ic_error_outline_black_18dp.png
invalid resource directory name: ..\resource ic_warning_black_18dp.png

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:
Top