Search in sources :

Example 1 with ViewHolder

use of com.android.settings.dashboard.SupportItemAdapter.ViewHolder in project android_packages_apps_Settings by omnirom.

the class DashboardItemAnimatorTest method SetUp.

@Before
public void SetUp() {
    final Context context = ShadowApplication.getInstance().getApplicationContext();
    mDashboardItemAnimator = new DashboardItemAnimator();
    mViewHolder = new ViewHolder(new TextView(context));
    mViewHolder.itemView.setTag(new Tile());
}
Also used : Context(android.content.Context) ViewHolder(com.android.settings.dashboard.SupportItemAdapter.ViewHolder) Tile(com.android.settingslib.drawer.Tile) TextView(android.widget.TextView) Before(org.junit.Before)

Example 2 with ViewHolder

use of com.android.settings.dashboard.SupportItemAdapter.ViewHolder in project android_packages_apps_Settings by crdroidandroid.

the class DashboardItemAnimatorTest method SetUp.

@Before
public void SetUp() {
    final Context context = ShadowApplication.getInstance().getApplicationContext();
    mDashboardItemAnimator = new DashboardItemAnimator();
    mViewHolder = new ViewHolder(new TextView(context));
    mViewHolder.itemView.setTag(new Tile());
}
Also used : Context(android.content.Context) ViewHolder(com.android.settings.dashboard.SupportItemAdapter.ViewHolder) Tile(com.android.settingslib.drawer.Tile) TextView(android.widget.TextView) Before(org.junit.Before)

Example 3 with ViewHolder

use of com.android.settings.dashboard.SupportItemAdapter.ViewHolder in project android_packages_apps_Settings by SudaMod.

the class DashboardItemAnimatorTest method SetUp.

@Before
public void SetUp() {
    final Context context = ShadowApplication.getInstance().getApplicationContext();
    mDashboardItemAnimator = new DashboardItemAnimator();
    mViewHolder = new ViewHolder(new TextView(context));
    mViewHolder.itemView.setTag(new Tile());
}
Also used : Context(android.content.Context) ViewHolder(com.android.settings.dashboard.SupportItemAdapter.ViewHolder) Tile(com.android.settingslib.drawer.Tile) TextView(android.widget.TextView) Before(org.junit.Before)

Example 4 with ViewHolder

use of com.android.settings.dashboard.SupportItemAdapter.ViewHolder in project android_packages_apps_Settings by DirtyUnicorns.

the class DashboardItemAnimatorTest method SetUp.

@Before
public void SetUp() {
    final Context context = ShadowApplication.getInstance().getApplicationContext();
    mDashboardItemAnimator = new DashboardItemAnimator();
    mViewHolder = new ViewHolder(new TextView(context));
    mViewHolder.itemView.setTag(new Tile());
}
Also used : Context(android.content.Context) ViewHolder(com.android.settings.dashboard.SupportItemAdapter.ViewHolder) Tile(com.android.settingslib.drawer.Tile) TextView(android.widget.TextView) Before(org.junit.Before)

Example 5 with ViewHolder

use of com.android.settings.dashboard.SupportItemAdapter.ViewHolder in project platform_packages_apps_Settings by BlissRoms.

the class DashboardItemAnimatorTest method SetUp.

@Before
public void SetUp() {
    final Context context = ShadowApplication.getInstance().getApplicationContext();
    mDashboardItemAnimator = new DashboardItemAnimator();
    mViewHolder = new ViewHolder(new TextView(context));
    mViewHolder.itemView.setTag(new Tile());
}
Also used : Context(android.content.Context) ViewHolder(com.android.settings.dashboard.SupportItemAdapter.ViewHolder) Tile(com.android.settingslib.drawer.Tile) TextView(android.widget.TextView) Before(org.junit.Before)

Aggregations

Context (android.content.Context)6 TextView (android.widget.TextView)6 ViewHolder (com.android.settings.dashboard.SupportItemAdapter.ViewHolder)6 Tile (com.android.settingslib.drawer.Tile)6 Before (org.junit.Before)6