Android 5.0 Datepicker in scrollview not working (not scrolling months) -


i have new datepicker implemented in fragment. wrapped in scrollview. when trying use datepicker have click , hold somewhere on screen before can scroll through datepickers calader let's may.

is there way fix this?

im using timepicker: enter image description here

and im loading this:

 <scrollview     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/scrollview2"     android:layout_row="11"     android:fillviewport="true"     android:background="#162229"     android:layout_column="2"     android:paddingbottom="20dp"> <linearlayout     android:id="@+id/linearlayout1"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:gravity="center"     android:background="#162229"      android:orientation="vertical" >      <datepicker         android:id="@+id/datepicker1"         android:layout_width="wrap_content"         android:background="#162229"         android:calendartextcolor="#fff"         android:layout_height="wrap_content"          android:calendarviewshown="false" > <!-- style="@style/date_picker_style" -->     </datepicker> </linearlayout> </scrollview> 

create class extends datepicker , override following method:

@override public boolean onintercepttouchevent(motionevent ev) {     if (ev.getactionmasked() == motionevent.action_down)     {         viewparent p = getparent();         if (p != null)             p.requestdisallowintercepttouchevent(true);     }      return false; } 

it'll work fine. source : here


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -