@@ -0,0 +1,2255 @@
+/*%0A * Copyright 2013 That Amazing Web Ltd.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.taw.dashtube;%0A%0Aimport android.app.AlertDialog;%0Aimport android.app.Dialog;%0Aimport android.app.DialogFragment;%0Aimport android.content.DialogInterface;%0Aimport android.os.Bundle;%0Aimport android.text.Html;%0Aimport android.text.method.LinkMovementMethod;%0Aimport android.view.View;%0Aimport android.widget.TextView;%0A%0A/**%0A * Dialog fragment for the About box.%0A */%0Apublic class AboutDialogFragment extends DialogFragment %7B%0A%0A    private static AboutDialogFragment about = null;%0A%0A    public static AboutDialogFragment getInstance() %7B%0A        if (about == null) %7B%0A            about = new AboutDialogFragment();%0A        %7D%0A        return about;%0A    %7D%0A%0A    @Override%0A    public Dialog onCreateDialog(Bundle savedInstanceState) %7B%0A        View titleView = View.inflate(getActivity(), R.layout.about_dialog_title_view, null);%0A        View bodyView = View.inflate(getActivity(), R.layout.about_dialog_view, null);%0A%0A        // Set up strings for URLs%0A        TextView txt = (TextView) bodyView.findViewById(R.id.about_dialog_text);%0A        txt.setText(Html.fromHtml(getString(R.string.about_dialog_text)));%0A        txt.setMovementMethod(LinkMovementMethod.getInstance());%0A%0A        return new AlertDialog.Builder(getActivity())%0A                .setCustomTitle(titleView)%0A                .setView(bodyView)%0A                .setPositiveButton(getString(R.string.ok_button),%0A                        new DialogInterface.OnClickListener() %7B%0A                            public void onClick(DialogInterface dialog, int id) %7B%0A                                dialog.dismiss();%0A                            %7D%0A                        %7D)%0A                .create();%0A    %7D%0A%7D;%0A

Create fragment for About dialog