A (175)

(Tuis.) #1

366 CHAPTER 10: Android Animation: Making Your UI Designs Move


The final XML markup for the ImageView UI widget is shown in Figure 1 0- 8 , and looks like the following:


<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/anim_milkyway" android:background="@drawable/imageviewwhitering"
android:layout_below="@+id/llh" android:contentDescription="@string/galaxyone"
android:adjustViewBounds="true" android:padding="44dip" android:layout_marginLeft="32dip" />


Figure 10-8. Add an android:layout_marginLeft=“32dip” parameter to center the in the SlidingPane


Figure 10-7. Test UI design in Galaxy Nexus AVD (left) and add a 38 DIP left margin parameter to center (right)

Free download pdf