• <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 - 我并不覺的自豪,我所嘗試的事情都失敗了······習(xí)慣原本生活的人不容易改變,就算現(xiàn)狀很糟,他們也很難改變,在過程中,他們還是放棄了······他們一放棄,大家就都是輸家······讓愛傳出去,很困難,也無法預(yù)料,人們需要更細(xì)心的觀察別人,要隨時(shí)注意才能保護(hù)別人,因?yàn)樗麄兾幢刂雷约阂裁础ぁぁぁぁ?/span>
            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) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Android & Ios
            国产午夜电影久久| 波多野结衣中文字幕久久| 久久久久久青草大香综合精品| 亚洲国产精品嫩草影院久久 | 久久亚洲AV永久无码精品| 精品综合久久久久久888蜜芽| 丁香五月综合久久激情| 欧美国产成人久久精品| 热re99久久精品国产99热| 久久无码国产专区精品| 久久91精品国产91久久小草| 人妻少妇久久中文字幕| 一本色综合网久久| 国产精品久久久久蜜芽| 99久久国产主播综合精品| 日本三级久久网| 亚洲日韩中文无码久久| 欧洲性大片xxxxx久久久| 色综合久久天天综线观看| av无码久久久久久不卡网站 | 国产激情久久久久影院| 亚洲人成网亚洲欧洲无码久久 | 国产精品伊人久久伊人电影| 国色天香久久久久久久小说| 久久亚洲色一区二区三区| 青青草原1769久久免费播放| 人妻精品久久久久中文字幕69| 久久综合色区| 国产精品一区二区久久精品无码| 精品综合久久久久久97超人| 性做久久久久久久| 久久精品国产亚洲AV影院| 亚洲精品午夜国产VA久久成人| 日本精品久久久久久久久免费| 久久播电影网| 日本精品久久久久影院日本| 久久久无码精品亚洲日韩软件| 国产成人AV综合久久| 国産精品久久久久久久| 久久精品国产WWW456C0M| 久久se精品一区精品二区国产|