package com.cloudrail.fileviewer;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.app.Fragment;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.TextView;
/**
* A simple {@link Fragment} subclass.
* to handle interaction events.
* Use the {@link Home#newInstance} factory method to
* create an instance of this fragment.
*/
public class Home extends Fragment {
public Home() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @return A new instance of fragment Home.
*/
public static Home newInstance() {
return new Home();
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_home, container, false);
TextView tv = (TextView) v.findViewById(R.id.link);
tv.setMovementMethod(LinkMovementMethod.getInstance());
return v;
}
@Override
public void onDetach() {
super.onDetach();
}
}