AAChartCore-Kotlin icon indicating copy to clipboard operation
AAChartCore-Kotlin copied to clipboard

ChartView works only with "match_parent"

Open guglielmo-boi opened this issue 4 years ago β€’ 2 comments

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?

guglielmo-boi avatar May 22 '21 08:05 guglielmo-boi

Not true.

skyridertk avatar Jul 12 '21 20:07 skyridertk

//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>

skyridertk avatar Jul 12 '21 20:07 skyridertk