Ngo Doan
Ngo Doan
Jul 27, 2017 · 1 min read

Awsome question! I think the Adapter and ViewHolder always going together. Therefore, I will create a interface Contract for Adapter and ViewHolder of it. And any presenters want to use Adapter, just implement the interface Perseneter of interface adapter’s Contract

interface RepositoriesAdapterContract {     interface Presenter {     }
interface Row1View {
}
interface Row2View {
}}

    Ngo Doan

    Written by

    Ngo Doan

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade