Search in sources :

Example 6 with ViewHolder

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

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