Search in sources :

Example 1 with DialogSelectListDataAdapter

use of com.nightonke.saver.adapter.DialogSelectListDataAdapter in project CoCoin by Nightonke.

the class ReportViewFragment method showSelectListDataDialog.

private void showSelectListDataDialog() {
    if (selectListDataAdapter == null) {
        selectListDataAdapter = new DialogSelectListDataAdapter(selectListData);
    }
    new MaterialDialog.Builder(mContext).title(R.string.report_select_list_title).cancelable(false).negativeText(R.string.cancel).adapter(selectListDataAdapter, new MaterialDialog.ListCallback() {

        @Override
        public void onSelection(MaterialDialog dialog, View itemView, int which, CharSequence text) {
            dialog.dismiss();
            makeReport(which);
        }
    }).show();
}
Also used : MaterialDialog(com.afollestad.materialdialogs.MaterialDialog) ImageView(android.widget.ImageView) ObservableScrollView(com.github.ksoichiro.android.observablescrollview.ObservableScrollView) View(android.view.View) MyGridView(com.nightonke.saver.ui.MyGridView) PieChartView(lecho.lib.hellocharts.view.PieChartView) AdapterView(android.widget.AdapterView) TextView(android.widget.TextView) LineChartView(lecho.lib.hellocharts.view.LineChartView) ExpandedListView(com.nightonke.saver.ui.ExpandedListView) MaterialIconView(net.steamcrafted.materialiconlib.MaterialIconView) DialogSelectListDataAdapter(com.nightonke.saver.adapter.DialogSelectListDataAdapter)

Aggregations

View (android.view.View)1 AdapterView (android.widget.AdapterView)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1 MaterialDialog (com.afollestad.materialdialogs.MaterialDialog)1 ObservableScrollView (com.github.ksoichiro.android.observablescrollview.ObservableScrollView)1 DialogSelectListDataAdapter (com.nightonke.saver.adapter.DialogSelectListDataAdapter)1 ExpandedListView (com.nightonke.saver.ui.ExpandedListView)1 MyGridView (com.nightonke.saver.ui.MyGridView)1 LineChartView (lecho.lib.hellocharts.view.LineChartView)1 PieChartView (lecho.lib.hellocharts.view.PieChartView)1 MaterialIconView (net.steamcrafted.materialiconlib.MaterialIconView)1