Search in sources :

Example 1 with TweetsAdapter

use of com.pushtorefresh.storio3.sample.ui.adapter.TweetsAdapter in project storio by pushtorefresh.

the class TweetsSQLiteFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final FragmentActivity activity = getActivity();
    SampleApp.get(activity).appComponent().inject(this);
    tweetsAdapter = new TweetsAdapter(LayoutInflater.from(activity), this);
    new Relations(storIOSQLite).getTweetWithUser();
}
Also used : FragmentActivity(android.support.v4.app.FragmentActivity) TweetsAdapter(com.pushtorefresh.storio3.sample.ui.adapter.TweetsAdapter) Relations(com.pushtorefresh.storio3.sample.sample_code.Relations)

Example 2 with TweetsAdapter

use of com.pushtorefresh.storio3.sample.ui.adapter.TweetsAdapter in project storio by pushtorefresh.

the class TweetsContentResolverFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final FragmentActivity activity = getActivity();
    SampleApp.get(activity).appComponent().inject(this);
    tweetsAdapter = new TweetsAdapter(LayoutInflater.from(activity), this);
}
Also used : FragmentActivity(android.support.v4.app.FragmentActivity) TweetsAdapter(com.pushtorefresh.storio3.sample.ui.adapter.TweetsAdapter)

Aggregations

FragmentActivity (android.support.v4.app.FragmentActivity)2 TweetsAdapter (com.pushtorefresh.storio3.sample.ui.adapter.TweetsAdapter)2 Relations (com.pushtorefresh.storio3.sample.sample_code.Relations)1