Code example for TypedArray

Methods: getBoolean, getDimensionPixelSize, getDrawable, getInt, recycle

0
				LinearListView_dividerThickness, 0);
		if (thickness != 0) {
			setDividerThickness(thickness);
		} 
 
		CharSequence[] entries = a.getTextArray(LinearListView_entries);
		if (entries != null) {
			setAdapter(new ArrayAdapter<CharSequence>(context,
					android.R.layout.simple_list_item_1, entries));
		} 
 
		a.recycle();
	} 
 
	@Override 
	public void setOrientation(int orientation) {
		if (orientation != getOrientation()) {
			int tmp = mDividerHeight;
			mDividerHeight = mDividerWidth; 
			mDividerWidth = tmp;
		}