congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ChooseLanguageDialog
Code IndexAdd Tabnine to your IDE (free)

How to use
ChooseLanguageDialog
in
me.sheimi.sgit.dialogs

Best Java code snippets using me.sheimi.sgit.dialogs.ChooseLanguageDialog (Showing top 4 results out of 315)

origin: sheimi/SGit

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
  super.onCreateDialog(savedInstanceState);
  mActivity = (ViewFileActivity) getActivity();
  final List<String> langs = CodeGuesser.getLanguageList();
  AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);
  builder.setTitle(R.string.dialog_choose_language_title);
  builder.setItems(langs.toArray(new String[0]),
      new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialogInterface,
            int position) {
          String lang = langs.get(position);
          String tag = CodeGuesser.getLanguageTag(lang);
          mActivity.setLanguage(tag);
        }
      });
  return builder.create();
}
origin: sheimi/SGit

    return true;
  ChooseLanguageDialog cld = new ChooseLanguageDialog();
  cld.show(getFragmentManager(), "choose language");
  return true;
case R.id.action_copy_all:
origin: maks/MGit

    return true;
  ChooseLanguageDialog cld = new ChooseLanguageDialog();
  cld.show(getSupportFragmentManager(), "choose language");
  return true;
case R.id.action_copy_all:
origin: maks/MGit

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
  super.onCreateDialog(savedInstanceState);
  mActivity = (ViewFileActivity) getActivity();
  final List<String> langs = CodeGuesser.getLanguageList();
  AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);
  builder.setTitle(R.string.dialog_choose_language_title);
  builder.setItems(langs.toArray(new String[0]),
      new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialogInterface,
            int position) {
          String lang = langs.get(position);
          String tag = CodeGuesser.getLanguageTag(lang);
          mActivity.setLanguage(tag);
        }
      });
  return builder.create();
}
me.sheimi.sgit.dialogsChooseLanguageDialog

Javadoc

Created by sheimi on 8/16/13.

Most used methods

  • <init>
  • getActivity
  • show

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now