TextView tvTemp = (TextView) findViewById(R.id.you_text_view);
LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) tvTemp.getLayoutParams();
params.setMargins(0,25,0,0);
tvTemp.setLayoutParams(params);
LinearLayout.LayoutParams - зависит от текущей разметки