I was using one dependency that was working fine, I have seen that it is deprecated, so I am not going to use it more, this was the dependency:dependency I was using
If you see, the About of this depencency, says the following:
Deprecated because of the performance not fine. Android custom shadow view, can replace your CardView
I am trying to replace what I was using from that dependency for the Android custom shadow view as the dependency About says, but I don´t know how could I do it.
This is what I was using:
<com.loopeer.shadow.ShadowView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="14dp"
android:layout_marginEnd="14dp"
android:layout_weight="1"
android:elevation="@dimen/shel"
app:cornerRadiusTL="@dimen/hol"
app:cornerRadiusTR="@dimen/car"
app:shadowMarginLeft="@dimen/shadow"
app:shadowMarginRight="@dimen/margn"
app:shadowRadius="@dimen/radius">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:visibility="visible">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/sign_stp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:padding="6dp"
android:text="@string/sign"
android:textAppearance="@style/Base.TextAppearance.AppCompat.Medium"
android:textColor="@color/red" />
</LinearLayout>
</LinearLayout>
</com.loopeer.shadow.ShadowView>
Also I had made the following function to show card view:
public void showCardView() {
Animation.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
LinearLayout.setVisibility(View.VISIBLE);
}
@Override
public void onAnimationRepeat(Animation animation) {
}
});
LinearLayout.startAnimation(Animation);
}
In the main.activity.java the above function is run:
showCardView();