How to place a textview to the right of image view in android using java code?
<p>I have a image view  and a text view.The text view is coming below image view.I need the textview to the right of image view.How to do it?</p>

<pre><code>               LinearLayout ThelayoutL = new LinearLayout(getApplicationContext());
        ThelayoutL.setOrientation(LinearLayout.VERTICAL);   

             ImageView TheItemImageL = new ImageView(mContextL);
        TheItemImageL.setImageBitmap(ItemImageBytesListG.get(PositionP));
        TheItemImageL.setScaleType(ImageView.ScaleType.FIT_XY);
        TheItemImageL.setLayoutParams(new ListView.LayoutParams(100, 100));

        TextView tvItemNameL = new TextView(mContextL);
        tvItemNameL.setText(zItemNameListG.get(PositionP));
        tvItemNameL.setGravity(Gravity.CENTER);
        tvItemNameL.setTextSize(10);
        tvItemNameL.setTextColor(Color.parseColor("#000000"));
</code></pre>
