Skip to content

Instantly share code, notes, and snippets.

Bogdan Melnychuk bmelnychuk

  • Hamburg, Germany
Block or report user

Report or block bmelnychuk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gabrielemariotti
gabrielemariotti / GridActivity.java
Created Jul 27, 2014
Android Wear: How to use a simple a GridViewPager with a FragmentGridPagerAdapter.
View GridActivity.java
public class GridActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.grid);
final GridViewPager mGridPager = (GridViewPager) findViewById(R.id.pager);
mGridPager.setAdapter(new SampleGridPagerAdapter(this, getFragmentManager()));
}
You can’t perform that action at this time.