Posts

Showing posts from February 17, 2019

Cuautla (Jalisco)

Image
Coordenadas: 20° 12' N 104° 24' O Cuautla    Cidade do México    Brasão de armas Cuautla Localização de Cuautla no México Coordenadas 20° 12' N 104° 24' O País   México Estado do México Jalisco Área  - Total 255 02 km² População  - Total 2,024

Cuautitlán de García Barragán

Image
Coordenadas: 19° 27' N 104° 22' O Cuautitlán de García Barragán    Cidade do México    Cuautitlán de García Barragán Localização de Cuautitlán de García Barragán no México Coordenadas 19° 27' N 104° 22' O País   México Estado do México Jalisco Área  - Total 1 178 67 km² População  - Total 16,408

Vertical ViewPager with fragments

Image
1 I want to show 3 fragments below each other. So far I've used many solutions such as YViewPager and answers such as Android: Vertical ViewPager. The main problem with them is non of them working the way I want. I need to show a first fragment and below that, some part of the second one, and when user scrolled to next one, showing second fragment and some part of third one. The YViewPager was great until I added these lines to show some part of second fragment: viewPager.setClipToPadding(false); viewPager.setCurrentItem(1); viewPager.setPadding(0,0,0,500); After that, it became like this: With that white space that came out of nowhere. And as for other libraries and hacks which told me to swap motion event: private MotionEvent swapXY(MotionEvent event) { float width = getWidth(); float height