• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Custom layout question

lms5400

Newbie
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
 
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.
 
Back
Top Bottom