Created
March 27, 2015 18:58
-
-
Save ollien/c271ea7278a1c0b36acf to your computer and use it in GitHub Desktop.
fragment View example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup, Bundle savedInstanceState){ | |
final View view = inflater.inflate(R.layout.fragment_timeline,viewGroup,false); | |
final SwipeRefreshLayout refreshLayout = (SwipeRefreshLayout)view.findViewById(R.id.refresh); | |
ListView timelineView = (ListView) view.findViewById(R.id.timelineList); | |
//... | |
return view | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment