Android EditText – settextmethod cursor problem
                                        
                    •
                    Android                                    
                I tried to set text in EditText... But after setting text, the cursor is still at the beginning of text. Can I move it to the end of text?
Any help in this regard is appreciated
Best wishes, Ronnie
resolvent:
EditText inputField;
Editable etext = inputField.getText();
int position = etext.length();
inputField.setSelection(position);
                
                            The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
                        
                                            
                        THE END
                    
                    
                    
                                                        二维码
                        
                        
                                                
                        