Code example for View

Methods: setOnCreateContextMenuListener

0
    /** 
     * {@inheritDoc} 
     */ 
    public void setContentView(View view) {
        super.setContentView(view);
        view.setOnCreateContextMenuListener(new ChartsContextMenuListener());
        this.grossView = view;
    } 
     
    /** 
     * ChartsContextMenuListener supports the setting of theme. 
     * By using context menu, user can set theme. 
     */ 
    public static class ChartsContextMenuListener implements OnCreateContextMenuListener{
 
        /** 
         * {@inheritDoc} 
         */ 
        public void onCreateContextMenu(ContextMenu menu, View v,
                ContextMenuInfo menuInfo) {