@Override protected void onLayout(boolean changed,int l,int t,int r,int b){
  super.onLayout(changed,l,t,r,b);
  mInLayout=true;
  layout(0,false);
  mInLayout=false;
}

@ Override protected void onLayout ( boolean changed , int l , int t , int r , int b ) { super . onLayout ( changed , l , t , r , b ) ; mInLayout = true ; layout ( 0 , false ) ; mInLayout = false ; }
setting up images after layout changed
