Android Open Source - generalsbuzz Event Info Fragment






From Project

Back to project page generalsbuzz.

License

The source code is released under:

MIT License

If you think the Android project generalsbuzz 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 me.kworden.wlcalendar2.fragment;
/* ww  w.ja va2 s .c o m*/
import me.kworden.wlcalendar2.R;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class EventInfoFragment extends Fragment
{
  private String m_message, m_date, m_title;

  public EventInfoFragment()
  {
    super();
  }


  public void setArguments(String p_title, String p_date, String p_message)
  {
    if(p_title == null)
      m_title = "NO TITLE";
    else
      m_title = p_title;

    if(p_date == null)
      m_date = "NO DATE";
    else
      m_date = p_date;

    if(p_message == null)
      m_message = "";
    else
      m_message = p_message.replace("&", "&").replace(" ", " ");
  }
  
  @Override
  public View onCreateView(LayoutInflater p_inflater, ViewGroup p_container, Bundle p_prev_state)
  {
    View t_view = p_inflater.inflate(R.layout.fragment_event_info, p_container, false);
    ((TextView)t_view.findViewById(R.id.main_event_title)).setText(m_title);
    ((TextView)t_view.findViewById(R.id.main_event_date)).setText(m_date);
    ((TextView)t_view.findViewById(R.id.main_event_info)).setText(m_message);
    return t_view;
  }
}




Java Source Code List

me.kworden.wlcalendar2.BuildConfig.java
me.kworden.wlcalendar2.BuildConfig.java
me.kworden.wlcalendar2.MainActivity.java
me.kworden.wlcalendar2.SettingsActivity.java
me.kworden.wlcalendar2.adapter.EventAdapter.java
me.kworden.wlcalendar2.async.CheckLocalDataTask.java
me.kworden.wlcalendar2.async.ParseDataTask.java
me.kworden.wlcalendar2.async.ReadLocalDataTask.java
me.kworden.wlcalendar2.async.RequestRemoteDataTask.java
me.kworden.wlcalendar2.async.StoreDataTask.java
me.kworden.wlcalendar2.fragment.EventDisplayFragment.java
me.kworden.wlcalendar2.fragment.EventInfoFragment.java
me.kworden.wlcalendar2.fragment.SettingsFragment.java
me.kworden.wlcalendar2.receiver.CheckLocalDataReceiver.java
me.kworden.wlcalendar2.receiver.RequestRemoteDataReceiver.java
me.kworden.wlcalendar2.receiver.UpdateRowsReceiver.java
me.kworden.wlcalendar2.struct.MonthYearParcel.java
me.kworden.wlcalendar2.struct.WLEventClassifier.java
me.kworden.wlcalendar2.struct.WLEventLinebreak.java
me.kworden.wlcalendar2.struct.WLEvent.java
me.kworden.wlcalendar2.struct.WLHeader.java
me.kworden.wlcalendar2.util.APP.java
me.kworden.wlcalendar2.util.BROADCAST.java
me.kworden.wlcalendar2.util.MD5.java
me.kworden.wlcalendar2.util.PATTERNS.java
me.kworden.wlcalendar2.util.STATUS.java