Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void showPreviewDialog() {
- Dialog dialog = new Dialog(DownloadActivity.this, android.R.style.Theme_Dialog);
- Context mContext = getApplicationContext();
- LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE);
- View layout = inflater.inflate(R.layout.preview , (ViewGroup) findViewById(R.id.preview));
- TextView mBootName = (TextView) layout.findViewById(R.id.preview_boot_name);
- mBootName.setText(getNAME());
- TextView mDescriptionText = (TextView) layout.findViewById(R.id.preview_description_title);
- mDescriptionText.setText(getDESCRIPTION());
- Button mPreviewButton = (Button) layout.findViewById(R.id.button_preview);
- mPreviewButton.setOnClickListener(new OnClickListener(){
- public void onClick(View v) {
- }
- });
- Button mDownloadButton = (Button) layout.findViewById(R.id.button_download);
- mDownloadButton.setOnClickListener(new OnClickListener(){
- public void onClick(View v) {
- startDownload();
- }
- });
- dialog.setContentView(R.layout.preview);
- dialog.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement