• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            xiaoguozi's Blog
            Pay it forword - 我并不覺的自豪,我所嘗試的事情都失敗了······習慣原本生活的人不容易改變,就算現狀很糟,他們也很難改變,在過程中,他們還是放棄了······他們一放棄,大家就都是輸家······讓愛傳出去,很困難,也無法預料,人們需要更細心的觀察別人,要隨時注意才能保護別人,因為他們未必知道自己要什么·····
            package com.twy.test;

            import android.app.Activity;
            import android.graphics.Bitmap;
            import android.graphics.BitmapFactory;
            import android.graphics.Canvas;
            import android.graphics.Matrix;
            import android.graphics.Paint;
            import android.graphics.drawable.BitmapDrawable;
            import android.graphics.drawable.Drawable;
            import android.graphics.drawable.LayerDrawable;
            import android.os.Bundle;
            import android.view.ViewGroup.MarginLayoutParams;
            import android.widget.ImageView;
            import android.widget.ImageView.ScaleType;
            import android.widget.LinearLayout;
            import android.widget.LinearLayout.LayoutParams;

            public class testDemo extends Activity {
                private LinearLayout lay;

                /** Called when the activity is first created. */
                @Override
                public void onCreate(Bundle savedInstanceState) {
                    super.onCreate(savedInstanceState);
                    setContentView(R.layout.main);
                    
                    lay = (LinearLayout) findViewById(R.id.linearLayout1);

                    firstLay();
                
                }

                private void firstLay() {
                    Bitmap mbitmap_c = BitmapFactory.decodeResource(getResources(),
                            R.drawable.cc);
                    Bitmap mbitmap_b = BitmapFactory.decodeResource(getResources(),
                            R.drawable.bb);
                    Bitmap mbitmap_e = BitmapFactory.decodeResource(getResources(),
                            R.drawable.ee);
                    Bitmap mbitmap_f = BitmapFactory.decodeResource(getResources(),
                            R.drawable.ff);
                    
                    Drawable[] array = new Drawable[4];
                    array[0] = new BitmapDrawable(mbitmap_b);
                    array[1] = new BitmapDrawable(mbitmap_c);
                    array[2] = new BitmapDrawable(mbitmap_e);
                    array[3] = new BitmapDrawable(mbitmap_f);
                    
                    LayerDrawable la = new LayerDrawable(array);
                    la.setLayerInset(0, 0, 0, 0, 0);
                    la.setLayerInset(1, 80, 0, 0, 0);
                    la.setLayerInset(2, 160, 0, 0, 0);
                    la.setLayerInset(3, 240, 0, 0, 0);
                    
                    ImageView img = new ImageView(this);
                    img.setImageDrawable(la);
                    
                    lay.addView(img);
                    
                }
            }
            posted on 2012-03-15 10:44 小果子 閱讀(363) 評論(0)  編輯 收藏 引用 所屬分類: Android & Ios
            色欲综合久久躁天天躁蜜桃| 少妇内射兰兰久久| 久久影视综合亚洲| 亚洲国产香蕉人人爽成AV片久久| 久久91这里精品国产2020| 精品久久久久久无码不卡| 伊人久久大香线蕉亚洲五月天| 精品久久久久中文字幕日本| 久久久久黑人强伦姧人妻| 一本一本久久a久久精品综合麻豆| AV无码久久久久不卡蜜桃| 999久久久免费精品国产| 香蕉99久久国产综合精品宅男自| 久久精品亚洲精品国产色婷| 88久久精品无码一区二区毛片| 囯产精品久久久久久久久蜜桃 | 亚洲欧美精品一区久久中文字幕| 精品久久亚洲中文无码| 国产日产久久高清欧美一区| 中文精品久久久久人妻| 国产午夜精品理论片久久| 国产成人精品综合久久久久| 久久久久国产亚洲AV麻豆| 久久精品国产影库免费看| 久久综合噜噜激激的五月天| 中文字幕无码久久人妻| 久久国产成人| 99久久超碰中文字幕伊人| 亚洲AV日韩AV天堂久久| 久久久久久久久久久久久久| 99久久精品免费| 久久综合综合久久97色| 久久精品国产精品青草| 精品少妇人妻av无码久久| 亚洲av日韩精品久久久久久a| 欧美日韩精品久久久免费观看| 亚洲综合精品香蕉久久网97| 国产福利电影一区二区三区久久久久成人精品综合 | 亚洲国产成人久久精品影视 | 国产精品国色综合久久| 亚洲第一极品精品无码久久|