jlmd / AnimatedCircleLoadingView

An animated circle loading view
Apache License 2.0
1.17k stars 210 forks source link

CircleLoadingView not being displayed #21

Open NabilEL opened 7 years ago

NabilEL commented 7 years ago

Hello,

I can't seem to get the lib to work at all. Nothing is being displayed either in Android Studio preview, and on my phone (OnePlus 3, Android 7.1). I'm using 1.1.5 version. Sdk min is 21, compile sdk is 25.

I call startIndeterminate in onCreate();

Here's my xml :

<?xml version="1.0" encoding="utf-8"?> <LinearLayout 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" android:layout_width="match_parent" android:background="@color/nice_blue" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical" tools:context="com.sagemcom.smartcompanion.ProcessQrCodeActivity">

<ProgressBar
    android:id="@+id/progress_bar"
    android:layout_gravity="center"
    android:visibility="gone"
    android:indeterminate="true"
    android:layout_width="200dp"
    android:layout_height="200dp" />

<com.github.jlmd.animatedcircleloadingview.AnimatedCircleLoadingView
    android:id="@+id/circle_loading_view"
    android:layout_width="250dp"
    android:layout_height="250dp"
    android:layout_gravity="center"
    app:mainColor="@color/white"
    app:secondaryColor="@color/colorPrimaryDark"
    app:textColor="@color/colorAccent"
    />

<TextView
    android:text="Loading"
    android:textSize="35sp"
    android:fontFamily="sans-serif-light"
    android:layout_gravity="center"
    android:textColor="@color/white"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

Thanks.

ghost commented 7 years ago

Same problem, only on Android 7 Any solution ?

mmamudassir commented 6 years ago

same issue facing please update as soon as possible

ghost commented 6 years ago

I had this matter here #26, see if it can helps.

sjd753 commented 6 years ago

Same problem here too! Android 7.0