开发者

How to inflate core/res/res/layout/simple_dropdown_item_2line.xml

There is this xml file under fram开发者_StackOverflow社区eworks/base.

/frameworks/base/core/res/res/layout/simple_dropdown_item_2line.xml

How can I inflate that in my own android application?

Thank you.


View view = activity.getLayoutInflater().inflate( android.R.layout.layout.simple_dropdown_item_2line, null);

If you are doing this inside Activity code you can use this instead of activity which implies that you set the variable somewhere


you'd use android.R.layout.simple_dropdown_item_2line, I believe.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜