I finally managed to solve it, and to do it I redesigned my layout. Now instead of having a header and a ListView I just have a ListView in my layout:
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/myList"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Then I add the header layout to my ListView:
View header = (View)getLayoutInflater().inflate(R.layout.header,null);
mList.addHeaderView(header);
Now I set the onTouchListener to the ListView and voilà, I receive the onTouch events in the whole screen.
I know this is a restrictive solution and it can't be used with complex layouts, but I can use it in the screens I needed it.