I just add a com.google.android.material.textfield.TextInputEditText with password "Eye" icon to one test project, now I've a very strange problem.. I can't find a way to hide the field from the xml definition.. the field appear always even with invisibile attributes.
How can I hide this kind of field? Take a look to this image on android studio
below from emulator, android 6 :
Related
i need a really big font size in Android Studio and everything is working fine. Only 1 window is making trouble, which is the "new Java Class" window.
The text input fields are too small for the text. See Screenshot.
Any idea how to solve this?
I'm following the Building your First App tutorial. I'm using Android Studio 2.3.1
I have default values in strings.xml. When I reference these in the design editor, they show up correctly in the design preview and the XML. However, when I run the app on a device, no text appears. There are no errors or warnings. I've tried multiple devices.
strings appearing correctly in the design editor
This happens because you are setting the string content in the tools text field (the one with the wrench on left). You have to set the string content in the empty field above.
If you set the string content with tools:text, it will apply only to preview layout.
If you set the string content with android:text it will apply both to preview and to rendered layout.
If you set both, the tools:text field will have more priority than android:text field on preview and the android:text field will be used for rendering.
Check those properties again.
You have the string in the text property with a wrench. If you look at the XML, you will see tools:text. That's a text property that you can only see in the preview (to test with dimensions and things like that, like you had real text on the component).
The real text one is android:text.
I'm creating a Unity application with textfields in it.
In the beginning there were no problems with the textfield inputs. I could write and texts would show nicely on the keyboards line
Then I've added some assets which altered the manifest. I don't know which line but I have multiple (5 exactly) AndroidManifest files in my Unity project and I'm facing this problem
When I'm typing with keyboard, text does get typed but it has white color on white background. I can select the text, edit the text but its bad for user to use a keyboard like that
What should I do? Thanks a lot!
ps. This problem does not occur on iOS devices. Only on Android
We experienced the same problem but we were able to fix it by adding the following property:
android:theme="#style/UnityThemeSelector"
To the application tag in the file
Plugins\Android\AndroidManifest.xml
Eg:
<application android:theme="#style/UnityThemeSelector"...
I'm not sure how that applies to having multiple manifests but perhaps only one of them has the application tag.
I don't understand what is going on when I am in the Graphical layout window in the Eclipse Android Development tool (v22.6.2-1085508) and want to change the text of a TextView. I saw other questions/answers on how to do it programmatically. But unless I am overlooking something obvious the process to do it using the GUI seems very laborious and non-intutive.
Here is the steps I went through:
Start with the default Android Application project. I Want to change text: "Hello World"
I find that I can't modify the textView inline (i.e. visual studio style).
So I select Edit (F2)
But now I find I can't really "edit" the resource http://i.stack.imgur.com/cBtXL.jpg
So I click on the "New String" button.
And create a whole new resource with the new text string that I want.
The screen shots: http://i.stack.imgur.com/yAcLz.jpg
Can someone clue me in to the philosophy behind this Graphical interface? Is there a better way to do it?
Maybe you aren't using the editor correctly:
Here you see I defined #string/help for the Text property
And you correctly read "User guide", as defined in strings.xml
Alternatively, in the xml view, you can add your TextView the attribute:
android:text="Whatever you want"
or (better), reference a string resource (as in my example):
android:text="#string/your_string_name"
I want to make the custom keyboard in my android application and show it for specific EditText.
I've read documentation and found, that I need to extend the InputMethodService class. But I didn't find out how to show this keyboard automatically for some EditText.
Thanks
There is a example present in Android SDK
Load that Android Project
New --> Android Sample Project --> Soft Keyboard
To show your keyboard for particular edit text box you need to override OnTouchlistener
I found the solution I wanted here: http://www.infiniterecursion.us/2011/02/android-activity-custom-keyboard.html