亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? transition3d.java

?? Android Source Code. An gallary program.
?? JAVA
字號:
package com.example.android.apis.animation;import com.example.android.apis.R;import android.app.Activity;import android.os.Bundle;import android.widget.ListView;import android.widget.ArrayAdapter;import android.widget.AdapterView;import android.widget.ImageView;import android.view.View;import android.view.ViewGroup;import android.view.animation.Animation;import android.view.animation.AccelerateInterpolator;import android.view.animation.DecelerateInterpolator;/** * This sample application shows how to use layout animation and various * transformations on views. The result is a 3D transition between a * ListView and an ImageView. When the user clicks the list, it flips to * show the picture. When the user clicks the picture, it flips to show the * list. The animation is made of two smaller animations: the first half * rotates the list by 90 degrees on the Y axis and the second half rotates * the picture by 90 degrees on the Y axis. When the first half finishes, the * list is made invisible and the picture is set visible. */public class Transition3d extends Activity implements        AdapterView.OnItemClickListener, View.OnClickListener {    private ListView mPhotosList;    private ViewGroup mContainer;    private ImageView mImageView;    // Names of the photos we show in the list    private static final String[] PHOTOS_NAMES = new String[] {            "Lyon",            "Livermore",            "Tahoe Pier",            "Lake Tahoe",            "Grand Canyon",            "Bodie"    };    // Resource identifiers for the photos we want to display    private static final int[] PHOTOS_RESOURCES = new int[] {            R.drawable.photo1,            R.drawable.photo2,            R.drawable.photo3,            R.drawable.photo4,            R.drawable.photo5,            R.drawable.photo6    };    @Override    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.animations_main_screen);        mPhotosList = (ListView) findViewById(android.R.id.list);        mImageView = (ImageView) findViewById(R.id.picture);        mContainer = (ViewGroup) findViewById(R.id.container);        // Prepare the ListView        final ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,                android.R.layout.simple_list_item_1, PHOTOS_NAMES);        mPhotosList.setAdapter(adapter);        mPhotosList.setOnItemClickListener(this);        // Prepare the ImageView        mImageView.setClickable(true);        mImageView.setFocusable(true);        mImageView.setOnClickListener(this);        // Since we are caching large views, we want to keep their cache        // between each animation        mContainer.setPersistentDrawingCache(ViewGroup.PERSISTENT_ANIMATION_CACHE);    }    /**     * Setup a new 3D rotation on the container view.     *     * @param position the item that was clicked to show a picture, or -1 to show the list     * @param start the start angle at which the rotation must begin     * @param end the end angle of the rotation     */    private void applyRotation(int position, float start, float end) {        // Find the center of the container        final float centerX = mContainer.getWidth() / 2.0f;        final float centerY = mContainer.getHeight() / 2.0f;        // Create a new 3D rotation with the supplied parameter        // The animation listener is used to trigger the next animation        final Rotate3dAnimation rotation =                new Rotate3dAnimation(start, end, centerX, centerY, 310.0f, true);        rotation.setDuration(500);        rotation.setFillAfter(true);        rotation.setInterpolator(new AccelerateInterpolator());        rotation.setAnimationListener(new DisplayNextView(position));        mContainer.startAnimation(rotation);    }    public void onItemClick(AdapterView parent, View v, int position, long id) {        // Pre-load the image then start the animation        mImageView.setImageResource(PHOTOS_RESOURCES[position]);        applyRotation(position, 0, 90);    }    public void onClick(View v) {        applyRotation(-1, 180, 90);    }    /**     * This class listens for the end of the first half of the animation.     * It then posts a new action that effectively swaps the views when the container     * is rotated 90 degrees and thus invisible.     */    private final class DisplayNextView implements Animation.AnimationListener {        private final int mPosition;        private DisplayNextView(int position) {            mPosition = position;        }        public void onAnimationStart(Animation animation) {        }        public void onAnimationEnd(Animation animation) {            mContainer.post(new SwapViews(mPosition));        }        public void onAnimationRepeat(Animation animation) {        }    }    /**     * This class is responsible for swapping the views and start the second     * half of the animation.     */    private final class SwapViews implements Runnable {        private final int mPosition;        public SwapViews(int position) {            mPosition = position;        }        public void run() {            final float centerX = mContainer.getWidth() / 2.0f;            final float centerY = mContainer.getHeight() / 2.0f;            Rotate3dAnimation rotation;                        if (mPosition > -1) {                mPhotosList.setVisibility(View.GONE);                mImageView.setVisibility(View.VISIBLE);                mImageView.requestFocus();                rotation = new Rotate3dAnimation(90, 180, centerX, centerY, 310.0f, false);            } else {                mImageView.setVisibility(View.GONE);                mPhotosList.setVisibility(View.VISIBLE);                mPhotosList.requestFocus();                rotation = new Rotate3dAnimation(90, 0, centerX, centerY, 310.0f, false);            }            rotation.setDuration(500);            rotation.setFillAfter(true);            rotation.setInterpolator(new DecelerateInterpolator());            mContainer.startAnimation(rotation);        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区在线观看视频在线观看| 欧美老人xxxx18| 国产美女在线观看一区| 久久精品99国产精品日本| 日韩精品一二三| 青娱乐精品视频| 91网站最新地址| 91在线观看成人| 色综合激情久久| 欧美日韩另类一区| 欧美岛国在线观看| 日韩高清中文字幕一区| 国产日韩欧美精品电影三级在线| 久久久亚洲精品石原莉奈 | 日本网站在线观看一区二区三区| 亚洲高清三级视频| 久久99国产精品尤物| 国产高清无密码一区二区三区| 国产98色在线|日韩| 一本一本大道香蕉久在线精品| 欧洲av在线精品| 欧美久久久一区| 精品国产乱码久久久久久免费| 久久精品夜色噜噜亚洲a∨| 国产精品电影一区二区| 一区二区三区免费在线观看| 免费的成人av| 北岛玲一区二区三区四区| 欧美这里有精品| 亚洲精品一区二区三区福利| 亚洲欧洲一区二区在线播放| 亚洲宅男天堂在线观看无病毒| 麻豆91小视频| 91在线视频网址| 欧美videossexotv100| 亚洲精品国产一区二区三区四区在线| 午夜亚洲福利老司机| 国产成人午夜电影网| 欧美亚洲综合网| 国产欧美日本一区视频| 日韩国产一区二| 波多野结衣的一区二区三区| 日韩欧美在线网站| 亚洲欧洲综合另类| 国产麻豆精品95视频| 欧美日韩在线直播| av网站免费线看精品| 欧美日本在线视频| 国产清纯美女被跳蛋高潮一区二区久久w| 国产精品电影一区二区| 日韩精彩视频在线观看| 99精品热视频| 国产婷婷色一区二区三区四区| 亚洲精品中文在线| 成人伦理片在线| 日韩免费电影一区| 亚洲bt欧美bt精品| 91搞黄在线观看| |精品福利一区二区三区| 激情综合五月天| 欧美一区二区三区婷婷月色 | 国产精品乱码妇女bbbb| 午夜成人在线视频| 欧美性xxxxxxxx| 国产精品蜜臀在线观看| 精品国产一区二区三区忘忧草| 亚洲精品v日韩精品| 高清久久久久久| 国产清纯美女被跳蛋高潮一区二区久久w | 精品国产一区二区国模嫣然| 亚洲永久免费视频| 欧美在线看片a免费观看| 一区二区三区四区乱视频| 91精彩视频在线| 亚洲区小说区图片区qvod| 色综合天天综合网国产成人综合天| 中文子幕无线码一区tr| 成人动漫精品一区二区| 国产日韩精品一区| 成人一级片在线观看| 国产精品剧情在线亚洲| 成人黄色在线视频| 亚洲人快播电影网| 欧美午夜一区二区三区免费大片| 亚洲v中文字幕| 91精品国产综合久久福利 | 亚洲精品国产品国语在线app| 成人深夜福利app| 亚洲三级理论片| 欧美性极品少妇| 青青国产91久久久久久| 精品999在线播放| 99免费精品视频| 亚洲成人免费影院| 欧美精品一区二区三区一线天视频| 国产精品一区二区在线看| 最新国产精品久久精品| 欧美婷婷六月丁香综合色| 蜜桃一区二区三区在线观看| 久久精品欧美一区二区三区麻豆| 99精品视频一区二区三区| 视频在线在亚洲| 欧美极品美女视频| 国产欧美视频一区二区| 91麻豆免费在线观看| 日韩成人av影视| 国产精品嫩草久久久久| 在线不卡欧美精品一区二区三区| 狠狠色综合日日| 亚洲男人天堂av网| 欧美xxxxx牲另类人与| 91丝袜美女网| 激情偷乱视频一区二区三区| 亚洲人成网站精品片在线观看 | 粉嫩一区二区三区在线看| 亚洲最色的网站| 久久久精品免费网站| 欧美日韩国产一二三| av成人免费在线| 久草中文综合在线| 午夜精品一区在线观看| 中文字幕视频一区| 精品国产乱码久久久久久图片| 一本大道久久a久久综合| 久久99精品国产麻豆婷婷| 亚洲主播在线观看| 国产精品久久久爽爽爽麻豆色哟哟 | 亚洲国产日韩在线一区模特| 国产情人综合久久777777| 日韩一二三区不卡| 欧美影院一区二区三区| 不卡欧美aaaaa| 国产精品综合一区二区三区| 天涯成人国产亚洲精品一区av| 亚洲丝袜另类动漫二区| 中文字幕av不卡| 欧美国产亚洲另类动漫| 久久久久久免费毛片精品| 制服视频三区第一页精品| 色婷婷精品久久二区二区蜜臀av| 国产一区二区毛片| 韩国av一区二区| 国模冰冰炮一区二区| 久久精品国产久精国产爱| 天天综合色天天| 日韩在线一区二区| 午夜亚洲国产au精品一区二区| 亚洲一区二区三区三| 亚洲精品网站在线观看| 亚洲丝袜制服诱惑| 亚洲另类中文字| 亚洲一区二区影院| 亚洲国产一区视频| 日日噜噜夜夜狠狠视频欧美人| 伊人性伊人情综合网| 一区二区三区国产| 亚洲午夜精品17c| 日韩国产欧美一区二区三区| 免费视频最近日韩| 九色|91porny| 国产成人综合自拍| 成人午夜视频在线观看| 97久久精品人人澡人人爽| www.亚洲精品| 色综合激情五月| 欧美巨大另类极品videosbest | 亚洲欧洲日韩综合一区二区| 综合精品久久久| 亚洲综合色婷婷| 日韩在线播放一区二区| 国产一区久久久| 99精品视频一区| 91精品国产乱码| 久久久久国产精品麻豆ai换脸| 中文字幕一区二区三区色视频| 一区二区三区四区激情| 久久精品国产色蜜蜜麻豆| 国产不卡高清在线观看视频| 91伊人久久大香线蕉| 在线综合+亚洲+欧美中文字幕| 精品久久久三级丝袜| 国产精品国产三级国产专播品爱网| 亚洲精品中文字幕乱码三区| 蜜桃免费网站一区二区三区 | 亚洲激情欧美激情| 免费成人美女在线观看.| 成人自拍视频在线观看| 欧美日本一区二区| 国产精品久久国产精麻豆99网站| 亚洲精品福利视频网站| 精品一区二区三区免费观看| 91官网在线观看| 久久精品视频网| 日韩电影一区二区三区四区| jlzzjlzz国产精品久久| 日韩午夜av一区| 亚洲va欧美va天堂v国产综合| 国产成人免费高清| 91精品国产丝袜白色高跟鞋| 国产精品免费久久久久|