feat(profile page): Better charts view ig

This commit is contained in:
aayush262 2024-03-03 20:36:24 +05:30
parent 03b8e7dab6
commit 297e9dd756
2 changed files with 421 additions and 126 deletions

View file

@ -93,6 +93,8 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
loadStats(type == MediaType.ANIME) loadStats(type == MediaType.ANIME)
} }
loadStats(type == MediaType.ANIME) loadStats(type == MediaType.ANIME)
binding.statisticProgressBar.visibility = View.GONE
binding.chartsContainer.visibility = View.VISIBLE
} }
} }
} }
@ -271,7 +273,6 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
val palette = generateColorPalette(primaryColor, names.size) val palette = generateColorPalette(primaryColor, names.size)
return AAChartModel() return AAChartModel()
.chartType(AAChartType.Pie) .chartType(AAChartType.Pie)
.title("Format")
.subtitle(getTypeName()) .subtitle(getTypeName())
.zoomType(AAChartZoomType.XY) .zoomType(AAChartZoomType.XY)
.dataLabelsEnabled(true) .dataLabelsEnabled(true)
@ -302,7 +303,6 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
val palette = generateColorPalette(primaryColor, names.size) val palette = generateColorPalette(primaryColor, names.size)
return AAChartModel() return AAChartModel()
.chartType(AAChartType.Funnel) .chartType(AAChartType.Funnel)
.title("Status")
.subtitle(getTypeName()) .subtitle(getTypeName())
.zoomType(AAChartZoomType.XY) .zoomType(AAChartZoomType.XY)
.dataLabelsEnabled(true) .dataLabelsEnabled(true)
@ -333,7 +333,6 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
val palette = generateColorPalette(primaryColor, names.size) val palette = generateColorPalette(primaryColor, names.size)
return AAChartModel() return AAChartModel()
.chartType(AAChartType.Column) .chartType(AAChartType.Column)
.title("Score")
.subtitle(getTypeName()) .subtitle(getTypeName())
.zoomType(AAChartZoomType.XY) .zoomType(AAChartZoomType.XY)
.dataLabelsEnabled(false) .dataLabelsEnabled(false)
@ -368,7 +367,6 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
val palette = generateColorPalette(primaryColor, names.size) val palette = generateColorPalette(primaryColor, names.size)
return AAChartModel() return AAChartModel()
.chartType(AAChartType.Pyramid) .chartType(AAChartType.Pyramid)
.title("Length")
.subtitle(getTypeName()) .subtitle(getTypeName())
.zoomType(AAChartZoomType.XY) .zoomType(AAChartZoomType.XY)
.dataLabelsEnabled(true) .dataLabelsEnabled(true)
@ -400,7 +398,6 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
val hexColorsArray: Array<Any> = palette.map { String.format("#%06X", 0xFFFFFF and it) }.toTypedArray() val hexColorsArray: Array<Any> = palette.map { String.format("#%06X", 0xFFFFFF and it) }.toTypedArray()
return AAChartModel() return AAChartModel()
.chartType(AAChartType.Bubble) .chartType(AAChartType.Bubble)
.title("Release Year")
.subtitle(getTypeName()) .subtitle(getTypeName())
.zoomType(AAChartZoomType.XY) .zoomType(AAChartZoomType.XY)
.dataLabelsEnabled(false) .dataLabelsEnabled(false)
@ -435,7 +432,6 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
val hexColorsArray: Array<Any> = palette.map { String.format("#%06X", 0xFFFFFF and it) }.toTypedArray() val hexColorsArray: Array<Any> = palette.map { String.format("#%06X", 0xFFFFFF and it) }.toTypedArray()
return AAChartModel() return AAChartModel()
.chartType(AAChartType.Bar) .chartType(AAChartType.Bar)
.title("Start Year")
.subtitle(getTypeName()) .subtitle(getTypeName())
.zoomType(AAChartZoomType.XY) .zoomType(AAChartZoomType.XY)
.dataLabelsEnabled(false) .dataLabelsEnabled(false)
@ -470,7 +466,6 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
val hexColorsArray: Array<Any> = palette.map { String.format("#%06X", 0xFFFFFF and it) }.toTypedArray() val hexColorsArray: Array<Any> = palette.map { String.format("#%06X", 0xFFFFFF and it) }.toTypedArray()
return Pair(AAChartModel() return Pair(AAChartModel()
.chartType(AAChartType.Area) .chartType(AAChartType.Area)
.title("Genre")
.subtitle(getTypeName()) .subtitle(getTypeName())
.zoomType(AAChartZoomType.XY) .zoomType(AAChartZoomType.XY)
.dataLabelsEnabled(false) .dataLabelsEnabled(false)
@ -555,7 +550,7 @@ class StatsFragment(private val user: Query.UserProfile, private val activity: P
private fun setColors(aaOptions: AAOptions) { private fun setColors(aaOptions: AAOptions) {
val backgroundColor = TypedValue() val backgroundColor = TypedValue()
activity.theme.resolveAttribute(android.R.attr.windowBackground, backgroundColor, true) activity.theme.resolveAttribute(com.google.android.material.R.attr.colorSurfaceVariant, backgroundColor, true)
val backgroundStyle = AAStyle().color( val backgroundStyle = AAStyle().color(
AAColor.rgbaColor( AAColor.rgbaColor(
Color.red(backgroundColor.data), Color.red(backgroundColor.data),

View file

@ -5,152 +5,452 @@
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"> android:orientation="vertical"
tools:ignore="HardcodedText,RtlSymmetry">
<LinearLayout <LinearLayout
android:id="@+id/filterContainer" android:id="@+id/filterContainer"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:padding="16dp"> android:padding="16dp"
android:baselineAligned="false">
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
android:id="@+id/sourceTypeNameContainer" android:id="@+id/sourceTypeNameContainer"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu" style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="56dp" android:layout_height="56dp"
android:layout_weight="1"
android:hint="Type"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
app:boxStrokeColor="@color/text_input_layout_stroke_color"
app:hintAnimationEnabled="true"
android:paddingEnd="8dp">
<AutoCompleteTextView
android:id="@+id/sourceType"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end"
android:fontFamily="@font/poppins_bold"
android:freezesText="false"
android:inputType="none"
android:maxLines="1"
android:padding="8dp"
android:text="@string/anime"
android:textAllCaps="true"
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp"
tools:ignore="LabelFor,TextContrastCheck,DuplicateSpeakableTextCheck" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/sourceFilterNameContainer"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_weight="1"
android:hint="View"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
app:boxStrokeColor="@color/text_input_layout_stroke_color"
app:hintAnimationEnabled="true"
android:paddingEnd="8dp">
<AutoCompleteTextView
android:id="@+id/sourceFilter"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:hint="Type" android:ellipsize="end"
app:boxCornerRadiusBottomEnd="8dp" android:fontFamily="@font/poppins_bold"
app:boxCornerRadiusBottomStart="8dp" android:freezesText="false"
app:boxCornerRadiusTopEnd="8dp" android:inputType="none"
app:boxCornerRadiusTopStart="8dp" android:maxLines="1"
app:boxStrokeColor="@color/text_input_layout_stroke_color" android:padding="8dp"
app:hintAnimationEnabled="true" android:text="COUNT"
android:paddingEnd="8dp"> android:textAllCaps="true"
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp"
tools:ignore="LabelFor,TextContrastCheck,DuplicateSpeakableTextCheck" />
</com.google.android.material.textfield.TextInputLayout>
<AutoCompleteTextView </LinearLayout>
android:id="@+id/sourceType"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end"
android:fontFamily="@font/poppins_bold"
android:freezesText="false"
android:inputType="none"
android:maxLines="1"
android:padding="8dp"
android:text="@string/anime"
android:textAllCaps="true"
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp"
tools:ignore="LabelFor,TextContrastCheck,DuplicateSpeakableTextCheck" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout <LinearLayout
android:id="@+id/sourceFilterNameContainer" android:id="@+id/statisticProgressBar"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu" android:layout_width="match_parent"
android:layout_width="0dp" android:layout_height="match_parent"
android:layout_height="56dp" android:gravity="center"
android:layout_weight="1" tools:visibility="gone">
android:hint="View" <ProgressBar
app:boxCornerRadiusBottomEnd="8dp" style="?android:attr/progressBarStyle"
app:boxCornerRadiusBottomStart="8dp" android:layout_width="wrap_content"
app:boxCornerRadiusTopEnd="8dp" android:layout_height="wrap_content" />
app:boxCornerRadiusTopStart="8dp" </LinearLayout>
app:boxStrokeColor="@color/text_input_layout_stroke_color"
app:hintAnimationEnabled="true"
android:paddingEnd="8dp">
<AutoCompleteTextView <LinearLayout
android:id="@+id/sourceFilter" android:id="@+id/chartsContainer"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:visibility="gone"
android:ellipsize="end" tools:visibility="visible"
android:fontFamily="@font/poppins_bold" android:orientation="vertical">
android:freezesText="false" <LinearLayout
android:inputType="none" android:layout_width="match_parent"
android:maxLines="1" android:layout_height="wrap_content"
android:padding="8dp" android:orientation="vertical">
android:text="COUNT" <TextView
android:textAllCaps="true" android:layout_width="wrap_content"
android:textColor="?android:attr/textColorSecondary" android:layout_height="wrap_content"
android:textSize="14sp" android:layout_gravity="center"
tools:ignore="LabelFor,TextContrastCheck,DuplicateSpeakableTextCheck" /> android:fontFamily="@font/poppins_semi_bold"
</com.google.android.material.textfield.TextInputLayout> android:text="Format"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/formatChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout> </LinearLayout>
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <LinearLayout
android:id="@+id/formatChartView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="?android:colorBackground" android:layout_height="wrap_content"
android:layout_height="350dp" /> android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Score"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.google.android.material.card.MaterialCardView
android:id="@+id/scoreChartView" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="?android:colorBackground" android:layout_gravity="center"
android:layout_height="350dp" /> android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/statusChartView" android:id="@+id/scoreChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="?android:colorBackground" android:layout_height="wrap_content"
android:layout_height="350dp" /> android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Status"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.google.android.material.card.MaterialCardView
android:id="@+id/lengthChartView" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="?android:colorBackground" android:layout_gravity="center"
android:layout_height="350dp" /> android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/releaseYearChartView" android:id="@+id/statusChartView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="?android:colorBackground" android:background="?android:colorBackground"
android:layout_height="350dp" /> android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView </LinearLayout>
android:id="@+id/startYearChartView" <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="?android:colorBackground" android:layout_height="wrap_content"
android:layout_height="350dp" /> android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Length"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.google.android.material.card.MaterialCardView
android:id="@+id/genreChartView" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="?android:colorBackground" android:layout_gravity="center"
android:layout_height="350dp" /> android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/tagChartView" android:id="@+id/lengthChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="?android:colorBackground" android:layout_height="wrap_content"
android:layout_height="350dp" /> android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Release Year"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.google.android.material.card.MaterialCardView
android:id="@+id/countryChartView" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="?android:colorBackground" android:layout_gravity="center"
android:layout_height="350dp" /> android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/voiceActorChartView" android:id="@+id/releaseYearChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="?android:colorBackground" android:layout_height="wrap_content"
android:layout_height="350dp" /> android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Start Year"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.google.android.material.card.MaterialCardView
android:id="@+id/staffChartView" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="?android:colorBackground" android:layout_gravity="center"
android:layout_height="350dp" /> android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView <com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/studioChartView" android:id="@+id/startYearChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="?android:colorBackground" android:layout_height="wrap_content"
android:layout_height="350dp" /> android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Genre"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/genreChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Tag"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/tagChartChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Country of Origin"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/countryChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Voice Actor"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/voiceActorChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Staff"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/staffChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:text="Studio"
android:textColor="?attr/colorPrimary"
android:textSize="16sp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:backgroundTint="@color/transparent"
app:cardCornerRadius="64dp">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/studioChartView"
android:layout_width="match_parent"
android:background="?android:colorBackground"
android:layout_height="350dp" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>