目前我们通过eclipse来new一个Android application时有好多模板(如下图所示)可以选择,以前没太注意,今天研究下.
当使用Master/Detail Flow模板时,发现运行的效果跟模板预览的效果不一致,从代码中发现
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_item_list);
if (findViewById(R.id.item_detail_container) != null) {
// The detail container view will be present only in the
// large-screen layouts (res/values-large and
// res/values-sw600dp). If this view is present, then the
// activity should be in two-pane mode.
mTwoPane = true;
// In two-pane mode, list items should be given the
// 'acti