OZ10 / Stropping

0 stars 0 forks source link

Ingredients Fragment - Initialise #11

Closed OZ10 closed 8 years ago

OZ10 commented 8 years ago

Create initialise statement for the Ingredients fragment. Initialise options should be:

This should allow the reuse of the Ingredients fragment in the edit recipe activity

OZ10 commented 8 years ago

Seems the 'initialise' statement is 'onCreate'. Needs further investigation.

OZ10 commented 8 years ago

Possible solution: http://stackoverflow.com/a/28882536/3248425

OZ10 commented 8 years ago

Fixed this by creating a custom list adapter which has it's own user-defined initialiser. Adapter can be initialised with an enum value which the adapter then uses to determine how to setup the view.