Skip to content

DPAD support #69

Description

@rekire

Well I know no new devices with this feature but I guess it is nice to have. If I press on the button nothings happen, I expect that the view should expand. For doing this you just need to add this view lines to ActionSlideExpandableListView.java:

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
    if(keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_ENTER) {
        SlideExpandableListAdapter adapter = (SlideExpandableListAdapter)getAdapter();
        adapter.getExpandToggleButton(getSelectedView()).performClick();
        return true;
    }
    return super.onKeyDown(keyCode, event);
}

But I'm not able to select the inner buttons, if somebody has an idea please add it :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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