Skip to content

In this project there is a simple example of using ViewModel of android ViewModel has been announced in IO17 the main idea of it is to solve the problems of onConfigrationChanged like rotation and to solve problems when one fragment tries to connect with another fragment no more callbacks and headache

Notifications You must be signed in to change notification settings

abos3d/ViewModelExample

Repository files navigation

#Android View Model Example

In this project there is a simple example of using ViewModel of android

ViewModel has been announced in IO17

the main idea of it is to solve the problems of onConfigurationChanged like rotation

and to solve problems when one fragment tries to connect with another fragment

no more callbacks and headache

UPDATE 1 : now it will support if the app has been terminated and reopened by the user

مثال على View model

في هذا المشروع هناك مثال بسيط على استخدام View model في الاندرويد

الذي تم الاعلان عنه في مؤتمر قوقل للمطورين 2017

والفكرة الرئيسية من ذلك هو حل مشاكل دوران الشاشة إلى الوضع الافقي او العكس او مايشابه ذلك ويسبب onConfigurationChanged

وحل مشكلة عندما يحاول fragment التواصل مع fragment آخر

لا مزيد من callbacks والصداع

تحديث 1 : تم دعم في حالة قام النظام بإغلاق التطبيق ثم تم الرجوع له من المستخدم

About

In this project there is a simple example of using ViewModel of android ViewModel has been announced in IO17 the main idea of it is to solve the problems of onConfigrationChanged like rotation and to solve problems when one fragment tries to connect with another fragment no more callbacks and headache

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages