プロジェクト
GitHubで見る
shangmingchao/PopupList
概要
The edit menu in Android, like the UIMenuController in iOS
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルPopupList
It can show a edit menu when you press a View by a long-press gesture.
This utility class can bind a edit menu for ListView, GridView, or other View easily.
Welcome star, fork
Screenshots




How do I use PopupList?
Just need a .java file and a little code.
PopupList popupList = new PopupList(context);
popupList.bind(anchorView, popupMenuItemList, PopupListListener);
Sample
PopupList popupList = new PopupList(this);
popupList.bind(lv_main, popupMenuItemList, new PopupList.PopupListListener() {
@Override
public boolean showPopupList(View adapterView, View contextView, int contextPosition) {
return true;
}
@Override
public void onPopupListClick(View contextView, int contextPosition, int position) {
Toast.makeText(MainActivity.this, contextPosition + "," + position, Toast.LENGTH_SHORT).show();
}
});
Customization
You can get more information from the Wiki page.
関連プロジェクトを探す
読み込み中…