I have this XML structure:
<ScrollView>
<RelativeLayout>
..........
<SwipeRefreshLayout>
<LinearLayout/>
</SwipeRefreshLayout>
.....
</RelativeLayout>
</ScrollView>
I am trying to implement the SwipeRefreshLayout for the LinearLayout but it made my LinearLayout disappear. I have already tried to put the LinearLayout inside a ScrollView, but it still doesn't appear. I can't remove the main parent also. It is necessary to me. Does anyone know how can I implement it?