TextView textViewSetsReps = new TextView(this);
textViewSetsReps.setText("8 x 4");
textViewSetsReps.setTextSize(16);
textViewSetsReps.setTextColor(Color.BLACK);
textViewSetsReps.setPadding(20,0,0,0);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT, 1.0f);
textViewSetsReps.setLayoutParams(params);
textViewSetsReps.setGravity(Gravity.RIGHT);
ll.addView(textViewSetsReps);
Вы можете редактировать свой второй TextView, как это!