This is my code trying to get sum of Xs and Ys in my Linearlayout, but it doesn't give me right result.
linear.post(new Runnable() {
@Override
public void run() {
Log.d("Sum of Xs: ",""+linear.getWidth());
Log.d("Sum of Ys: ",""+linear.getHeight());
}
});