0

I have a spinner element inside a table row, like this:

<TableRow android:background="@drawable/cell_styles_1">
    <TextView
        android:text="Bill type"
        android:layout_width="match_parent"
        android:fontFamily="sans-serif-condensed"
        android:textColor="@color/white"
        android:padding="5dp"
        android:layout_marginStart="10pt"/>
    <Spinner
        android:layout_width="wrap_content"
        android:id="@+id/bill_type"
        android:textStyle="bold"
        android:textColor="@color/white"
        android:padding="5dp"
        android:layout_marginStart="10pt">
    </Spinner>
</TableRow>

Rendered view: Please click here

I want an animation to play where the spinner is focused, so that it gets highlighted to the user. For this purpose I implemented TapTargetView library, like this:

TapTargetView.showFor(this,                 
    TapTarget.forView(findViewById(R.id.bill_type),)
        .outerCircleColor(R.color.red)      
    .outerCircleAlpha(0.96f)            
        .targetCircleColor(R.color.white)   
        .titleTextSize(20)                  
        .titleTextColor(R.color.white)      
        .descriptionTextSize(10)            
        .descriptionTextColor(R.color.red)  
        .textColor(R.color.blue)            
        .textTypeface(Typeface.SANS_SERIF)  
        .dimColor(R.color.black)            
        .drawShadow(true)                   
        .cancelable(false)                 
        .tintTarget(true)                   
        .transparentTarget(false)           
        .icon(Drawable)                     
        .targetRadius(60),                  
    new TapTargetView.Listener() {          
        @Override
        public void onTargetClick(TapTargetView view) {
            //do something
        }
    });

But to my utter disappointment, it just shows a circular focus on the spinner. I want the complete spinner to be focused (the one outlined by the blue border in the image). Is there a way to do so? Is there any other library which will give the desired output?

0 Answers0