When user clicks on edit text the cursor has a layout beneath. I have made the text_select_handler transparent but couldn't remove this layout beneath it.
Any kind of help is appreciated.
Thanks in advance.
Related
Screenshot
The problem appears only if the layout is added through WindowManager.addView
How to remove it? If this is a suggestion then how to make the text visible?
android:popupBackground didn't help
Anyone help to add DONE button on top of soft keyboard like above screenshot shows.
Because I need Enter and Done both button on my Edit Text.
So, please suggest me If anyone have Idea.
Thanks in Advance...
How about just adding a custom Button in the bottom of your UI?
You can observe layout size changes -> find a case when keyboard appears and disappears (Remember its different case from screen rotation, different screen proportion)
Based on keyboard hidden/shown event you can show/hide your custom UI.
I guess only problem is, you don't know what is keyboard view background. But its definitely better than writting your own keyboard, AFAIK you can't add views to keyboards.
You have to create a custom keyboard for that. For custom keyboard you can try here:
https://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615
https://developer.android.com/guide/topics/text/creating-input-method.html
https://inducesmile.com/android/how-to-create-an-android-custom-keyboard-application/
http://www.blackcj.com/blog/2016/03/30/building-a-custom-android-keyboard/
You would like to have an easy solution? Then integrate your "Done" button in your layout. Your layout should look like this (short version):
<LinearLayout orientation="vertical">
<ScrollView layout_weight="1"> <-- if needed, use FrameLayout else
place your Layout here
</ScrollView>
<YourDoneButton/>
</LinearLayout>
Your Button will stack on the top of the keyboard. I assume, that the user should be able to click of the "Done" button even if the keyboard is hidden. If not, you can hide it if your EditText is not focused.
I want to show floating edit texts and buttons on screen in android e.g. look below the image, there are 3 edit texts and 2 buttons which are floating on current screen. I searched a lot on net but got nothing. So please anyone suggest how to do this, even some links will be useful.
Its Ok, if the widgets are not transparent, but it should give feel that they are floating on my current screen.
Pop up or custom Alert dialog may solve your problem.
But simple solution is take another layout in xml of the activity. In that layout add those edittexts and buttons. Set its visibility to false. And when you want to show then, make layout's visibility to true.
In my application, I have an activity where I have one button. When I click on that button, it should show a customized layout from the bottom the screen,keeping parent layout visible. I want to achieve this using animation. Can someone please help me by providing some example code. Thanks in advance.
Here you can simply use Sliding Drawer example.Refer Following Link.
http://androidimran.blogspot.in/2012/06/android-slidingdrawer-example.html
i want to up the layout approx 20dip when i click on edit text keyboard appear so my submitt button hide below key board so i want to up layout approx 20 dip ,n also i cant set scroll i have image on background...so how to up whole layout with background when my keyboard launch ...thanks
my xml is for creating layout for that screen.....
There's a very similar question on StackOverflow..
Layout becomes invisible, when keyboard pops up.
Hope this helps!!
Sorry, I had to post this as an answer, rather than comment on the question..