Screen resolution
<p>Actually i have created an array of buttons,now my question is whether it will be fit in all screen resolution or not..as i have use nexus s device and the here its working fine..i mean to say that all the buttons are arranged in perfect order..more ever when i placed background image to each buttons its work fine..now i doubt whether it works for cheaper device by the same code i have written or i have to do something extra for that.thats means whether it fit for all screen resolution..or not..the code i have written is..</p>

<pre><code>            LinearLayout layoutVertical = (LinearLayout) findViewById(R.id.liVLayout);
            LinearLayout rowLayout=null;

            LayoutParams param = new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT,1);

            //Create Button
            for (i = 0; i&lt;6; i++){
                rowLayout = new LinearLayout(this);
                rowLayout.setWeightSum(7);
                layoutVertical.addView(rowLayout,param);

                for(j=0;j&lt;7;j++){
                    pBtnDay[i][j]=new Button(this);

                    rowLayout.addView(pBtnDay[i][j],param); 

                    pBtnDay[i][j].setOnLongClickListener(this);                         
                    pBtnDay[i][j].setOnClickListener(this);



                }
            }
            return true;
</code></pre>

<p>one more thing when i try to find width and height of the buttons it return 0..why?</p>
