FolioReader / FolioReader-Android

A Java ePub reader and parser framework for Android.
BSD 3-Clause "New" or "Revised" License
2.25k stars 717 forks source link

android:progressBarStyle not found. #488

Open iamnaran opened 3 years ago

iamnaran commented 3 years ago

Issue / Feature - /res/layout/progress_dialog.xml:13: AAPT: error: resource android:attr/android:progressBarStyle not found. FolioReader version - 0.5.4 FolioReader Stock / Modified -
Android SDK - Any Mobile / Tablet / Emulator Info - Any Crash / Error - gradle/caches/transforms-2/files-2.1/b97e76bcc82f926eef60440d5ba2b2fe/jetified-folioreader-0.5.4/res/layout/progress_dialog.xml:13: AAPT: error: resource android:attr/android:progressBarStyle not found.

Steps to reproduce / Describe in detail -

Import Library implementation 'com.folioreader:folioreader:0.5.3' Then Run Project.

itwareeram commented 3 years ago

You can fix this: in your project app module Goto :- android-project-location/app/src/main/res/layout/ and create file 'progress_dialog.xml' and copy paste code :


<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <LinearLayout
        android:id="@+id/layout_loading"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="center">
        <ProgressBar
            android:id="@+id/loading"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            style="?android:attr/progressBarStyle" />
        <TextView
            android:id="@+id/label_loading"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:textSize="18sp"
            android:textColor="@android:color/white"
            android:text="@string/loading" />
    </LinearLayout>
</RelativeLayout>

this will solve your problem

weijingtai commented 3 years ago

@itwareeram Thanks, it's working