[LayoutAnimation3.java]
public class LayoutAnimation3 extends ListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_animation_3);
setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, mStrings));
}
private String[] mStrings = {
"Bordeaux",
"Lyon",
"Marseille",
"Nancy",
"Paris",
"Toulouse",
"Strasbourg"
};
}
[layout_animation_3.xml]
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layoutAnimation="@anim/layout_bottom_to_top_slide" />
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layoutAnimation="@anim/layout_bottom_to_top_slide" />
'old > API_Demo' 카테고리의 다른 글
Views_Layout Animation_Grid Direction (0) | 2010.04.26 |
---|---|
Views_Layout Animation_Randomize (0) | 2010.04.26 |
Views_Layout Animation_List Cascade (0) | 2010.04.26 |
Views_Layout Animation_Grid Fade (0) | 2010.04.26 |
Views_ImageView (0) | 2010.04.21 |