Android Open Source - binghamton_svc Contact Section Fragment






From Project

Back to project page binghamton_svc.

License

The source code is released under:

MIT License

If you think the Android project binghamton_svc 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 Fragments;
/*from  w  w  w. j  a v a 2 s  . c  om*/
import com.github.chrzhang.R;
import Parsers.GetEBoard;
import android.os.Bundle;
import android.os.StrictMode;
import android.support.v4.app.Fragment;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * Fragment in charge of displaying a list of e-board emails, fetched from
 * the club website as requested.
 * @author Christopher Zhang
 */
public class ContactSectionFragment extends Fragment 
{
  View rootView;
  TextView eboard;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
  {
    StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build();  
    StrictMode.setThreadPolicy(policy);
    rootView = inflater.inflate(R.layout.fragment_section_contact, container, false);  
    eboard = (TextView) rootView.findViewById(R.id.tvEboard);
    GetEBoard getter = new GetEBoard();
    try 
    {
      String returned = getter.getInternetData();
      eboard.setText(Html.fromHtml(returned));
      eboard.setTextSize(19);
    } 
    catch (Exception e) 
    {
      e.printStackTrace();
    }
    return rootView;
  }
}




Java Source Code List

Fragments.AboutSectionFragment.java
Fragments.ContactSectionFragment.java
Fragments.EventsSectionFragment.java
Fragments.IsOnlineDialogFragment.java
Fragments.LaunchpadSectionFragment.java
Fragments.SignupSectionFragment.java
Parsers.GetEBoard.java
Parsers.GetMembershipInfo.java
Parsers.GetMissionStatement.java
Parsers.GetVolunteerHours.java
com.github.chrzhang.AboutAdapter.java
com.github.chrzhang.MainActivity.java
com.github.chrzhang.SplashScreen.java