Back to project page AndroidRandomWallpaper.
The source code is released under:
GNU General Public License
If you think the Android project AndroidRandomWallpaper 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 com.elbauldelprogramador.randomwallpaper.activities; /*ww w . j a v a2s . com*/ import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.elbauldelprogramador.randomwallpaper.R; public class AboutTheApp extends DialogFragment { public AboutTheApp() { } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.about, container); getDialog().setTitle(getResources().getString(R.string.aboutTitle)); // text2 has links specified by putting <a> tags in the string // resource. By default these links will appear but not // respond to user input. To make them active, you need to // call setMovementMethod() on the TextView object. final TextView source = (TextView) view.findViewById(R.id.tv_about_source); final TextView author = (TextView) view.findViewById(R.id.tv_about_athor); source.setMovementMethod(LinkMovementMethod.getInstance()); author.setMovementMethod(LinkMovementMethod.getInstance()); return view; } }