I have created a roundbutton. I want to display this roundbutton for the number in the count. The count represents the number of button presses. For example if the count equals 2 then 2 roundbutton must appear on the screen. Instead of me having to put each button on the screen and making it invisible at first then visible depending on the count.
roundbutton
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#FF2A2A" />
<corners android:bottomRightRadius="10dp"
android:bottomLeftRadius="10dp"
android:topRightRadius="10dp"
android:topLeftRadius="10dp"/>
</shape>