LinearLayout.LayoutParams text1Lp = new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT,
(float) 1.0);
TextView tv1 = new TextView(this);
<BUG>tv1.setGravity(Gravity.LEFT);
</BUG>
tv1.setLayoutParams(text1Lp);
tv1.setTextSize(16);
tv1.setTextColor(color);

LinearLayout.LayoutParams text1Lp = new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT,
(float) 1.0);
TextView tv1 = new TextView(this);
tv1.setGravity(Gravity.START);
tv1.setLayoutParams(text1Lp);
tv1.setTextSize(16);
tv1.setTextColor(color);
