3

What is the difference between the two? what all features are included in toolbar thats not in v7-21 toolbar? What all limitations are there in using v7-21 tollbar in place of toolbar?

4

1 回答 1

5

如果您查看ToolbarAppCompat Toolbar的文档,您会发现在功能上,两者之间没有任何区别。当然,两者所需的 SDK 级别不同,要使用Toolbar你必须调用setActionBar(mToolbar);,但Toolbar你必须调用支持setSupportActionBar(mToolbar);

于 2014-11-05T14:25:21.680 回答