我正在获取动画图像。但没有得到上面有文字的圆圈。
代码:-
<?xml version="1.0" encoding="utf-8"?>
<developer.shivam.library.CrescentoContainer android:layout_width="match_parent"
android:layout_height="300dp"
xmlns:attribute="http://schemas.android.com/tools"
android:elevation="20dp"
android:scaleType="centerCrop"
attribute:curvature="50dp"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.flaviofaria.kenburnsview.KenBurnsView
android:src="@drawable/goal_wallpaper"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:gravity="center"
android:orientation="horizontal"
android:weightSum="3"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_weight="0.8"
android:layout_width="wrap_content"
android:layout_height="100dp">
<ImageView
android:backgroundTint="@color/green"
android:background="@drawable/circle1"
android:layout_width="0dp"
android:layout_height="100dp" />
<TextView
android:layout_centerInParent="true"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:text="140/80"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
<de.hdodenhof.circleimageview.CircleImageView
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:src="@drawable/bp"
android:layout_weight="1.4"
android:layout_width="0dp"
android:layout_height="match_parent" />
<RelativeLayout
android:layout_weight="0.8"
android:layout_width="wrap_content"
android:layout_height="100dp">
<ImageView
android:backgroundTint="@color/green"
android:background="@drawable/circle1"
android:layout_width="0dp"
android:layout_height="100dp" />
<TextView
android:layout_centerInParent="true"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:text="140/80"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
</LinearLayout>
</developer.shivam.library.CrescentoContainer>
我将 CrescentoContainer 用于底部曲线图像,将 KenBurnsView 用于动画图像。有时我也会出现内存不足错误。