Android Question How to set view bottom during runtime

Reminisce

Active Member
Screenshot_20200128-162424.png

I am trying to place the Love button below the label height after calculating the label.height using string utils's MeasureMultilinetextheight.

Any idea on what to do?
 

Reminisce

Active Member
@Erel and @klaus

I fixed it with the code below..

Code:
Dim minHeight As Int = su.MeasureMultilineTextHeight(lblfeedpost1,lblfeedpost1.Text)
    lblfeedpost1.Height =  Max(50dip, minHeight)
    pnl.Height = lblfeedpost1.Height + 15%y
   
    Dim ItemHeight As Int  =pnl.Height
    SetItemHeight(lvmenufeed,ItemHeight ,index,"",pnl)
    postenlarged = True
    buttonlike.Top = lblfeedpost1.Height + 7%y
    buttoncomment.Top = lblfeedpost1.Height + 7%y
    lblfeeddate1.Top = lblfeedpost1.Height + 7%y
    lbllike.Top = lblfeedpost1.Height + 7%y

not sure if the highlighted code is the proper way to achieve this, but it works fine...
 
Upvote 0
Top