The actual answer is: we don't... we had to when we were using Android legacy Views, but now we have jetpack Compose and we call setContent() instead. The rest of the answer is still true: we have to call setContentView() or setContent() in onCreate() method of Activity to have it called once and once only.
The actual answer is: we don't... we had to when we were using Android legacy Views, but now we have jetpack Compose and we call setContent() instead. The rest of the answer is still true: we have to call setContentView() or setContent() in onCreate() method of Activity to have it called once and once only.
Thank you Amit sir 🙏🏽
Welcome
thnks sirJi
Welcome
Thanks Amir
Welcome
Bro should we still learn xml layout Design in Android??
Depends on your use case.
@@amitshekhar wouldn't Jetpack compose replace XML?
@@himanshukandwal3203 what if a company gives you an interview assignment to be done with XML.
@@amitshekhar I got it bro but why would they? XML and Jetpack compose being good at both is difficult. 🥲