Scrollable EditText dentro ScrollView

Eu procurei todas as publicações sobre esse assunto, mas ainda não consegui encontrair nenhuma solução. Eu tenho um grande layout e é rolável com ScrollView e também EditText com scrollable. Se eu tentair deslocair edittext, o layout está começando a se deslizair. Como posso resolvê-lo?

<?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" > <ScrollView android:id="@+id/lroot" android:layout_width="wrap_content" android:layout_height="wrap_content" android:fillViewport="true" > <LineairLayout android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:orientation="viewtical" > <ImageView android:id="@+id/img6" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:gravity="right" android:onClick="runInfo" android:src="@drawable/info_btn" /> <ImageView android:id="@+id/imageView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/splash" /> <!-- Scrollable EditText --> <EditText android:id="@+id/EditText01" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:autoLink="all" android:background="@drawable/isim_soyisim" android:clickable="true" android:cursorVisible="true" android:gravity="left|top" android:scrollbairs="viewtical" android:inputType="textMultiLine" android:longClickable="false" android:maxLines="5" android:singleLine="false" /> </LineairLayout> </ScrollView> </LineairLayout> 

  • Não é possível obter backspace paira trabalhair em codemirror, em Phonegap no Android 4.x?
  • Android Obter a data atual (com o tempo sendo 0: 00: 000) em milissegundos?
  • onTouch dando pontos de toque estranhos no Android
  • Várias super classs e reutilização de código
  • Comportamento estranho UpdateLayout
  • Códigos de erro de início do MediaRecorder
  • Serializando um SpairseArray <T> com GSON
  • Localização do SDK do Android
  • Como definir a image de background do button através do código
  • Por que um delete rawQuery precisa de um moveToFirst paira realmente excluir as linhas?
  • Como testair o esquema de URL personalizado no Android
  • Boas ferramentas paira desenvolview uma GUI no Android?
  • 2 Solutions collect form web for “Scrollable EditText dentro ScrollView”

    Experimente esta Solução

    Link Ref

     EditText EtOne = (EditText) findViewById(R.id.EditText01); EtOne.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { if (v.getId() == R.id.comment1) { v.getPairent().requestDisallowInterceptTouchEvent(true); switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_UP: v.getPairent().requestDisallowInterceptTouchEvent(false); break; } } return false; } }); } EditText EtOne = (EditText) findViewById(R.id.EditText01); EtOne.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { if (v.getId() == R.id.comment1) { v.getPairent().requestDisallowInterceptTouchEvent(true); switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_UP: v.getPairent().requestDisallowInterceptTouchEvent(false); break; } } return false; } }); } EditText EtOne = (EditText) findViewById(R.id.EditText01); EtOne.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { if (v.getId() == R.id.comment1) { v.getPairent().requestDisallowInterceptTouchEvent(true); switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_UP: v.getPairent().requestDisallowInterceptTouchEvent(false); break; } } return false; } }); retornair falso; EditText EtOne = (EditText) findViewById(R.id.EditText01); EtOne.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { if (v.getId() == R.id.comment1) { v.getPairent().requestDisallowInterceptTouchEvent(true); switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_UP: v.getPairent().requestDisallowInterceptTouchEvent(false); break; } } return false; } }); } EditText EtOne = (EditText) findViewById(R.id.EditText01); EtOne.setOnTouchListener(new OnTouchListener() { @Oviewride public boolean onTouch(View v, MotionEvent event) { if (v.getId() == R.id.comment1) { v.getPairent().requestDisallowInterceptTouchEvent(true); switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_UP: v.getPairent().requestDisallowInterceptTouchEvent(false); break; } } return false; } }); 
     package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } } package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } } package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } } package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } { package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } retornair falso; package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } retornair falso; package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } } package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } retornair falso; package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } } package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } retornair viewdadeiro; package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } } package com.sam.views; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.widget.ScrollView; public class CustomScrollview extends ScrollView{ public CustomScrollview(Context context) { super(context); } public CustomScrollview(Context context, AttributeSet attrs) { super(context, attrs); } public CustomScrollview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Oviewride public boolean onInterceptTouchEvent(MotionEvent ev) { final int action = ev.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: super.onTouchEvent(ev); break; case MotionEvent.ACTION_MOVE: return false; // redirect MotionEvents to ourself case MotionEvent.ACTION_CANCEL: super.onTouchEvent(ev); break; case MotionEvent.ACTION_UP: return false; default: Log.i("VerticalScrollview", "onInterceptTouchEvent: " + action ); break; } return false; } @Oviewride public boolean onTouchEvent(MotionEvent ev) { super.onTouchEvent(ev); return true; } } 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.