In Android User Interface Button not set Text?
<p>I am developing an UI(Home screen) just like this screen 
    given in this link<br>
    <a href="http://www.flickr.com/photos/78431491@N07/7023063473/" rel="nofollow">http://www.flickr.com/photos/78431491@N07/7023063473/</a></p>

<p>but in ldpi text of button is showing properly in mdpi and hdpi its not show and padding is not same for all devices please anyone help me I am using this code right now</p>

<pre><code>Button objwidgetbutton = new Button(HomeScreen.this);


        btnimg = objButton.getImage();
        btnwidth = Integer.parseInt(objButton.getWidth());
        btnheight = Integer.parseInt(objButton.getHeight());
        LinearLayout.LayoutParams objlayoutbtnparams = new LinearLayout.LayoutParams(btnwidth,btnheight); // Verbose!
        //btntextcolor = Integer.parseInt(objButton.getTextColor().replace("#","0x"));
        btnAction = Integer.parseInt(objButton.getAction());
        btntextvalue = objButton.getButtonText();
        String buttonimage[] = btnimg.split("\\.");
        int imgresourceId = getResources().getIdentifier(
                "com.correlation.edumationui:drawable/" +buttonimage[0], null, null);

        objwidgetbutton.setBackgroundResource(imgresourceId);
        objwidgetbutton.setText(btntextvalue);
        objlinear.addView(objwidgetbutton,objlayoutbtnparams);

    }
 objviewgroup = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT);
</code></pre>
