-1

In my application, I want to provide the functionality similar to Next, Previous and Done button at the top of keyboard. It is somewhat similar to this

enter image description here

Please let me know how can I achieve this.

I do not want to exactly implement the next,previous and done options. But using this three button click, I want to make three separate web service calls and fetch the results. Like, Active,Inactive and All kind of filters.

Community
  • 1
  • 1
Bhargav Jhaveri
  • 2,123
  • 1
  • 18
  • 23

2 Answers2

1

The standard Android way would be to provide an input method action with imeOptions. With the standard keyboard this will change the bottom right virtual keyboard button to the specified action. There's little point in trying to mimic iOS input behavior with the buttons above.

laalto
  • 150,114
  • 66
  • 286
  • 303
  • imeOptions is good.But I do not want to exactly implement the next and previous options. But using this three button click, I want to make three separate web service calls and fetch the results. Like, Active/ Inactive and All these kind of filters. – Bhargav Jhaveri Jan 23 '14 at 10:54
  • You should only have input-related actions with the input as there's no reason to assume a vkb is used for input. Put other actions e.g. in your main layout. – laalto Jan 23 '14 at 10:59
  • @laalto This type of requirement was posted on either elance.com or odesk.com by a Chinese. – Zohra Khan Jan 23 '14 at 11:41
0

Do you want to just put the layout above the keyboard,so as to stop next,previous,etc button when keyboard is displayed. If so,you can try adding below code inside your activity in android manifest,

android:windowSoftInputMode="adjustResize"

If you are looking for something else,then please show your xml code of the same.

Harshal Benake
  • 2,391
  • 1
  • 23
  • 40