Created
December 28, 2011 07:25
-
-
Save dallarosa/1526948 to your computer and use it in GitHub Desktop.
fragment
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
package me.movamova; | |
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.ListView; | |
public class FeedFragment extends Fragment { | |
@Override | |
public void onCreate(Bundle savedInstanceState){ | |
super.onCreate(savedInstanceState); | |
} | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, | |
Bundle savedInstanceState) { | |
// Inflate the layout for this fragment | |
View contentView = inflater.inflate(R.layout.requests, container, false); | |
ListView requestListView = (ListView)contentView.findViewById(R.id.request_list); | |
FeedAdapter adapter = new FeedAdapter(this.getActivity()); | |
requestListView.setAdapter(adapter); | |
return contentView; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment