Blinking border of a View
<p>I have a <code>View</code> and a border which i wanted to blink specific time. I tried to to make blink but the problem is whole view is blinking. i know its becource i mentioned <code>View</code> inside a <code>Linearlayout</code> which background set to a border stock.</p>

<p>Here is the code:</p>

<pre><code>xml:
&lt;LinearLayout
        android:layout_width="14dp"
        android:layout_height="14dp
        android:id="@+id/rect2"
        android:background="@drawable/cir"
        &gt;

        &lt;View
            android:layout_width="5dp"
            android:layout_height="5dp"
            android:background="#14FFFFFF"
           android:layout_marginTop="3dp"
          android:layout_marginLeft="3dp"
            android:id="@+id/inrect2"
       /&gt;
    &lt;/LinearLayout&gt;
</code></pre>

<p>java:</p>

<pre><code> //somecode
            setContentView(R.layout.activity_main);
             re2=(LinearLayout)findViewById(R.id.rect2);
            myView2= findViewById(R.id.inrect2);

        ((GradientDrawable)re1.getBackground()).setStroke(1,Color.WHITE);
                    AlphaAnimation blinkanimation= new AlphaAnimation(1, 0); // Change alpha from fully visible to invisible
                    blinkanimation.setDuration(500); // duration - half a second
                    blinkanimation.setInterpolator(new LinearInterpolator()); // do not alter animation rate
                    blinkanimation.setRepeatCount(28); // Repeat animation infinitely
                    blinkanimation.setRepeatMode(Animation.REVERSE);
                    re1.startAnimation(blinkanimation);
</code></pre>

<p><code>re1.startAnimation(blinkanimation)</code> seems start animating whole linear layout,Is there anyway i can make blink only borders?
Any help would be appreciated! Thanks!</p>