Android Question ListView with AddTwoLinesAndBitmap2

Code: Copy
    If list.TwoLinesAndBitmap.SecondLabel.Visible = false Then
        list.TwoLinesAndBitmap.Label.Gravity=Gravity.CENTER
    End If
?

I think you can also have access to imageview the same way
 
Upvote 0
Code: Copy
list.TwoLinesAndBitmap.Label.Top=list.Top
list.TwoLinesAndBitmap.Label.Height=list.TwoLinesAndBitmap.ItemHeight
might be a stupid solution :D
 
Upvote 0
With ListView.TwoLinesAndBitmap you have access to all three views:
ListView.TwoLinesAndBitmap.Label
ListView.TwoLinesAndBitmap.SecondLabel
ListView.TwoLinesAndBitmap.ImageView
With ListView.TwoLinesAndBitmap.ItemHeight
and the Left, Top, Width, Height properties of the three views you can dimension and position them to your needs.
Without seeing what you have done it's difficult to give a concrete advice.
It would have been much more efficient if you had posted a small project showing the problem.
 
Upvote 0
I need like some:

[PICTURE]
[PICTURE] xxxxxxxxxxxxxxx
[PICTURE]

Try this:
Code: Copy
ListView1.TwoLinesAndBitmap.SecondLabel.Visible = False
ListView1.TwoLinesAndBitmap.Label.Height = ListView1.TwoLinesAndBitmap.ItemHeight
ListView1.TwoLinesAndBitmap.Label.Gravity = Gravity.CENTER_VERTICAL
 
Upvote 0
Back
Top