2C03-View-Layout-Animation-list-Reverse-Order
来源:互联网 发布:mac osx 10.12 编辑:程序博客网 时间:2024/06/02 05:09
介绍list item倒序显示
LayoutAnimation3.java
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.example.android.apis.view;import com.example.android.apis.R;import android.app.ListActivity;import android.os.Bundle;import android.widget.ArrayAdapter;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="match_parent" android:layout_height="match_parent" android:layoutAnimation="@anim/layout_bottom_to_top_slide" />
layout_bottom_to_top_slide.xml
<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android" android:delay="30%" android:animationOrder="reverse" android:animation="@anim/slide_right" />slide_right.xml
<set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator"> <translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="@android:integer/config_shortAnimTime" /></set>
0 0
- 2C03-View-Layout-Animation-list-Reverse-Order
- 2C02-View-Layout-Animation-list-Cascade
- 2C01-View-Layout-Animation-Grid-Fade
- Android ApiDemos示例解析(128):Views->Layout Animation->3. Reverse Order
- Python Traverse list reverse order
- c03
- Layout Animation
- layout animation
- OpenLayers3-2-View Animation
- 2D01-View-Layout-Table-Layout
- Reverse Linked List 2
- Animation之View Animation
- Android-animation-View Animation
- Animation之View Animation
- View animation
- View Animation
- View Animation
- View Animation
- 元编程(c++)
- linux下搭建SVN服务器完全手册
- 利用UIImageJPEGRepresentation与UIGraphicsBeginImageContext进行图片压缩的简单比较
- SpringMVC上传下载,页面不刷新提交带附件的form表单
- POSIX 共享内存
- 2C03-View-Layout-Animation-list-Reverse-Order
- Extjs4 动态生成图表chart(从后台传数据动态显示)
- MediaCoder字幕乱码问题
- Wing IDE pro 5.0.0-1版本破解方法(仅供测试,请使用正版软件)
- 基础控件的使用
- jQuery开始
- css3-rotate实现超炫环形旋转特效
- Java 字符串算术表达式求值
- 深入理解win7的UAC