Search in sources :

Example 1 with ViewHolder

use of com.xwray.groupie.ViewHolder in project PocketHub by pockethub.

the class NewsEventTextTest method updateView.

private void updateView(GitHubEvent event) {
    NewsItem item = NewsItem.createNewsItem(avatarLoader, event);
    View itemView = layoutInflater.inflate(item.getLayout(), null);
    ViewHolder viewHolder = item.createViewHolder(itemView);
    item.bind((com.xwray.groupie.kotlinandroidextensions.ViewHolder) viewHolder, 0);
    text = viewHolder.itemView.findViewById(R.id.tv_event);
    assertNotNull(text);
}
Also used : ViewHolder(com.xwray.groupie.ViewHolder) TextView(android.widget.TextView) View(android.view.View) NewsItem(com.github.pockethub.android.ui.item.news.NewsItem)

Aggregations

View (android.view.View)1 TextView (android.widget.TextView)1 NewsItem (com.github.pockethub.android.ui.item.news.NewsItem)1 ViewHolder (com.xwray.groupie.ViewHolder)1