Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
327 views
in Technique[技术] by (71.8m points)

android - How to make Title and Note EditTexts focus just like the ones in Google Keep app?

I'm trying to make a note app, but I have problems in the NoteCreateActivity layout.

First problem: I want to make noteEditText focusable when starting the activity, and my problem is that I have to click twice on titleEditText to show the keyboard, first time to make it focusable and second time to show the keyboard.

(Screenshot 1): noteEditText is first focusable when starting the activity in Google Keep app.

(Screenshot 2): Now titleEditText is focusable after one click on it

Second problem: when I open a note that already has data inside it, I none of the EditTexts to be focusable until I click on one of them.

(Screenshot 3): None of two EditTexts are focusable when opening an activity that already has data inside it.

All the screenshots above were taken from the Google Keep app.

question from:https://stackoverflow.com/questions/65909313/how-to-make-title-and-note-edittexts-focus-just-like-the-ones-in-google-keep-app

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...