/// <param name="mRef"> The Firebase location to watch for data changes. Can also be a slice of a location, using some /// combination of <code>limit()</code>, <code>startAt()</code>, and <code>endAt()</code>, </param> /// <param name="mModelClass"> Firebase will marshall the data at a location into an instance of a class that you provide </param> /// <param name="mLayout"> This is the mLayout used to represent a single list item. You will be responsible for populating an /// instance of the corresponding view with the data from an instance of mModelClass. </param> /// <param name="activity"> The activity containing the ListView </param> public FirebaseListAdapter(Query mRef, Type <T> mModelClass, int mLayout, Activity activity) { this.mRef = mRef; this.mModelClass = mModelClass; this.mLayout = mLayout; mInflater = activity.LayoutInflater; mModels = new List <T>(); mKeys = new List <string>(); // Look for all child events. We will then map them to our own internal ArrayList, which backs ListView mListener = this.mRef.addChildEventListener(new ChildEventListenerAnonymousInnerClassHelper(this)); }
public DrawingView(Context context, Firebase @ref, float scale) : base(context) { mOutstandingSegments = new HashSet <string>(); mPath = new Path(); this.mFirebaseRef = @ref; this.mScale = scale; mListener = @ref.addChildEventListener(new ChildEventListenerAnonymousInnerClassHelper(this)); mPaint = new Paint(); mPaint.AntiAlias = true; mPaint.Dither = true; mPaint.Color = 0xFFFF0000; mPaint.Style = Paint.Style.STROKE; mBitmapPaint = new Paint(Paint.DITHER_FLAG); }
public DrawingView(Context context, Firebase @ref, float scale) : base(context) { mOutstandingSegments = new HashSet<string>(); mPath = new Path(); this.mFirebaseRef = @ref; this.mScale = scale; mListener = @ref.addChildEventListener(new ChildEventListenerAnonymousInnerClassHelper(this)); mPaint = new Paint(); mPaint.AntiAlias = true; mPaint.Dither = true; mPaint.Color = 0xFFFF0000; mPaint.Style = Paint.Style.STROKE; mBitmapPaint = new Paint(Paint.DITHER_FLAG); }