text tag

62 questions


1 answers
75 views
0
How do I avoid focusing on EditText when the activity is executed?

There are two elements in the activity, EditText and ListView. When the activity is turned on, a cursor is created in EditText EditText.setSelected(false);I did it like this, but it's still like that...


1 answers
132 views
0
How do I read values from the EditText field?

I'm learning how to make UI on Android these days. I made a few EditTexts to get the price. What I want to make is to press the button and read the values in EditText.<EditText android:id=@+id/name...


1 answers
121 views
0
GetText() error related questions.

private class HttpAsyncTask extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... urls) { person = new Person(); person.setName(etName.getText().toStrin...


1 answers
143 views
0
What exactly is Context doing on Android?

When exactly is the Context class used on Android?I went to the developer site and read it, but I don't understand it.

2 years ago

1 answers
128 views
0
I'd like to place the TextView in the middle horizontally...

I want to print out a text view in the middle of the screen, what should I do??

2 years ago

1 answers
92 views
0
How do I process the enter key in EditText?

I'm implementing login on Android, but when I press Enter, the login button automaticallyI want to press it, but can EditText handle the enter key?

2 years ago

1 answers
134 views
0
Can I use static method to get context on Android?

I'd like to use a static method to get a context. How do I do it

2 years ago

1 answers
95 views
0
Hide the keyboard when you press Enter in EditText

What can I do if I want to hide the keyboard when I press EditText Enter?

2 years ago

1 answers
98 views
0
Can I place the cursor at the end of the text in EditText?

When changing the value of EditText in the keyListenerThere's a cursor at the beginning of EditText, and I want to put it at the end of the text. How do I move the cursor to the end?


1 answers
158 views
0
I want to count the number of characters in EditText.

I have EditText in my project and I want to count the number of characters in EditText. And I wrote the code below to print that number in TextView. It works well. If I type in backspace, the number o...

« - 5 - »

© 2024 OneMinuteCode. All rights reserved.