I have this app on iphone and I want to make it for android,on iphone when start edit text in a EditText a tooltip with a message is showing in the top of display,i want to make it work for android too,but i didn't find anything that help,here is a link with iphone printscreen
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
This can be done using OnFocusChangeListener on EditText
The idea is that you will create tool tip layout and will change its visibility on Focus change
You can create tip layout by either top of normal layout using FrameLayout or by just adding tool tip layout at top of your layout. In both these cases visibility will be gone.
Then use OnFocusChangeListener to show or hide tool tip
You can also enhance this with different listeners like OnKeyListener
Just to improve my answer
you can also use TextWatcher Class of Android which facilitates us to react on Text Change.
Please refer following for use of TextWatcher in your example
}
There isin't a hovering tooltip concept in Android. You can do either of the 2 things:
LongClickListener
for yourEditText
which will show a toast when user long presses on it. Something like this:OR
Show Hint in the EditText to let users know what do they need to type in.
You can use this: TooltipCompat.setTooltipText(editText, editText.getText())