AAChartCore-Kotlin
AAChartCore-Kotlin copied to clipboard
ChartView works only with "match_parent"
The ChartView works only with "match_parent" for both layout_width and layout_height. Is there a way to use it in a layout where there are other views?
Not true.
//this works
<data>
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/aa_chart_view"
android:layout_width="match_parent"
android:layout_height="500dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>