<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<stroke
android:width="1dp"
android:color="@color/colorTurquoiseBlue" />
<solid android:color="#33d1a3" />
<padding
android:left="1dp"
android:right="1dp"
android:top="1dp"
android:bottom="1dp"
/>
<corners android:radius="3dp" />
</shape>
below textview
:
<android.support.v7.widget.AppCompatTextView
android:id="@+id/textView5"
android:layout_width="80dp"
android:layout_height="@dimen/margin_20dp"
android:layout_below="@+id/textView3"
android:layout_marginTop="10dp"
android:background="@drawable/textview_rounded_corner"
android:fontFamily="sans-serif"
android:gravity="center"
android:text="Added"
android:textColor="@color/colorWhite"
android:textSize="12sp"
android:textStyle="normal" />
I am calling textview_rounded_corner in background in textview
I have to set
programmatically in adapter can any one please suggest me how to achieve this I dont want to create three different xml for three different color i want set programmatically.