Android Wear: Cannot Resolve Image Reference -


probably stupid question here started programming in android bear me.

https://gist.github.com/gabrielemariotti/ca2d0a9f79b902b19a65

i'm following project implement gridviewpager on android wear application. works fine, background images i'm trying use not displaying. displays black screen.

the issue getbackground() method, imagereference in particular.

 public imagereference getbackground(int row, int col) {             simplepage page = ((simplerow)mpages.get(row)).getpages(col);             return imagereference.fordrawable(page.mbackgroundid);     } 

the tutorial shows image reference should returned getting build errors saying imagereference cannot resolved. have create class or interface imagereference? or set attribute on images themselves?

can shed light on this?

cheers in advance.

as of version 1.1 of wearable support library (which fragmentgridpageradapter part of), methods have changed quite bit: no longer use sort of imagereference class - new method, getbackgroundforpage, returns drawable.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -