Wear gist#4: How to use a simple a GridViewPager with a FragmentGridPagerAdapter
It is very simple to use the FragmentGridPagerAdapter in your Android Wear App.
You can build a new CardFragment with the default layout including title, text and icon using the method:
Also you can provide a background overriding the
Very useful the class ImageReference which provides a reference to an image
Here a small gist
You can build a new CardFragment with the default layout including title, text and icon using the method:
CardFragment.create(page.mTitle, page.mText, page.mIconId)
Also you can provide a background overriding the
getBackground(int row, int col)
method in your adapter.Very useful the class ImageReference which provides a reference to an image
Here a small gist
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipeUePR7wI38U0ZCJOi_8bcYNkAYn7TcT4moEcNb4pOmTNNA7y_CffcGJ7yLBtdFy05klWu2Da1An0D8RspIXg6kYs_ObKAohY-a3JjrVfuJ0f7tyJaBF5kkbf1OPl6CIGtNNOyIJoGe1i/s400/CardFragment.png)
Comments
Post a Comment