Custom layout question


Last Updated:

  1. lms5400

    lms5400 Member This Topic's Starter

    Joined:
    Apr 28, 2010
    Messages:
    15
    Likes Received:
    0
    i'm new to andrioid here...

    I need to alter the padding of one of the View (such as TextView) elements but only after i check its height. I can not simply do this in the onCreate because the layout method(s) have not run yet.

    How do i override a group's or view's layout such to have access to it at the time its first calculated - such as height or number of lines etc

    Thanks
     

    Advertisement
  2. tp_technologies

    tp_technologies Well-Known Member

    Joined:
    Apr 26, 2010
    Messages:
    65
    Likes Received:
    5
    You should be able to do this in the onCreate() just do it after you set the view. Technically it will be making the changes after it loads but it will happen so fast it will go unseen.
     

Share This Page

Loading...