Back to project page FAST.
The source code is released under:
GNU General Public License
If you think the Android project FAST listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.ligi.fast.ui; //w w w . jav a 2 s . c o m import android.annotation.SuppressLint; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.text.Html; import android.text.method.LinkMovementMethod; import android.text.util.Linkify; import android.view.LayoutInflater; import android.view.View; import android.widget.TextView; import org.ligi.fast.R; class HelpDialog { public static void show(Context ctx) { @SuppressLint("InflateParams") View view = LayoutInflater.from(ctx).inflate(R.layout.help_dialog, null); TextView tv = (TextView) view.findViewById(R.id.help_text); tv.setText(Html.fromHtml(ctx.getString(R.string.help_content))); Linkify.addLinks(tv, Linkify.ALL); tv.setMovementMethod(LinkMovementMethod.getInstance()); new AlertDialog.Builder(ctx).setTitle(R.string.help_label).setView(view) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }).show(); } }