Changing the states of widgets by clicking button
<p>am new to android , totally there are 5 images....</p>

<p>Two main buttons are <strong>up and down arrows</strong> (Image buttons)... and <strong>three images</strong> (Image Buttons)...<br>
  If i click <strong>down</strong> arrow, it should focus the image buttons one by one and if i click <strong>up</strong> arrow, vice versa...   Thanks in advance...</p>

<pre><code> &lt;ImageButton
        android:id="@+id/ib_movies"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:background="@drawable/img_trailer" /&gt;

    &lt;ImageButton
        android:id="@+id/ib_movies"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:background="@drawable/img_trailer" /&gt;

    &lt;ImageButton
        android:id="@+id/ib_movies"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:background="@drawable/img_trailer" /&gt;

    &lt;ImageButton
        android:id="@+id/iv_up_arrow"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/up_arrow" /&gt;

    &lt;ImageButton
        android:id="@+id/iv_down_arrow"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/down_arrow" /&gt;
</code></pre>
