Android Open Source - FindYourWords Dialog Win






From Project

Back to project page FindYourWords.

License

The source code is released under:

Apache License

If you think the Android project FindYourWords listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * Class DialogSaveFile is a Dialog used in the first Activity to save a txt file
 * In this dialog the user can write the name of the file e save it in the SDcard
 * // www. java 2 s. c  o m
 * @author Sara Craba
 * @version 1.0
 */

package win;

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import com.sara.find_your_words.R;

/**
 * @see DialogFragment() on Android
 */
public class DialogWin extends DialogFragment 
{
  static WinView image;
  private View view;
  
  static DialogWin istance;
  static DialogWinThread thread= new DialogWinThread();;
    
  /**
   * @see onCreateDialog() on Android Dialogs class
   */
  @Override
  public Dialog onCreateDialog(Bundle savedInstanceState) 
  {
    setStyle(DialogFragment.STYLE_NORMAL, android.R.style.Theme_NoTitleBar_Fullscreen);        
    
    
    //get the layout inflater
    LayoutInflater inflater = getActivity().getLayoutInflater();
    
    //get view
    view=inflater.inflate(R.layout.dialog_win, null);
    
    istance=this;

    image = (WinView)view.findViewById(R.id.winView1);
    
    thread.start();
    
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
    builder.setView(view);
    
    return builder.create();
  }
}




Java Source Code List

com.ipaulpro.afilechooser.FileChooserActivity.java
com.ipaulpro.afilechooser.FileListAdapter.java
com.ipaulpro.afilechooser.FileListFragment.java
com.ipaulpro.afilechooser.FileLoader.java
com.ipaulpro.afilechooser.utils.FileUtils.java
com.ipaulpro.afilechooser.utils.MimeTypeParser.java
com.ipaulpro.afilechooser.utils.MimeTypes.java
dialog.DialogCredits.java
dialog.DialogInfoMain.java
dialog.DialogInfo.java
dialog.DialogSaveFile.java
grid.CaptureWord.java
grid.Cell.java
grid.GridManager.java
grid.LetterView.java
grid.LineDrawView.java
grid.Positions.java
grid.RelativeLayoutView.java
mainClasses.MainActivity.java
mainClasses.SetWords.java
win.DialogWinThread.java
win.DialogWin.java
win.WinView.java
word.CompareStringList.java
word.OneWord.java