При запуске приложения на устройстве Android 9 (Lineage OS 16) оно работает без проблем.Но когда я пытаюсь открыть его на таких устройствах, как Nougat или Oreo, он просто показывает пустую активность белого цвета.( ПРИМЕЧАНИЕ: я получил этот белый пустой экран только на 1 или 2 секунды в Android 9 (ОС Lineage), но в Nougat и Oreo он застрял на пустом белом экране ).Я попытался запустить другие действия, так как Launcher Activity и другие работали, но класс MainActivity должен быть запущен, чтобы другие действия работали правильно.Я не знаю, была ли ошибка в дизайне макета или в классе Java (я думаю, что ошибка может быть не в классе Java, поскольку приложение отлично работает на устройстве Android 9 !!).Здесь я предоставил макет xml и класс Java.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:id="@+id/ll_ads"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal" />
<RelativeLayout
android:id="@+id/track_info"
android:background="#ff0000"
android:visibility="gone"
android:layout_width="fill_parent"
android:layout_height="@dimen/track_info_layout_height"
android:layout_above="@+id/ll_ads">
<LinearLayout
android:background="@color/bottom_control_background"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.makeramen.roundedimageview.RoundedImageView
android:layout_gravity="center_vertical"
android:id="@+id/artwork_min"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="4.0dip"
android:src="@drawable/default_artwork"
android:scaleType="fitXY"
android:contentDescription="@string/album_artwork" />
<RelativeLayout
android:padding="@dimen/content_padding"
android:layout_width="0.0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0">
<TextView
android:textSize="16.0sp"
android:textStyle="bold"
android:textColor="#ffffff"
android:ellipsize="end"
android:id="@+id/song_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:layout_alignParentTop="true" />
<TextView
android:textSize="14.0sp"
android:textColor="#ffffff"
android:ellipsize="end"
android:id="@+id/song_artist"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4.0dip"
android:singleLine="true"
android:layout_below="@+id/song_title" />
</RelativeLayout>
<LinearLayout
android:id="@+id/quick_controls"
android:layout_width="wrap_content"
android:layout_height="fill_parent">
<ImageButton
android:id="@+id/quick_prev"
android:background="?selectableItemBackgroundBorderless"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:src="@drawable/btn_prev"
android:scaleType="center"
android:contentDescription="@string/prev" />
<ImageButton
android:id="@+id/quick_play_pause_toggle"
android:background="?selectableItemBackgroundBorderless"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:src="@drawable/btn_play"
android:scaleType="center"
android:contentDescription="@string/play" />
<ImageButton
android:id="@+id/quick_next"
android:background="?selectableItemBackgroundBorderless"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:src="@drawable/btn_next"
android:scaleType="center"
android:contentDescription="@string/next" />
</LinearLayout>
</LinearLayout>
<com.musicplayer.players9.musicsamsung.free2018.widgets.ProgressBar
android:id="@+id/progress_bar"
android:padding="0.0dip"
android:layout_width="fill_parent"
android:layout_height="2.0dip"
android:layout_alignParentTop="true"
app:progressColor="?colorAccent" />
</RelativeLayout>
<FrameLayout
android:id="@+id/container"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/track_info" />
</RelativeLayout>
<android.support.design.widget.NavigationView
android:layout_gravity="start"
android:id="@+id/navigation_view"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
app:menu="@menu/navigation" />
</android.support.v4.widget.DrawerLayout>
Класс Java Lint to Java Class