private static int parseDimension(int overrideValue,Node nodeAttr,boolean override){
  assert nodeAttr != null;
  String content=nodeAttr.getTextContent();
  assert content.endsWith("dp");
  int originalValue=Integer.parseInt(content.substring(0,content.length() - 2));
  if (override) {
    nodeAttr.setTextContent(overrideValue + "dp");
  }
  return originalValue;
}

private static int parseDimension ( int overrideValue , Node nodeAttr , boolean override ) { assert nodeAttr != null ; String content = nodeAttr . getTextContent ( ) ; assert content . endsWith ( "dp" ) ; int originalValue = Integer . parseInt ( content . substring ( 0 , content . length ( ) - 2 ) ) ; if ( override ) { nodeAttr . setTextContent ( overrideValue + "dp" ) ; } return originalValue ; }
query the dimension info and override it if needed .
