void LabelView::ParseFromXML(XMLNode &node) { View::ParseFromXML(node); this->SetText(node.GetAttributeString("text")); this->SetTextColor(Color::FromHexString(node.GetAttributeString("text_color"))); }
void LinearLayout::ParseFromXML(XMLNode &node) { View::ParseFromXML(node); const std::string &orientation = node.GetAttributeString("orientation"); if (orientation == "horizontal") { mOrientation = LinearLayoutHorizontal; } else { mOrientation = LinearLayoutVertical; } }