The actual font size changes, but the rest of the view does not move.
public class StackAdapter extends BaseAdapter... ... public View getView... final ViewHolder viewHolder; ... viewHolder.layout = (LinearLayout) convertView.findViewById(R.id.telephone_1); ... viewHolder.layout.post(new Runnable() { @Override public void run() { TextView textView = (TextView)viewHolder.layout.findViewById(R.id.textView11); textView.setText("din1"); textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 22); //or TextView textView2 = (TextView)viewHolder.layout.findViewById(R.id.textView22); textView2.setText("din2"); textView2.setTextSize(TypedValue.COMPLEX_UNIT_SP, 22); int height_in_pixels2 = textView2.getLineCount() * textView2.getLineHeight(); //approx height text textView2.setHeight(height_in_pixels2); } }); xml
<LinearLayout android:id="@+id/telephone_1" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="0.8" android:layout_marginRight="8dp" android:layout_marginTop="5dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello" android:id="@+id/textView11"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello" android:id="@+id/textView22"/> </LinearLayout> 

