Search in sources :

Example 6 with Dialog

use of org.holoeverywhere.app.Dialog in project mobile-android by photo.

the class AlbumCreateFragment method onCreateDialog.

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog result = super.onCreateDialog(savedInstanceState);
    result.setTitle(R.string.album_create_dialog_title);
    return result;
}
Also used : Dialog(org.holoeverywhere.app.Dialog)

Example 7 with Dialog

use of org.holoeverywhere.app.Dialog in project mobile-android by photo.

the class FacebookFragment method onCreateDialog.

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog result = super.onCreateDialog(savedInstanceState);
    result.setTitle(R.string.share_facebook_dialog_title);
    return result;
}
Also used : Dialog(org.holoeverywhere.app.Dialog)

Example 8 with Dialog

use of org.holoeverywhere.app.Dialog in project mobile-android by photo.

the class TwitterFragment method onCreateDialog.

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    Dialog result = super.onCreateDialog(savedInstanceState);
    result.setTitle(R.string.share_twitter_dialog_title);
    return result;
}
Also used : Dialog(org.holoeverywhere.app.Dialog)

Example 9 with Dialog

use of org.holoeverywhere.app.Dialog in project little-bear-dictionary by daimajia.

the class PreferenceScreen method onSaveInstanceState.

@Override
protected Parcelable onSaveInstanceState() {
    final Parcelable superState = super.onSaveInstanceState();
    final Dialog dialog = mDialog;
    if (dialog == null || !dialog.isShowing()) {
        return superState;
    }
    final SavedState myState = new SavedState(superState);
    myState.isDialogShowing = true;
    myState.dialogBundle = dialog.onSaveInstanceState();
    return myState;
}
Also used : Dialog(org.holoeverywhere.app.Dialog) Parcelable(android.os.Parcelable)

Example 10 with Dialog

use of org.holoeverywhere.app.Dialog in project little-bear-dictionary by daimajia.

the class SimpleWordAdapter method onClick.

@Override
public void onClick(View v) {
    switch(v.getId()) {
        case R.id.delete:
            String id = (String) v.getContentDescription();
            SQLiteDatabase sqLiteDatabase = mDictionaryDB.getWritableDatabase();
            sqLiteDatabase.execSQL("delete from `word` where `_id`='" + id + "'");
            Cursor cursor = sqLiteDatabase.rawQuery("select * from `word` order by `_id` desc", null);
            changeCursor(cursor);
            notifyDataSetChanged();
            sqLiteDatabase.close();
            break;
        case R.id.word_item:
            String word = (String) v.getContentDescription();
            Dialog dialog = new Dialog(mContext);
            View query_View = mInflater.inflate(R.layout.query, null);
            ViewPager mViewPager = (ViewPager) query_View.findViewById(R.id.viewpager);
            TitlePageIndicator mTitlePageIndicator = (TitlePageIndicator) query_View.findViewById(R.id.titles);
            QueryManageFragmentPager mQueryManageFragmentPager = new QueryManageFragmentPager();
            mViewPager.setAdapter(mQueryManageFragmentPager);
            mTitlePageIndicator.setViewPager(mViewPager);
            mTitlePageIndicator.setOnPageChangeListener(new IndicatorOnPageChangeListener());
            DictionaryDataCenter.instance(mContext).clear();
            mQueryManageFragmentPager.notifyDataSetChanged();
            mTitlePageIndicator.notifyDataSetChanged();
            new QueryAsyncTask(mContext, mTitlePageIndicator, mQueryManageFragmentPager, word).execute();
            dialog.setTitle(word);
            dialog.setContentView(query_View);
            dialog.show();
        default:
            break;
    }
}
Also used : SQLiteDatabase(android.database.sqlite.SQLiteDatabase) QueryAsyncTask(com.zhan_dui.dictionary.asynctasks.QueryAsyncTask) Dialog(org.holoeverywhere.app.Dialog) IndicatorOnPageChangeListener(com.zhan_dui.dictionary.listeners.IndicatorOnPageChangeListener) Cursor(android.database.Cursor) QueryManageFragmentPager(com.zhan_dui.dictionary.pageradapter.QueryManageFragmentPager) TextView(android.widget.TextView) View(android.view.View) ViewPager(android.support.v4.view.ViewPager) TitlePageIndicator(com.viewpagerindicator.TitlePageIndicator)

Aggregations

Dialog (org.holoeverywhere.app.Dialog)10 View (android.view.View)3 SuppressLint (android.annotation.SuppressLint)2 Context (android.content.Context)2 AdapterView (android.widget.AdapterView)2 ProgressDialogLoadingControl (com.trovebox.android.common.util.ProgressDialogLoadingControl)2 ListView (org.holoeverywhere.widget.ListView)2 Cursor (android.database.Cursor)1 SQLiteDatabase (android.database.sqlite.SQLiteDatabase)1 Parcelable (android.os.Parcelable)1 ViewPager (android.support.v4.view.ViewPager)1 ActionBarView (android.support.v7.internal.widget.ActionBarView)1 TextView (android.widget.TextView)1 ActionBarView (com.actionbarsherlock.internal.widget.ActionBarView)1 TitlePageIndicator (com.viewpagerindicator.TitlePageIndicator)1 QueryAsyncTask (com.zhan_dui.dictionary.asynctasks.QueryAsyncTask)1 IndicatorOnPageChangeListener (com.zhan_dui.dictionary.listeners.IndicatorOnPageChangeListener)1 QueryManageFragmentPager (com.zhan_dui.dictionary.pageradapter.QueryManageFragmentPager)1 LayoutInflater (org.holoeverywhere.LayoutInflater)1