user interface - Is it good practice to show and hide view components in Layout of Android UI screen -


currently, designing screen, need different buttons different user types. other ui components same. suggested hide/show button while loading screen particular user or should keep separate ui separate user-type?

you can reuse layout in java there things keep in mind while reusing layout.

if layout has whole lot of view not advised because when layout inflates ui components inflates whether visible or gone. totally depends on use case.

my personal advice can use different layout different type of users because changing layout easier in future. , doesn't have lot of effect on app size.

i have seen apps myntra uses separate layouts. can decompile apk , check coding patterns


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -