cc.softwarefactory.lokki.android.fragments.HelpFragment.java Source code

Java tutorial

Introduction

Here is the source code for cc.softwarefactory.lokki.android.fragments.HelpFragment.java

Source

/*
Copyright (c) 2014-2015 F-Secure
See LICENSE for details
*/
package cc.softwarefactory.lokki.android.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
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;

public class HelpFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        TextView textView = new TextView(getActivity());
        textView.setPadding(15, 15, 15, 15);
        textView.setMovementMethod(LinkMovementMethod.getInstance());

        ScrollView scroller = new ScrollView(getActivity());
        scroller.addView(textView);

        return scroller;
    }

}