layout - android get drawable area in onCreate method -
If I have height and width layout with height_parent, then on its purchase method to get its height and width Any way? If not, its dimensions are available? I need this because I have to add some ideas in runtime and I should know how many scenes fill in the layout.
You can:. Assume that you have layout view in the Create Method
layout.post {new Runnabel} {@Override Public runs zero () {height = getHeight (); Width = getWidth (); // Now adopt other ideas that you know the size of the parents}}});
Comments
Post a Comment