システムナビゲーションの背景をボトムナビゲーションと同じに

This commit is contained in:
ろむねこ 2024-01-19 14:56:44 +09:00
parent de9b68de87
commit defc051436
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,11 +1,13 @@
package one.nem.lacerta;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.FragmentManager;
import androidx.navigation.NavController;
import androidx.navigation.fragment.NavHostFragment;
import androidx.navigation.ui.NavigationUI;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.Toast;
@ -36,6 +38,8 @@ public class MainActivity extends AppCompatActivity {
Toast.makeText(this, "testMessage", Toast.LENGTH_SHORT).show();
getWindow().setNavigationBarColor(ContextCompat.getColor(this, one.nem.lacerta.shared.ui.R.color.colorSurfaceVariant));
}