All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.solovyev.android.list.ListItem Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package org.solovyev.android.list;

import android.content.Context;
import android.view.View;
import android.widget.ListView;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.solovyev.android.view.UpdatableViewBuilder;

/**
 * User: serso
 * Date: 4/14/12
 * Time: 4:28 PM
 */

/**
 * One row of list in Adapter. Can build, update view and provide functionality on clicking and on long clicking.
 */
public interface ListItem extends UpdatableViewBuilder {

    static final String TAG = "ListItem";

    @Nullable
    OnClickAction getOnClickAction();

    @Nullable
    OnClickAction getOnLongClickAction();

    public static interface OnClickAction {

        void onClick(@NotNull Context context, @NotNull ListAdapter adapter, @NotNull ListView listView);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy