Skip to content

6.8.7OnClicks怎么写啊 #17

@yanxudong1

Description

@yanxudong1
@OnClicks({R.id.btn_fab2,R.id.btn_fab})
public void startTest(View v) {
    switch (v.getId()){
        case R.id.btn_fab2:
            Log.e("test", "button1: " +v.getId());
            break;
        case R.id.btn_fab:
            Log.e("test", "button2: " +v.getId());
            break;
    }


}

这样写没有效果

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions