Code example for CharacterData

Methods: getData

0
 
	public static String getCharacterDataFromElement(Element e) {
		Node child = e.getFirstChild();
		if (child instanceof CharacterData) {
			CharacterData cd = (CharacterData) child;
			return cd.getData();
		} 
		return "?"; 
	} 
 
	public void split(View view) {
		split = true;
		if (currentPlayer == 1) {
			/* 
			 * Bitmap card = BitmapFactory.decodeResource(getResources(), 
			 * R.drawable.four_spades); RelativeLayout relativeView = 
			 * (RelativeLayout)findViewById(R.id.playerOneLayoutTwo); ImageView 
			 * imageView = new ImageView(this); imageView.setImageBitmap(card); 
			 * imageView.setPadding(padding[1], 0, 0, 0); 
			 * relativeView.addView(imageView); padding[1]+=20; 
			 */