Back to project page ShowMeTweets.
The source code is released under:
MIT License
If you think the Android project ShowMeTweets listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.fcduarte.showmetweets.fragments; // w ww. java 2 s . com import com.fcduarte.showmetweets.model.User; import android.os.Bundle; public class UserTimelineFragment extends ListTweetsFragment { private static final String USER_KEY = "user"; public static UserTimelineFragment newInstance(User user) { UserTimelineFragment fragment = new UserTimelineFragment(); Bundle args = new Bundle(); args.putSerializable(USER_KEY, user); fragment.setArguments(args); return fragment; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.mTimelineType = ListTweetsFragment.TimelineType.USER; super.mUser = (User) getArguments().getSerializable(USER_KEY); } }