Skip to content

Commit

Permalink
apply changes to java doc
Browse files Browse the repository at this point in the history
Signed-off-by: alex <alex.plutta@googlemail.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
  • Loading branch information
AlexNi245 authored and AndyScherzinger committed Aug 20, 2019
1 parent c41dd38 commit a26a895
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,33 @@

import android.view.View;

import com.owncloud.android.ui.activities.ActivityListItemDecoration;

public interface StickyHeaderAdapter {
/**
* This method gets called by {@link HeaderItemDecoration} to fetch the position of the header item in the adapter
* This method gets called by {@link ActivityListItemDecoration} to fetch the position of the header item in the adapter
* that is used for (represents) item at specified position.
* @param itemPosition int. Adapter's position of the item for which to do the search of the position of the header item.
* @return int. Position of the header item in the adapter.
*/
int getHeaderPositionForItem(int itemPosition);

/**
* This method gets called by {@link HeaderItemDecoration} to get layout resource id for the header item at specified adapter's position.
* This method gets called by {@link ActivityListItemDecoration} to get layout resource id for the header item at specified adapter's position.
* @param headerPosition int. Position of the header item in the adapter.
* @return int. Layout resource id.
*/
int getHeaderLayout(int headerPosition);

/**
* This method gets called by {@link HeaderItemDecoration} to setup the header View.
* This method gets called by {@link ActivityListItemDecoration} to setup the header View.
* @param header View. Header to set the data on.
* @param headerPosition int. Position of the header item in the adapter.
*/
void bindHeaderData(View header, int headerPosition);

/**
* This method gets called by {@link HeaderItemDecoration} to verify whether the item represents a header.
* This method gets called by {@link ActivityListItemDecoration} to verify whether the item represents a header.
* @param itemPosition int.
* @return true, if item at the specified adapter's position represents a header.
*/
Expand Down

0 comments on commit a26a895

Please sign in to comment.