Code example for Node

Methods: toStringgetAttributesgetChildNodes

	private static final String TAG = "amlcode";
	private RadioButton view;
	public AmlInputRadioButton(Context context, Node n) {
		Log.d(TAG, "New RadioButton input from XML node " + n.toString());
		LayoutInflater mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		view = (RadioButton) mInflater.inflate(AmlBuilder.localResources.getInt("aml_input_radiobutton"), null);
		Node label = n.getChildNodes().item(0);
		Node checkedNode = n.getAttributes().getNamedItem("checked");
		if (label != null) view.setText(label.getNodeValue());
		String checked = "";
		if (checkedNode != null) checked = checkedNode.getNodeValue().toLowerCase();
		AmlBuilder.applyActionAttribute(view, "tap", n.getAttributes().getNamedItem("tap"));
		AmlBuilder.applyActionAttribute(view, "hold", n.getAttributes().getNamedItem("hold"));
		Log.d(TAG, "New RadioButton input construction complete from XML node " + n.toString());
	 * Get the View created from this object 
	 * @return View to be inserted into parent layout 
Stop searching for code, let great code find you!  Add Codota to your java IDE