title: Creating Slot Machine Android
body: <p>Good Day.Im trying to make a slot machine game.Im running into huge problems of making slot machine like logic.First i tried to use the listView and infinite scroll but no success as its horribly not good to use one billion items into listView just to spin some items.Second i used ScrollView with ObjectAnimator but it pauses for second onAnimationRepeat method so no luck there too.Third i uses Google WhellDemo code buts its not slot more likely just a date picker and animation of that picker not as i wanted.So i started to make my own.I got the layout,got the linearLayout inside it and got 3 imagViews inside LinearLayout.Im starting animation on Linear Layout with this xml code.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  
      &lt;translate
          android:duration="1000"
          android:fromYDelta="0"
          android:repeatCount="4"
          android:repeatMode="restart"
          android:toYDelta="100%" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>However i got one more item OUTSIDE of visible area for user.That one item should pop down when animation start.So by logic whenever animation starts.the 3 visible items must go down and the 4th invisible item must be going down and become visible too.The problem is that animation starst,the 3 items goes down,but the forth item not visible and not going down with  them too...!Here is my layout code.</p>
  
  <pre><code>&lt;RelativeLayout
          android:id="@+id/slots_view_1"
          android:layout_width="50dp"
          android:layout_height="100dp"
          android:layout_centerHorizontal="true"
          android:layout_marginRight="5dp"
          android:layout_marginTop="50dp"
          android:layout_toLeftOf="@+id/slots_view_2"
          android:background="#ffffff"&gt;
  
  
              &lt;LinearLayout
                  android:id="@+id/firstSlotInnerLayout_1"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:gravity="center"
                  android:orientation="vertical"&gt;
  
                  &lt;ImageButton
                      android:layout_width="25dp"
                      android:layout_height="25dp"
                      android:layout_above="@+id/firstVisibleItem"
                      android:layout_centerHorizontal="true"
                      android:background="@drawable/symbol_12" /&gt;
  
                  &lt;ImageView
                      android:id="@+id/firstVisibleItem"
                      android:layout_width="25dp"
                      android:layout_height="25dp"
                      android:layout_alignParentTop="true"
                      android:layout_centerInParent="true"
                      android:background="@drawable/symbol_01" /&gt;
  
                  &lt;ImageView
                      android:id="@+id/sa"
                      android:layout_width="25dp"
                      android:layout_height="25dp"
                      android:layout_alignParentTop="true"
                      android:layout_centerInParent="true"
                      android:background="@drawable/symbol_01" /&gt;
                  &lt;ImageView
                      android:layout_width="25dp"
                      android:id="@+id/safasdfa"
                      android:layout_centerInParent="true"
                      android:layout_alignParentTop="true"
                      android:background="@drawable/symbol_11"
                      android:layout_height="25dp" /&gt;
                  &lt;ImageView
                      android:layout_width="25dp"
                      android:id="@+id/safasfa"
                      android:layout_centerInParent="true"
                      android:layout_alignParentTop="true"
                      android:background="@drawable/symbol_12"
                      android:layout_height="25dp" /&gt;
  
                  &lt;ImageView
                      android:layout_width="25dp"
                      android:id="@+id/safgasga"
                      android:layout_centerInParent="true"
                      android:layout_alignParentTop="true"
                      android:background="@drawable/symbol_09"
                      android:layout_height="25dp" /&gt;
                  &lt;ImageView
                      android:layout_width="25dp"
                      android:id="@+id/gsagas"
                      android:layout_centerInParent="true"
                      android:layout_alignParentTop="true"
                      android:background="@drawable/symbol_08"
                      android:layout_height="25dp" /&gt;
                  &lt;ImageView
                      android:layout_width="25dp"
                      android:id="@+id/gfasgas"
                      android:layout_centerInParent="true"
                      android:layout_alignParentTop="true"
                      android:background="@drawable/symbol_02"
                      android:layout_height="25dp" /&gt;
             &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Above I'm attaching the image of how it looks like </p>
  
  <p><a href="http://i.stack.imgur.com/0Vwmw.png" rel="nofollow">enter image description here</a></p>
  
  <p>The blue circle is the invisible item by logic which must go down whenever i start animation on my linearLayout but what i want doesn't Happening.Please help me and tell me what I'm doing wrong?</p>