* feat(api/hashtag): add any, all, and none parameter * feat(timeline/hashtag): load with any, all and none parameter * feat(timeline/hashtag): save any, all and none in timeline definition * feat: set hastag parameter in UI * feat: move strings to string res * feat: show hint for tags * refactor: use method for setting up tags text * improve edit dialog, allow creating hashtag timelines * add chips for hashtags * add option for displaying only local posts in hashtag * improve layout and wording --------- Co-authored-by: sk <sk22@mailbox.org>
30 lines
646 B
Java
30 lines
646 B
Java
package com.hootsuite.nachos.chip;
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
public interface Chip {
|
|
|
|
/**
|
|
* @return the text represented by this Chip
|
|
*/
|
|
CharSequence getText();
|
|
|
|
/**
|
|
* @return the data associated with this Chip or null if no data is associated with it
|
|
*/
|
|
@Nullable
|
|
Object getData();
|
|
|
|
/**
|
|
* @return the width of the Chip or -1 if the Chip hasn't been given the chance to calculate its width
|
|
*/
|
|
int getWidth();
|
|
|
|
/**
|
|
* Sets the UI state.
|
|
*
|
|
* @param stateSet one of the state constants in {@link android.view.View}
|
|
*/
|
|
void setState(int[] stateSet);
|
|
}
|