开发者

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

开发者 https://www.devze.com 2022-12-10 06:02 出处:网络
There is this xml file under fram开发者_StackOverflow社区eworks/base. /frameworks/base/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

精彩评论

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