Open GoogleCodeExporter opened 8 years ago
After playing with this more. It seems the problem with extending the
ListPickerActivity class and simply overriding onCreate, is that there is
another reference in the class to itself, that we can't change. in the get
View method, there is a line,
draw = MediaUtil.getDrawable(ListPickerActivity.this, item.ImageFile());
that references its on class name. I ignored this and was able to extend the
class, but i am unfamiliar with how this line affects that.
in the end, it seems there are a few methods that if added to the ListPick
class would be useful for anyone moving forward, even if you are doing a custom
listview. From what I can see those methods are. These seem like they would
be difficult to implement in the bridge (maybe not?, i cant figure it out), but
would be extremely useful and easy to use once implemented.
ListPick.setActionBarTitle(String title){
}
ListPick.setActionBarSubTitle(String subTitle){
}
ListPick.addMenuXML(R.id.menu_layout.xml) {
//This method will allow you to set the menu layout to be used with this
//listpick (for actionBar purposes, lots of uses, besides actionbuttons, also
//search)
}
ListPick.handleMenuSelection() {
//We need a method for handling what to do when an actionBar item is clicked
//i.e. the onMenuItemSelected method
//Not sure the best way to implement this
}
Original comment by bric...@gmail.com
on 8 May 2013 at 3:57
Original issue reported on code.google.com by
bric...@gmail.com
on 7 May 2013 at 4:49