2012-01-26 11 views

答えて

1

確かに、あなたはこのように、プログラムでScrollViewの中にあなたの全体のレイアウトを置くことができます。素晴らしい作品

LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 
View view = inflater.inflate(R.layout.mylayout, null); 
ScrollView scrollView = new ScrollView(this); 
scrollView.addView(view); 
setContentView(scrollView); 
+0

を。私たちはそれを取得することに非常に近いものでしたが、addViewメソッドが必要でした。ありがとう! –

関連する問題