public void recordLayoutId(int layoutId){
  if (mLayoutIds == null)   mLayoutIds=new ArrayList<>();
  if (!mLayoutIds.contains(layoutId)) {
    mLayoutIds.add(layoutId);
  }
}

public void recordLayoutId ( int layoutId ) { if ( mLayoutIds == null ) mLayoutIds = new ArrayList < > ( ) ; if ( ! mLayoutIds . contains ( layoutId ) ) { mLayoutIds . add ( layoutId ) ; } }
record the layout id if need
