Plain text box with placeholder/prompt text in Android - android-studio

I want to create plain text, that shows text "Enter here" but greyed out and when you click on the text box, the displayed text disappears, like how when you open a new tab on Google and it shows "Search Google or type a URL".
I have already created the plain text and a button that display the text when you enter it in the plain text.
I tried to search it online, but I don't know what the term is for it.

You're looking for an EditText with a hint property
https://developer.android.com/reference/android/widget/EditText

Related

How to delete text before another text on every line

I have a list with oauth's, i have the format username:oauth:token, I need to get only tokens removing username and the oauth text on each line, like from UserCool:oauth:djhjwfjfwjfjwfj to djhjwfjfwjfjwfj, the problem is that i need to do that on every line so I cant just do remove everything before, how can I do it? (every software)
https://i.stack.imgur.com/mDVQ7.png
Notepad++ is good for doing this one-shot
Screenshot of the Notepad++ "Replace" window :
Here are the steps to follow:
Enter the expression ^.\*:.\*: inside the "Find What" text box
Enter an empty string in the "Replace With" textbox
select the Search Mode "Regular Expression"
click on "Replace All"

How do I set a place placeholder value for in a text box when using FabricJS?

I would like to create a text box with a place holder value, simliar to how placeholders [1] work in HTML.
Notably I would like:
Some prompt text.
The iternal serialized representation to not have the default text.
If a user clicks the text area, the prompt text goes away during editing.
If the user clicks out of the text area without entering any text, the prompt text comes back.
If the user enters text in the text area, the prompt text goes away and also the internal representation changes to have the newly input text.
What would be the cleanest way to do this ?
[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefplaceholder

How to give name and id to a button in android studio without going to xml file?

How do I change the attributes of the button without going to the XML file or the attributes of the button, I see people using shortcut to change the id and name of the button but don't know what it is
enter image description here
enter image description here
How to change name and id as shown the picture 2
You'll see an "attributes" panel on the right of the window like this
click on it to open, then click on the view you want to edit, in your case the button. You'll see something like this

How to search a text using Enter key in blue prism

I have a search box where I can enter the search text however there is no search button next to it. So we use to press enter button after enter the search text in text box.
Please advise how to handle this in blue prism. I have tried using Global Send Keys however the focus moved out of the search box hence nothing happening
If the mouse focus is inside the text box then you can see a 'X' mark inside it
If I use the global sendkeys then the mouse focus is outside the text box as below
To go about this issue, I would first try to set the focus on the field, by sending a Global Mouse Click Center (not just focus) to the Textbox.
Next, send the "{ENTER}" or "~" key to the Textbox, using Send Global Keys.
I would assume that if that doesn't work, you have spied the container of the Textbox, not the Textbox itself somehow.
Alternatively, as a last resort you can also choose to send a Javascript command to the webpage, in order to trigger the form submission. This can be achieved by using the Navigate stage on the Application Model's top element (highest in hierarchy).
Good luck!

Converting Text to Outlines in Publisher 2013

In order to be able to print a Publisher file, I've converted it into PDF with the commercial press options enabled. However, Publisher does not seem to convert the text objects to outlines/paths.
Is there any way to convert all text objects in Publisher to outlines (for a PDF file)?
It can't be done in Publisher. The alternative is embedding the fonts in the PDF, but the font needs to be embeddable.
Click the File tab, point to Commercial Printing Tools, and then click Manage Embedded Fonts.
In the Fonts dialog box, select the font, and then do one of the following:
To embed the font when the font has been set to not be embedded, click Embed.
To change the embedding status to Don't embed when the font has been set to be embedded, click Don't embed.
It can be done.
Select your text, then in Text Box Tools, in the Outline drop down choose the black option.
Still with the text selected, right click, choose Change Text and in there change the font colour to white.
Your text is now outlined.

Resources