скриншот моего приложения
Я уже пытался изменить параметры в файле theme.xml, но проблема не устранена.
Мой макет:
Код: Выделить всё
...
Код: Выделить всё
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
insets
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... ge-to-edge
Мобильная версия