Android Question xCustomListView and hi-resolution device problem/bug ? [solved]

rraswisak

Active Member
Licensed User
Longtime User
Hi All,

I make small project using xCustomListView with layout file loaded, in the layout (bal) file i place panel with 1dip height as divider. When i run in emulator different result is show.

at first emulator with 400x800 size, the screen looking ok, but when running at emulator with 1080x1920 the panel divider is not shown.

480x800


1080x1920


Please help...

Thank you
 

Attachments

  • xClv.zip
    489.4 KB · Views: 223

rraswisak

Active Member
Licensed User
Longtime User
You should use File - Export as zip to create the zip file.
noted for that

Why are you setting the Divider Height to 0 in the designer? Why not use the built-in dividers?
the reason for not use built-in divider because putting panel as divider in layout making its more customable - like applying different color for every list item, and so i can show/hide the divider individually.

thank you for your time and enlightment
 
Upvote 0

rraswisak

Active Member
Licensed User
Longtime User
yes i've been try that way, increase the height to fit to the content on higher resolution device, but make over-height on lower resolution.

at the lower-res while clicking an item, the presscolor panel tell what i mean.

both on emulator and real device has same behaviour
 
Upvote 0

asales

Expert
Licensed User
Longtime User
Disable "AutoScaleAll" in the layout "list" or increase this line:
p = GenerateList(i, clv.AsView.Width,51dip,True)
to
55dip
 
Upvote 0

rraswisak

Active Member
Licensed User
Longtime User
Hi @asales thank you for your repply

try increasing the height to make it fit on hi-res device before, but over-height on lo-res device. my prior best solution i have is set the layout height by checking screen resolution condition first.

but...

disabling AutoScaleAll on layout script pane is the solution!. the layout (divider) show as expected both on low and hi-res device.

Thank you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…