romtsn / ArcNavigationView

Another approach to create NavigationDrawer with Material concepts
Apache License 2.0
678 stars 135 forks source link

Got Black Color BackGround After 3 second #8

Closed DhiralKaniya closed 4 years ago

DhiralKaniya commented 7 years ago

Hey I am using this library. Here is my xml file.

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">

    <data>

        <variable
            name="hvm"
            type="com.example.the_king.apartmentmanagementsystem.ViewModal.HomeViewModal"/>
    </data>

    <android.support.v4.widget.DrawerLayout
        android:id="@+id/drawer_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="true"
        tools:openDrawer="start">

        <android.support.design.widget.CoordinatorLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fitsSystemWindows="true">

            <android.support.design.widget.AppBarLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:theme="@style/AppTheme.AppBarOverlay">

                <android.support.v7.widget.Toolbar
                    android:id="@+id/toolbar"
                    android:layout_width="match_parent"
                    android:layout_height="?attr/actionBarSize"
                    android:background="?attr/colorPrimary"
                    app:popupTheme="@style/AppTheme.PopupOverlay"/>

            </android.support.design.widget.AppBarLayout>

            <FrameLayout
                android:id="@+id/content"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:paddingBottom="@dimen/activity_vertical_margin"
                android:paddingLeft="@dimen/activity_horizontal_margin"
                android:paddingRight="@dimen/activity_horizontal_margin"
                android:paddingTop="@dimen/activity_vertical_margin"
                app:layout_behavior="@string/appbar_scrolling_view_behavior">
            </FrameLayout>
            <FrameLayout
                android:id="@+id/progressLayout"
                android:layout_width="373dp"
                android:layout_height="500dp"
                android:layout_marginRight="8dp"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                android:layout_marginTop="8dp"
                android:layout_marginLeft="8dp"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                android:layout_marginBottom="8dp"
                android:animateLayoutChanges="true"
                android:alpha="0.4"
                android:visibility="gone"
                android:background="@color/colorPrimaryLight" >
                <com.wang.avi.AVLoadingIndicatorView
                    android:id="@+id/avi"
                    style="@style/AVLoadingIndicatorView"
                    android:layout_height="150dp"
                    android:layout_width="150dp"
                    android:layout_gravity="center"
                    android:indeterminate="true"
                    app:indicatorName="PacmanIndicator"
                    app:indicatorColor="@color/colorPrimaryDark" />
            </FrameLayout>

        </android.support.design.widget.CoordinatorLayout>

        <com.rom4ek.arcnavigationview.ArcNavigationView
            android:id="@+id/nav_view"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="start"
            android:background="@android:color/white"
            android:fitsSystemWindows="true"
            app:itemBackground="@android:color/white"
            app:menu="@menu/activity_home_drawer"
            app:arc_cropDirection="cropOutside"
            app:arc_width="96dp"/>
        <!--<android.support.design.widget.NavigationView
            android:id="@+id/nav_view"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="start"
            android:fitsSystemWindows="true"
            app:menu="@menu/activity_home_drawer">
        </android.support.design.widget.NavigationView>-->
    </android.support.v4.widget.DrawerLayout>
</layout>

I got some thing back blackground Image

romtsn commented 6 years ago

What device and android version is it? I'm not able to reproduce it unfortunately

DhiralKaniya commented 6 years ago

Android Moto X Play and Nougat. Still, the application is installed in the device but having the same issue and also check with Moto G3.

romtsn commented 6 years ago

I'm sorry, but I don't know, what could be the reason of this. Could you post your project or part of it on Github, so I could take a closer look?