Navigation bar back button custom icon?

2019-03-03 07:06发布

Is it possible to change the navigation bar (image bellow for reference) back button icon programmatically? Let's say in a certain moment I'd like to change it to be the arrow down icon (normally used to hide the soft input) then change it back to the default after some user interaction.

navigation bar

1条回答
Root(大扎)
2楼-- · 2019-03-03 07:42

What I ended up doing was creating a popup window over the soft input and making the soft input "arrow down" button do what I wanted on that pop up window. To control what the soft input "arrow down" button does I had to create a class that extends EditText and override:

public boolean onKeyPreIme(int keyCode, KeyEvent event)

查看更多
登录 后发表回答