blob: d2d386563e841920bfc260095bc25590b4ac35f6 [file] [log] [blame]
Alexandre Lision064e1e02013-10-01 16:18:42 -04001package org.sflphone.fragments;
2
3import org.sflphone.R;
alision96ff9b72013-07-05 10:59:16 -04004
alision96ff9b72013-07-05 10:59:16 -04005import android.os.Bundle;
Alexandre Lisiona8b78722013-12-13 10:18:33 -05006import android.support.v4.app.Fragment;
Alexandre Lisionbf951552013-09-27 16:27:52 -04007import android.text.Html;
8import android.text.method.LinkMovementMethod;
alision96ff9b72013-07-05 10:59:16 -04009import android.view.LayoutInflater;
10import android.view.View;
11import android.view.ViewGroup;
Alexandre Lisionbf951552013-09-27 16:27:52 -040012import android.widget.TextView;
13
alision5de91782013-07-10 10:47:30 -040014public class AboutFragment extends Fragment {
Alexandre Lisiona8b78722013-12-13 10:18:33 -050015
alision96ff9b72013-07-05 10:59:16 -040016 @Override
Alexandre Lision658999c2013-12-13 14:42:45 -050017 public void onResume() {
18 super.onResume();
19 getActivity().getActionBar().setTitle(R.string.menu_item_about);
20 }
21
22 @Override
alision96ff9b72013-07-05 10:59:16 -040023 public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {
alision5de91782013-07-10 10:47:30 -040024 View inflatedView = inflater.inflate(R.layout.frag_about, parent, false);
alision96ff9b72013-07-05 10:59:16 -040025
Alexandre Lisionbf951552013-09-27 16:27:52 -040026 TextView link = (TextView) inflatedView.findViewById(R.id.web_site);
Alexandre Lisiona8b78722013-12-13 10:18:33 -050027 String linkText = "<a href='http://sflphone.org/'>" + getResources().getString(R.string.web_site) + "</a>";
Alexandre Lisionbf951552013-09-27 16:27:52 -040028 link.setText(Html.fromHtml(linkText));
29 link.setMovementMethod(LinkMovementMethod.getInstance());
Alexandre Lision658999c2013-12-13 14:42:45 -050030
alision96ff9b72013-07-05 10:59:16 -040031 return inflatedView;
32 }
alision96ff9b72013-07-05 10:59:16 -040033
34}