I have a similar problem to Smee. These popup menus are a joy to behold. I’ve worked for hours to find a way to initialize a popup menu programmatically, without the anchor button, and I’ve concluded that it’s not possible. I don’t have the knowledge to work at the level of the author, so my comments are not meant as undue criticism. I think that there must be an inbuilt weakness in Android that forces limitations to this library. If only it were not so.
Thank you for the additional info. We all have something on our wish list, and mine is a floating toolbar that can be called from code. I was surprised to find there is no native toolbar in Android. Android devices have relatively small screens and I hate to give up screen real estate unnecessarily. I try to keep the clutter down to a minimum.But how would you position without an anchor point or call it? It does not need to be a button. I have anchored to a label so it could be called from code by pressing somewhere else.
Cheers
So how do you destroy it and recreate from Code? I tried initialising in a sub routine instead of Activity_Create but that does not seem to work. I wopuld rather use this menu instead of a list box because there are only going to be 3 or four items at any time and it looks so much more professional
Should be possible with Dimming the object again.
Dim QAMenu2 As AHQuickAction3D ' Redim to clear
For i = 1 To 3
Dim ai As AHActionItem
Dim bd As BitmapDrawable
Dim Filename, Text As String
Select i
Case 1
Text = "Product Code " & i
Case 2
Text = "Product Code " & i
Case 3
Text = "Product Code " & i
End Select
ai.Initialize(i, Text, Null)
ai.Selected = True
QAMenu2.addActionItem(ai)
Next
Hi,
I noticed that the font size is pretty small on many devices, can it be changed?
Cheers,
i tried editing the file ahqa_action_item.xml and changed the font size from 12sp to 24sp but it made no difference
android:paddingTop="10dip"
android:paddingBottom="10dip"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="15dp"
android:paddingBottom="15dp"
android:clickable="true"
android:focusable="true"
android:background="@drawable/ahqa_action_item_btn">
<ImageView
android:id="@+id/iv_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/tv_title"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_vertical"
android:paddingLeft="5dip"
android:paddingRight="10dip"
android:textSize="24sp"
android:text="Chart"
android:textColor="#fff"/>
</LinearLayout>
Just wanted to share a screenshot of a full UI that features:
- actionbar;
- quickaction;
- pager.