I need for devices that have a system NavigationBar I could download markup files from another folder. Or is it better to simply use the values ​​from res / dimen , How can I tell from which folder to download resources? and how should this folder be called?

    1 answer 1

    You can create separate layout files for such purposes, for example. You have, for example, activity_main.xml . You copy it, and call a copy of navbar_activity_main . And in the Activity itself, check whether there is a navbar or not, and depending on this you expose a certain xml .

    So that the system itself determines this, I think it is impossible to do.

    • It turns out I can’t programmatically tell the program that if there is a navbar, then all the resources need to be taken from the "appropriate folder"? How do you adapt the app for Nexus devices? - Kirill Stoianov
    • @KirillStoianov, no way. Navbar in its essence should not affect anything other than the size of the display. And the size can be in theory the same, even without navbar, since there are no restrictions on resolution, display size, or aspect ratio. Ideally, your application should not depend on navbar at all - Vladyslav Matviienko
    • and how else can this be implemented? I tried through sH but I had problems, I described them in this question. stackoverflow.com/q/534975/191718 - Kirill Stoianov