0
こんにちは、tParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM、RelativeLayout.TRUE);あなたが整列する方法を尋ねるだけでなく、あなたのpreviuosで未編集の質問:ここ が、これはこれはテキストが画面の最下部に表示されない
EDITをどのように役立つかを
TextView tView = ((TextView)view.findViewById(R.id.seekBarFilterLabel));
LayoutParams tParams = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
tParams.addRule(RelativeLayout.CENTER_HORIZONTAL, RelativeLayout.TRUE);
tView.setLayoutParams(tParams);
希望の一例である
footScroll_relative = new RelativeLayout(this);
footScroll_scrollView = new ScrollView(this);
footScroll_horizontalScrollView = new HorizontalScrollView(this);
test_text = new TextView(this);
footScroll_relative.setLayoutParams(new LinearLayout.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT,android.view.ViewGroup.LayoutParams.FILL_PARENT));
LayoutParams tParams = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
tParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
footScroll_horizontalScrollView.setLayoutParams(new LinearLayout.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT,android.view.ViewGroup.LayoutParams.FILL_PARENT));
footScroll_scrollView.setLayoutParams(tParams);
test_text.setText("Ramesh ");
footScroll_horizontalScrollView.addView(test_text);
footScroll_scrollView.addView(footScroll_horizontalScrollView);
footScroll_relative.addView(footScroll_scrollView);
setContentView(footScroll_relative);
はい、私はコードを変更しましたが、希望の出力が得られませんlin = new LinearLayout(this); test_text =新しいTextView(これ); LayoutParams tParams =新しいLayoutParams(LayoutParams.FILL_PARENT、LayoutParams.FILL_PARENT); tParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM、RelativeLayout.TRUE); lin.setLayoutParams(tParams);test_text.setLayoutParams(新しいLinearLayout.LayoutParams(android.view.View.View.ViewPane.FILL_PARENT、android.view.View.ViewPanel.FILL_PARENT)); test_text.setText( "Ramesh");助けてください ? – ramsbh