How can I have both a return and a done keys in an EditText's softkeyboard?


how can I have both a "done" (close the softkeyboard) and a "return" (line break) keys in my softkeyboard (Samsung Galaxy 10.1, Android 3.1, portrait mode) when writing in an EditText?


<EditText android:id="@+id/comment" android:layout_width="772dp" android:layout_height="200dp"/>

I get

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/vK58X.png" data-original="https://i.stack.imgur.com/vK58X.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />



That may depend on the application and what you mean by 'done'. But, the KeyCode DPAD_UP and _DOWN ("arrow keys") will normally move the cursor to the next EditText.


  • SVG pattern animation
  • Passing string variable with spaces
  • Connection refused on Docker tutorial get started part 4
  • Slider button click in selenium python
  • running xunit tests included in a .NET Standard 1.6 library
  • Spaceship comparison operator in C++
  • How to get Angular.js binding tags safely past Python's Jinja2?
  • How to open a file when file handle number is known?
  • OpenCL files fail to compile on OS X
  • VBA: Downloading a file behind JavaScript link
  • Function Get-IniContent is not recognized - INI file support inPowerShell
  • import cv2 doesn't give error on command-Prompt but error on IDLE on Windows 10, Python 3.6.4
  • When exactly does Mongoid actually make a query to MongoDb
  • GitLab runner on Windows and dealing with & %ERRORLEVEL%
  • Ruby on Rails - Settting up Reviews functionality
  • How to resume hash slots of a particular node in redis cluster in case of hard failure?
  • what is “Other” category in CosmosDB monitoring graph?
  • autotest on ubuntu does nothing
  • remove date from DateTimePicker for Compact Framework
  • Planned Contrasts on glmmTMB
  • jQuery colorbox breaks postbacks in ASP.NET Web Forms
  • Getting/building the SQL (with parameters) from NHibernate 3.2
  • How can I do case insensitive string search with Linq and SQL Server?
  • How to put an object in the air?
  • Sample deviceQuery cuda program
  • Android studio import problems. (Apktool)
  • Building JavaFX 2.0 App on Mac, deploying on Windows
  • Pandas vs matplotlib datetime
  • Compiling multiple source files in Rcpp
  • Set WebClient.Builder.exchangeStrategies() without losing Spring Jackson configuration
  • How to handle div that is created dynamically in a table
  • Angular 4: Responsive Grid List
  • Cross compile glibc for arm, got undefined reference to some unwind functions
  • How to use FirstOrDefault inside Include
  • How do I use TagLib-Sharp to write custom (PRIV) ID3 frames?
  • PHP Permalinks.. how to change?
  • CAS 4 - Not able to retrieve the LDAP groups after successful authentication
  • Running R's aov() mixed effects model from Python using rpy2
  • ReferenceError: TextEncoder is not defined
  • JavaScript RegExp Replace