I want to put two EditText control in a LinerLayout. And put them one left and another right.
Now I want to realize a function like this: when the EditText context in right scroll up and down, the edittext content in left also scroll synchronous.
How to do this? Thanks very much!
Two ideas:
LinearLayoutwith twoEditTexts inside aScrollView.EditTextinherits afterView, which has methodsscrollTo()andonScrollChanged(). OverrideonScrollChanged()for firstEditText, in which you you will callscrollTo()of the secondEditText.