Code example for Attr

Methods: getValue

0
            return name;
        } 
 
        @Override 
        public String getValue() {
            return mAttribute.getValue();
        } 
    } 
 
    // Recursively initialize this node with the bounds specified in the given hierarchy 
    // dump (from ViewHierarchy's DUMP_INFO flag 
    public void assignBounds(String bounds) {
        Iterable<String> split = Splitter.on('\n').trimResults().split(bounds);
        assignBounds(split.iterator());
    } 
 
    private void assignBounds(Iterator<String> iterator) {
        assertTrue(iterator.hasNext());
        String desc = iterator.next();
 
        Pattern pattern = Pattern.compile("^\\s*(.+)\\s+\\[(.+)\\]\\s*(<.+>)?\\s*(\\S+)?\\s*$");