Constructor and Description |
---|
PreviewDataBinder(android.view.ViewGroup parent,
de.mrapp.android.util.view.ViewRecycler<Tab,java.lang.Void> contentViewRecycler,
Model model)
Creates a new data binder, which allows to asynchronously render preview images of tabs and
display them afterwards.
|
Modifier and Type | Method and Description |
---|---|
protected android.graphics.Bitmap |
doInBackground(Tab key,
TabItem... params) |
protected void |
onPostExecute(android.widget.ImageView view,
android.graphics.Bitmap data,
long duration,
TabItem... params) |
protected void |
onPreExecute(android.widget.ImageView view,
TabItem... params) |
addListener, cancel, clearCache, getContext, getLogLevel, handleMessage, isCached, isCacheUsed, isCanceled, load, load, removeListener, setLogLevel, useCache
dispatchMessage, dump, getLooper, getMessageName, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
public PreviewDataBinder(@NonNull android.view.ViewGroup parent, @NonNull de.mrapp.android.util.view.ViewRecycler<Tab,java.lang.Void> contentViewRecycler, @NonNull Model model)
parent
- The parent view of the tab switcher, the tabs belong to, as an instance of the class
ViewGroup
. The parent may not be nullcontentViewRecycler
- The view recycler, which should be used to inflate the views, which are associated
with tabs, as an instance of the class ViewRecycler. The view recycler may not be
nullmodel
- The model of the tab switcher, the tabs belong to, as an instance of the type Model
. The model may not be nullprotected final void onPreExecute(@NonNull android.widget.ImageView view, @NonNull TabItem... params)
@NonNull protected final android.graphics.Bitmap doInBackground(@NonNull Tab key, @NonNull TabItem... params)
protected final void onPostExecute(@NonNull android.widget.ImageView view, @Nullable android.graphics.Bitmap data, long duration, @NonNull TabItem... params)