底部工具栏未显示在gridview列表中

时间:2015-10-07 13:42:00

标签: android

我想应用底部工具栏,但我正在运行我的应用并且没有显示

 private ActionMenuView amvMenu;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        list = (ListView) findViewById(R.id.list);
        Listitem = new ArrayList<Listitem>();
        mProgressBar = (ProgressBar) findViewById(R.id.progressBar);

        GetDataJSON gj = new GetDataJSON();
        gj.execute();
        mProgressBar.setVisibility(View.VISIBLE);

     //   getData();
        initToolbars();
    }

这是initoolbars方法

private void initToolbars() {

    Toolbar toolbarBottom = (Toolbar) findViewById(R.id.toolbar_bottom);
    toolbarBottom.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {
        @Override
        public boolean onMenuItemClick(MenuItem item) {

            return true;
        }
    });
    // Inflate a menu to be displayed in the toolbar
    toolbarBottom.inflateMenu(R.menu.main);
}

我想这里的问题我正在设置适配器

GridViewAdapter adapter = new GridViewAdapter(this, R.layout.grid_item_layout, Listitem);
     //   gridView.setAdapter(gridAdapter); 
        adapter.notifyDataSetChanged();

       list.setAdapter(adapter);

0 个答案:

没有答案