Code example for Parcel

Methods: writeInt

0
	public int describeContents() { 
		return 0; 
	} 
 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(mGapWidth);
		dest.writeInt(mWantColor ? 1 : 0);
		dest.writeInt(mColor);
	} 
 
	public int getLeadingMargin(boolean first) {
		return 2 * BULLET_RADIUS + mGapWidth;
	} 
 
	public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top,
			int baseline, int bottom, CharSequence text, int start, int end,
			boolean first, Layout l) {
		if (((Spanned) text).getSpanStart(this) == start) {
			Paint.Style style = p.getStyle();
			int oldcolor = 0;