text tag

62 questions


1 answers
67 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
118 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
112 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
130 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
117 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
80 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
123 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
84 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
92 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
141 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.