diff --git a/app/src/main/java/net/pokeranalytics/android/ui/view/LegendView.kt b/app/src/main/java/net/pokeranalytics/android/ui/view/LegendView.kt index eab4bfe2..3d94b2a3 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/view/LegendView.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/view/LegendView.kt @@ -40,7 +40,7 @@ class LegendView : FrameLayout { private fun init() { val layoutInflater = LayoutInflater.from(context) legendLayout = layoutInflater.inflate(R.layout.layout_legend_default, this, false) as ConstraintLayout - val layoutParams = FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT) + val layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT) addView(legendLayout, layoutParams) } diff --git a/app/src/main/res/drawable/circle_green.xml b/app/src/main/res/drawable/circle_green.xml new file mode 100644 index 00000000..93111933 --- /dev/null +++ b/app/src/main/res/drawable/circle_green.xml @@ -0,0 +1,11 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/layout_legend_color.xml b/app/src/main/res/layout/layout_legend_color.xml new file mode 100644 index 00000000..2b4b9b82 --- /dev/null +++ b/app/src/main/res/layout/layout_legend_color.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + \ No newline at end of file