ViewModel in MVVM Android Architecture -


i developing android apps customize in toolbar. so, decide make custom toolbar layout. add action textview, toolbar's action different each fragments. when first develop put custom toolbar in each fragment.

but think, why don't simplify putting toolbar each activity , manage action if different fragment attached.

in moment, think again. how can manage different actions if want implement mvvm? in mind now, viewmodel responsible view state screen transition screen.

i need advice problem, , implement on mvvm architecture.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -