0

when i want to get a view object delared in xml,usually i have two method.R.id.view and inflate the view,so what`s the deference between them. thanks in advance,i am a newbie.

4

1 に答える 1

3

レイアウトを行うsetContentView()と、関連するxmlに記載されているすべてのビューで暗黙的に膨張します。ビューを手動でインフレートする場合は、かなり同じことを行いますが、明示的に行います。違いは、作成するコードのみです。

于 2011-03-24T09:24:20.057 に答える