Android Question [AHDashBoard] Not Centered Icons

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hi All
I'm using the Dashboard object, but the icons are shift to the left! What should I do to center the icons?

this is the source code:

B4X:
Sub Activity_Create(FirstTime As Boolean)
    dashboard.Initialize("")
   
    'Add ten panels to the dashboard
    For i = 0 To 20
        Dim Panel1 As Panel
        Dim Button1 As Button
        Dim Label1 As Label
   
        Panel1.Initialize("")
        Panel1.LoadLayout("panel1")
        Panel1.Color = Colors.Red
        Label1.Text = "Item " & i
        Button1.Tag = Panel1
        dashboard.AddView(Panel1, 164dip, 174dip)
    '    dashboard.AddView(Panel1, 90dip, 90dip)
   
    Next
   
    Activity.Color = Colors.White
    Activity.AddView(dashboard,0dip, 0, Activity.Width, Activity.Height)
End Sub

thansk
 

Attachments

  • ahdashboard.png
    ahdashboard.png
    66.8 KB · Views: 249
Top