Code example for View

Methods: getTag

0
        mTitleView.setOnClickListener(listener);
    } 
 
    @Override 
    public void onClick(View view) {
        final Object tag = view.getTag();
        if (tag instanceof Action) {
            final Action action = (Action) tag;
            action.performAction(view);
        } 
    } 
 
    /** 
     * Adds a list of {@link Action}s. 
     * @param actionList the actions to add 
     */ 
    public void addActions(ActionList actionList) {
        int actions = actionList.size();
        for (int i = 0; i < actions; i++) {
            addAction(actionList.get(i));
        }