Android Question CustomView - Background Color

mariolu

Member
Licensed User
Longtime User
I am using Class Module CustomView

I am trying to change the background color of the following Addview object

clv3.Initialize(Me, "clv3")
clv3.DefaultTextBackgroundColor = Colors.Black (this only applies to records background)
Activity.AddView(clv3.AsView, 0, 50%y, 100%x, 50%y)

When the customlistveiw object is not populated in full with records the background is white/grey. I am trying to change it to black.

ie in the example only 2 records are displayed, see attached screen shot
 

Attachments

  • screenshot.png
    screenshot.png
    55.6 KB · Views: 215

tunderin

Member
Licensed User
Longtime User
Take a look at my post here, about mid-page...
 
Upvote 0

mariolu

Member
Licensed User
Longtime User
Take a look at my post here, about mid-page...

Thanks for you response to my question. It worked just like you said, the only problem I have now is when the are many records, the list does not allow me to scroll to the bottom of the list. The scrolling seems like its frozen, the records don't scroll!

Any thoughts!!

Thanks
 
Upvote 0

tunderin

Member
Licensed User
Longtime User
I don't have the time just now to look at this but will in the next few days.

Essentually, my fix needs to become conditional - if sv.panel.height is less than 1 screen high then do my fix

That would be the direction that I would go in...
 
Upvote 0

tunderin

Member
Licensed User
Longtime User
I have updated my post here. It should fix your problem if you haven't already.
 
Upvote 0
Top