Comments (5)
The Issue is caused at the line 121 in RecordView ,don't know reason
animatedVectorDrawable = AnimatedVectorDrawableCompat.create(context, R.drawable.basket_animated);
so I added a version check before its usages
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
animatedVectorDrawable = AnimatedVectorDrawableCompat.create(context, R.drawable.basket_animated);
in animateBasketMethod
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
basketImg.setImageDrawable(animatedVectorDrawable);
else
basketImg.setImageResource(R.drawable.ic_delete);
in OnAnimationEnd
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
animatedVectorDrawable.start();
from recordview.
@Redman1037 can you please provide the XML ?
from recordview.
<?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:layout_height="match_parent"
android:background="@color/backGround"
android:orientation="vertical">
<include layout="@layout/default_toolbar" />
<in.eightfolds.soundvision.utils.MyTextViewCenturyGothic
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Mp3 files"
style="@style/tvIntermediateHeading"/>
<RelativeLayout 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:id="@+id/parent_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.devlomi.recordview.MainActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview_songsList"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
<RelativeLayout
android:id="@+id/relative_mic"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<com.devlomi.record_view.RecordView
android:id="@+id/record_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="15dp"
android:layout_toLeftOf="@id/record_button"
app:slide_to_cancel_arrow="@drawable/ic_keyboard_arrow_left"
app:slide_to_cancel_margin_right="15dp"
app:slide_to_cancel_text="Slide To Cancel" />
<com.devlomi.record_view.RecordButton
android:id="@+id/record_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="15dp"
android:layout_marginRight="5dp"
android:background="@drawable/mic_bg"
android:padding="20dp"
android:scaleType="centerInside"
app:src="@drawable/ic_mic_white" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
from recordview.
Hey @Redman1037 the problem is because you have the Drawable with the name ic_delete which is the same name of the Vector Drawable that included in the Library.
you can just rename the the drawable ic_delete that you have to another name ,until i push the new Update and change the name of it.
please try it and report back.
from recordview.
A new update has been published with fixes for the drawables names issues
from recordview.
Related Issues (20)
- Record view works fine on emulator but not on physical device HOT 2
- Fatal Exception: java.lang.NullPointerException HOT 2
- How to change record button background color? HOT 4
- Attempt to invoke interface method 'boolean com.devlomi.record_view.RecordPermissionHandler.isPermissionGranted()' on a null object reference HOT 1
- Recorded Audio HOT 1
- java.lang.NullPointerException: Attempt to invoke virtual method 'void com.devlomi.record_view.RecordView.onActionDown(com.devlomi.record_view.RecordButton, android.view.MotionEvent)' on a null object reference HOT 1
- if the phone's system font size is too large, the audio recording will be canceled as soon as it starts HOT 4
- Can't change the Growing animation scale-up value.
- how change cancel direction HOT 1
- recordview causes recyclerview to malfunction HOT 13
- How can I solve this error? HOT 3
- Seen Weird behaviour when using with epoxy recycler view and parent is constraint layout HOT 1
- Render problems from example app HOT 1
- Render problems from example app HOT 2
- just click on mic HOT 1
- Lock View Like Whatsapp HOT 1
- Listener for recording LOCKED event HOT 1
- UI allignment issue and swipe to cancel not working properly HOT 1
- Exception in MessageQueue callback: handleReceiveCallback java.lang.NullPointerException: Attempt to invoke virtual method 'void com.devlomi.record_view.RecordView.onActionDown(com.devlomi.record_view.RecordButton, android.view.MotionEvent)' on a null object reference HOT 1
- Plugin crashes when quickly tapping on the record button [Very rare] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recordview.