package com.mehtank.androminion.fragments; import android.os.Bundle; import android.text.Html; import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ScrollView; import android.widget.TextView; import com.actionbarsherlock.app.SherlockFragment; import com.mehtank.androminion.R; public class WhatsnewFragment extends SherlockFragment { @SuppressWarnings("unused") private static final String TAG = "WhatsnewFragment"; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ScrollView scrollView = (ScrollView) inflater.inflate(R.layout.fragment_whatsnew, container, false); // inflate doesn't renter HTML, so do this now: TextView tv = (TextView) scrollView.findViewById(R.id.whatsnew); tv.setText(Html.fromHtml(getString(R.string.whatsnew))); tv.setMovementMethod(LinkMovementMethod.getInstance()); return scrollView; } }