Tesis 1.0.0
Loading...
Searching...
No Matches
BottomBar.java
Go to the documentation of this file.
1package com.example.food_front;
2
3import android.os.Bundle;
4
5import androidx.activity.EdgeToEdge;
6import androidx.appcompat.app.AppCompatActivity;
7import androidx.core.graphics.Insets;
8import androidx.core.view.ViewCompat;
9import androidx.core.view.WindowInsetsCompat;
10
11public class BottomBar extends AppCompatActivity {
12
13 @Override
14 protected void onCreate(Bundle savedInstanceState) {
15 super.onCreate(savedInstanceState);
16 EdgeToEdge.enable(this);
17 setContentView(R.layout.activity_bottom_bar);
18 ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
19 Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
20 v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
21 return insets;
22 });
23 }
24}
void onCreate(Bundle savedInstanceState)