Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4android > Additional libraries, classes and official updates
Documentation Wiki Register Members List Windows Mobile Search Today's Posts Mark Forums Read

Additional libraries, classes and official updates Users contributed libraries, classes and official updates. This forum is open for licensed users only.

AHQuickAction library - Nice looking popup menus

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-02-2012, 08:27 AM
Knows the basics
 
Join Date: Jul 2011
Posts: 228
Default

Really interesting. Thanks for sharing
Reply With Quote
  #12 (permalink)  
Old 02-02-2012, 09:33 AM
Filippo's Avatar
Basic4android Veteran
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 1,141
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo corwin42,

erstmal vielen Dank für diese Library.

Bei der "AHQuickAction3D", in der Vertikale ausrichtung, finde ich den Abstand von Element zu Element einfach zu klein, gibt es da eine möglichkeit diese Abstand zu vergrössern?


first thank you for this library.

In the "AHQuickAction3D" by the vertical Alignment, I find the distance from element to element just too small, is there a possibility to enlarge this distance?


Ciao,
Filippo
Reply With Quote
  #13 (permalink)  
Old 02-03-2012, 07:48 AM
corwin42's Avatar
Basic4android Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 878
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Filippo View Post
In the "AHQuickAction3D" by the vertical Alignment, I find the distance from element to element just too small, is there a possibility to enlarge this distance?
Yes, this is possible. Since all the layouts are defined in XML files you can make changes to them.

I currently don't have access to the sources but have a look in Objects/res/layout. There should be a file called something like "ahqa_item_vertical.xml". That is the layout for the vertically aligned items. I think you can add some top and buttom padding to the layout to make the items larger.

Be aware that you make the file read only again after you edit it.
__________________
You like my work? Please make a donation
My GitHub repositories: corwin42
My Apps: AmberHome Weather - AmberHome Weather Plus - Minimalistic Clock Widget
Reply With Quote
  #14 (permalink)  
Old 02-03-2012, 08:59 PM
Junior Member
 
Join Date: Sep 2011
Location: France
Posts: 27
Default ListView ?

Hi Markus,

First, this a very nice object.

In a program, i've attached a QuickAction with a ListView like this :
Code:
Sub ListView1_ItemLongClick (Position As Int, Value As Object)
    QuickAction.show(ListView1)
End Sub
The QuickAction always show at the same place, whatever the selected item.
Is it possible to point the selected item ?

Thank's
Reply With Quote
  #15 (permalink)  
Old 02-03-2012, 09:32 PM
corwin42's Avatar
Basic4android Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 878
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by hbruno View Post
The QuickAction always show at the same place, whatever the selected item.
Is it possible to point the selected item ?
Unfortunately not.

It would be very easy if the ItemLongClick event would provide the view that causes the event but unfortunately it does not. Perhaps we can ask Erel to add this as a parameter to the ItemClick and ItemLongClick events. Should be a 5 minutes change for Erel.

I will add a request for this.
__________________
You like my work? Please make a donation
My GitHub repositories: corwin42
My Apps: AmberHome Weather - AmberHome Weather Plus - Minimalistic Clock Widget
Reply With Quote
  #16 (permalink)  
Old 02-04-2012, 06:45 PM
Banned
 
Join Date: Nov 2011
Posts: 93
Default

Very nice work!!

Presumably this new style MENU system is called from an on-screen button. Does anyone know how this button appears in apps, or do we just make this button look as we feel fit?
Reply With Quote
  #17 (permalink)  
Old 02-05-2012, 04:58 AM
Junior Member
 
Join Date: Nov 2011
Posts: 33
Default

i can't make this work on my existing project, when i copy the res files into my object files, it gives an error that i need to somewhat declare the resources. how can i do that?
Reply With Quote
  #18 (permalink)  
Old 02-05-2012, 06:48 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,807
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You should press on Tools - Clean project. This deletes an automatically generated file and forces the compiler to recreate it.
Reply With Quote
  #19 (permalink)  
Old 02-05-2012, 10:25 PM
corwin42's Avatar
Basic4android Expert
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 878
Send a message via Skype™ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by hbruno View Post
The QuickAction always show at the same place, whatever the selected item.
Is it possible to point the selected item ?
Erel had a nice workaround for this. It's not perfect but works in most cases
Attached Files
File Type: zip AHQuickActionListViewExample.zip (61.7 KB, 103 views)
__________________
You like my work? Please make a donation
My GitHub repositories: corwin42
My Apps: AmberHome Weather - AmberHome Weather Plus - Minimalistic Clock Widget
Reply With Quote
  #20 (permalink)  
Old 02-06-2012, 06:59 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,807
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

A better solution using Reflection library:
Code:
Sub ListView1_ItemClick (Position As Int, Value As Object)
    ac1.Show(GetViewAtPos(
Sender, Position))
End Sub

Sub GetViewAtPos(LV As ListView, Position As IntAs View
    
Dim r As Reflector
    
Dim v As View
    r.Target = LV
    
Dim first As Int
    first = r.RunMethod(
"getFirstVisiblePosition")
    v = r.RunMethod2(
"getChildAt", Position - first, "java.lang.int")
    
Return v
End Sub
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Popup Menu/List Library thedesolatesoul Additional libraries, classes and official updates 22 04-05-2013 07:22 AM
Nice standard icons, where to get ? Hubert Brandel Basic4android Updates and Questions 3 11-27-2011 12:26 AM
Nice utity for wireless file transfers Erel Basic4android Getting started & Tutorials 8 08-16-2011 08:12 PM
CurrentView - Nice movie viewer ExcludeReality Open Source Projects 5 08-25-2009 03:45 PM
PopUp Notifications library. taximania Additional Libraries 18 02-28-2009 07:26 PM


All times are GMT. The time now is 05:45 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0