Hacker News new | past | comments | ask | show | jobs | submit login

Nowadays it's recommended to use Fragments instead of Activities, but it's kind of controversial topic.

It looks like you have some hardcoded data. I would move that to resources. You can use some kind of JSON or XML format to store that.

Another thing I would do is split classes into packages. Usually you would have one for UI layer, one for data layer etc.




Thanks for your feedback. I tried to use data classes in Kotlin to remove hardcoded data from the main code. In Python, this is easy and very useful. Splitting the classes was confusing. I am sure I am going to make it better in my next App.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: