forked from Cleveroad/LoopBar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathILoopBarPagerAdapter.java
More file actions
36 lines (31 loc) · 894 Bytes
/
ILoopBarPagerAdapter.java
File metadata and controls
36 lines (31 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.cleveroad.loopbar.adapter;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
/**
* Interface for ViewPager adapter {@link android.support.v4.view.PagerAdapter}
* Need to be implemented if you want to show images in LoopBar
*/
public interface ILoopBarPagerAdapter {
/**
* Returns the title for page to show in LoopBar item
*
* @param position Page position
* @return instance of {@link CharSequence}
*/
@NonNull
CharSequence getPageTitle(int position);
/**
* Returns the drawable for page to show in LoopBar item
*
* @param position Page position
* @return instance of {@link Drawable}
*/
@NonNull
Drawable getPageDrawable(int position);
/**
* Returns count of pages in adapter
*
* @return int value for page count
*/
int getCount();
}