content: package com.quizapp.tollywood.swipelistview;
  
  
  import android.content.Context;
  import android.graphics.drawable.Drawable;
  
  /**
   * 
   * @author baoyz
   * @date 2014-8-23
   * 
   */
  public class SwipeMenuItem {
  
  	private int id;
  	public Context mContext;
  	private String title;
  	private Drawable icon;
  	private Drawable background;
  	private int bgColor;
  	private int titleSize;
  	private int width;
  
  	public SwipeMenuItem(Context context) {
  		mContext = context;
  	}
  
  	public int getId() {
  		return id;
  	}
  
  	public void setId(int id) {
  		this.id = id;
  	}
  
  	public int getBgColor() {
  		return bgColor;
  	}
  
  	public int getTitleSize() {
  		return titleSize;
  	}
  
  	public void setBgColor(int titleColor) {
  		this.bgColor = titleColor;
  	}
  
  	public String getTitle() {
  		return title;
  	}
  
  	public void setTitle(String title) {
  		this.title = title;
  	}
  
  	public void setTitle(int resId) {
  		setTitle(mContext.getString(resId));
  	}
  
  	public Drawable getIcon() {
  		return icon;
  	}
  
  	public void setIcon(Drawable icon) {
  		this.icon = icon;
  	}
  
  	public void setIcon(int resId) {
  		this.icon = mContext.getResources().getDrawable(resId);
  	}
  
  	public Drawable getBackground() {
  		return background;
  	}
  
  	public void setBackground(Drawable background) {
  		this.background = background;
  	}
  
  	public void setBackground(int resId) {
  		this.background = mContext.getResources().getDrawable(resId);
  	}
  
  	public int getWidth() {
  		return width;
  	}
  
  	public void setWidth(int width) {
  		this.width = width;
  	}
  
  }
  