rt,code:
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        LinearLayout l= (LinearLayout)findViewById(R.id.layout1);
        for(int i=0;i<10;i++){
            ImageView iv = new ImageView(this);
            iv.setImageResource(ico);
            iv.setAdjustViewBounds(true);
            if(i%2==0){
                iv.setAlpha(0x55);
            }
            l.addView(iv);

        }
i want to create 10 imageviews,and one' alpha is 255,second's is 0x55,three
255...etc
but as the code run, all of their alpha are 255,because the setAlpha
function is set to ImageResource?
please help me ,thx in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to