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
Related
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.
I am using the setError method of the EditText view. The problem is, I want the EditText text to only be filled up to a certain point, so I need to put a padding on it's right side. But then the error icon is also pushed by the padding. Is there any way to prevent this?
It turns out there's no workaround for this. I just changed the logic of my custom edittext to add padding ONLY if the error icon is not shown
I've read the API and Googled but perhaps I've missed something: All the visibility options on an ImageButton seem to talk about this view as a whole. So, what should I do if I want to hide the image but keep the background(except for explicitly setting the image to something transparent that is)? I'm doing a Pairs Game and when one clicks on the element it should show the image and if the next click doesn't match the image should be hidden, but the grey background of the button should remain.
Thanks!
So, what should I do if I want to hide the image
Try setting it to #null or create transparent PNG in your drawables and set it.
in XML, remove android:src="something" and in the code remove imgbtn.setImageBitmap(null);
Instead of using ImageButton you can use ImageView with a FrameLayout on top of it. Set the background of FrameLayout as gray color and then show/hide this FrameLayout/Image as per your requirement. Take relative layout for each and make it clickable. On the click event of this layout, do the changes as required.
I have an EditText using a background with a big height, when I click on my EditText, the screen shifts up to show the soft keyboard, but not the entire EditText stays visible. The bottom part of the Edit Text background disappears because the soft keyboard goes up in it.
I need that my screen shifts up a little more! How could I do that?
Tks,
I think its better to use a ScrollView.
Using this will shift the entire screen up.
Try it out once
Create a empty layout and put it at the bottom of the screen by property align parent bottom set to true.
Now set your edittext above it. Add property layout_above and pass the id of the layout.
Now in the manifest, add screensize to config changes attribute for that activity or in the application tag
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.