https://kotlinlang.org logo
Title
m

mkodekar

06/13/2017, 6:00 AM
And fragments are a pain, you should use screens and views
r

radityagumay

06/13/2017, 6:01 AM
mkodekar: what do you mean by screen?
m

mkodekar

06/13/2017, 6:02 AM
r

radityagumay

06/13/2017, 6:02 AM
so far i know, fragment should be acceptable for complex view

https://www.youtube.com/watch?v=k3IT-IJ0J98ā–¾

https://www.youtube.com/watch?v=eUG3VWnXFtg&t=1044sā–¾

advise me, if i am wrong
šŸ™‚
m

mkodekar

06/13/2017, 6:03 AM
Tell me about fragment lifecycle
How many methods
r

radityagumay

06/13/2017, 6:04 AM
i see, much override functions
just take a look the code
the screen itself just a custom view
i also implements this kind
so, did you not use a fragment
m

mkodekar

06/13/2017, 6:05 AM
See there are lesser in views and screens
And then there is less code and savedinstance state to be lost.
r

radityagumay

06/13/2017, 6:06 AM
how you avoid configuration changes?
m

mkodekar

06/13/2017, 6:08 AM
There is onSave and on restore for that
Which handles it
And view does not changes it state when rotated
Or does it.
And there is not configuration changed method for views and screens
r

radityagumay

06/13/2017, 6:09 AM
it will changes, all you view or screen just implemented in activty
did you use kind MVP for this?
m

mkodekar

06/13/2017, 6:11 AM
It won't try it
Yes its mvp
r

radityagumay

06/13/2017, 6:11 AM
i see
thanks for sharing
šŸ™‚
it pleasure to see my github
keep in touch brother
m

mkodekar

06/13/2017, 6:13 AM
Yeah sure .
k

kingsley

06/13/2017, 6:48 PM
@mkodekar why do you say fragments are a pain. I've been using them successfully in fairly large projects without any "pain". IMHO, once you understand them, they are a real pleasure to use. Fragments have a lot of lifecycle events, yes. But you should only care about the ones that you need. Just like activities. I agree there might be some rather good cons. But I fail to see any from your comments
r

radityagumay

06/13/2017, 7:07 PM
Actually I use fragment for all my project, and that really good.
šŸ’Æ 2
m

mkodekar

06/15/2017, 6:41 AM
I don't have any major issues with fragments as well but sometimes building complex ui with fragments becomes a pain, secondly the screen and view architecture certainly is a good alternative for me to do such type of stuffs.
šŸ‘ 1