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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -