Android Open Source - fileEx Text Reader






From Project

Back to project page fileEx.

License

The source code is released under:

Apache License

If you think the Android project fileEx listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package android.howard.exp.fragment;
/*from w w w  .j av a 2  s.  c o m*/
import android.app.Activity;
import android.content.Context;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.bpok.fileex.R;

public class TextReader extends Fragment {

  private View mRootView;
  private Context mContext;
  private TextView readerTextView;
  private Typeface typeface;

  @Override
  public void onAttach(Activity activity) {
    mContext = activity.getApplicationContext();
    super.onAttach(activity);
  }

  public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
    mRootView = inflater.inflate(R.layout.reader, null);
    showText();
    return mRootView;
  }

  private void showText() {
    typeface = Typeface.createFromAsset(getActivity().getAssets(),
        "fonts/MONACO.TTF");
    readerTextView = (TextView) mRootView.findViewById(R.id.tv_reader);
    String contentString = getArguments().getString("content");
    if (contentString != null) {
      readerTextView.setTypeface(typeface);
      readerTextView.setText(contentString);
    }
  }
}




Java Source Code List

android.howard.exp.adapter.ImageCache.java
android.howard.exp.adapter.ImageReaderTask.java
android.howard.exp.adapter.NaviAdapter.java
android.howard.exp.adapter.ViedioReaderTask.java
android.howard.exp.bean.RootItemBean.java
android.howard.exp.fragment.BaseFragment.java
android.howard.exp.fragment.MenuDrawer.java
android.howard.exp.fragment.RootPage.java
android.howard.exp.fragment.TextReader.java
android.howard.exp.utils.TextFileReader.java
android.howard.exp.views.FlectImageView.java
android.howard.exp.views.ListViewCompat.java
android.howard.exp.views.SlideView.java
com.bpok.fileex.FileExApp.java