# Ion-scroll cannot work on android

**URL:** <https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089>\
**Category:** ionic-v3\
**Created:** [August 7, 2017, 7:21am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089 "2017-08-07T07:21:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![happycharis](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@happycharis](https://forum.ionicframework.com/u/happycharis)\
**Post date:** [August 7, 2017, 7:21am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/1 "2017-08-07T07:21:28Z")

</div>

The ion-scroll (horizontal scroll) can work on ios, but not work on android. Doesn’t scroll no matter how I slide.

Changing ion-scroll to \< div \> with css “overflow-x: scroll”, it’s the same.

Version info:  
cordova platform: android 6.2.3  
ionic-angular 3.6.0

Help~~~

---

<div class="post-metadata">

**Author:** ![Chungtheng](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chungtheng/32/116877_2.png) [@Chungtheng](https://forum.ionicframework.com/u/Chungtheng)\
**Post date:** [August 7, 2017, 7:34am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/2 "2017-08-07T07:34:26Z")

</div>

You can show us full code.

---

<div class="post-metadata">

**Author:** ![happycharis](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@happycharis](https://forum.ionicframework.com/u/happycharis)\
**Post date:** [August 7, 2017, 7:36am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/3 "2017-08-07T07:36:33Z")

</div>

@Component({  
selector: ‘thumbnail-gallery’,  
template: `<ion-scroll scrollX="true" [ngStyle]="{'height.px': slideHeight}"> <layout-img *ngFor="let img of displayImgs; let i = index" [src]="img" layout="fill" [ngStyle]="{'width.px': slideWidth, 'height.px': slideHeight}"> </layout-img> </ion-scroll>`  
})

\< layout-img \> is a customized component.

---

<div class="post-metadata">

**Author:** ![Chungtheng](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chungtheng/32/116877_2.png) [@Chungtheng](https://forum.ionicframework.com/u/Chungtheng)\
**Post date:** [August 7, 2017, 7:46am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/4 "2017-08-07T07:46:42Z")

</div>

so, you want to show a lot of image in a row and you can scroll it, right?

---

<div class="post-metadata">

**Author:** ![happycharis](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@happycharis](https://forum.ionicframework.com/u/happycharis)\
**Post date:** [August 7, 2017, 7:50am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/5 "2017-08-07T07:50:03Z")

</div>

right  
show a lot of image in a row

---

<div class="post-metadata">

**Author:** ![Chungtheng](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chungtheng/32/116877_2.png) [@Chungtheng](https://forum.ionicframework.com/u/Chungtheng)\
**Post date:** [August 7, 2017, 7:53am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/6 "2017-08-07T07:53:39Z")

</div>

Why not use this one ! it is good, I use it too.

> **[Ionic Framework](https://ionicframework.com/docs/api/components/slides/Slides/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

---

<div class="post-metadata">

**Author:** ![happycharis](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@happycharis](https://forum.ionicframework.com/u/happycharis)\
**Post date:** [August 7, 2017, 8:00am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/7 "2017-08-07T08:00:01Z")

</div>

But I wanna show 2 and half images. Does it support?

---

<div class="post-metadata">

**Author:** ![Chungtheng](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chungtheng/32/116877_2.png) [@Chungtheng](https://forum.ionicframework.com/u/Chungtheng)\
**Post date:** [August 7, 2017, 8:08am UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/8 "2017-08-07T08:08:12Z")

</div>

why not !

> slidesPerView=2.5

---

<div class="post-metadata">

**Author:** ![happycharis](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@happycharis](https://forum.ionicframework.com/u/happycharis)\
**Post date:** [September 4, 2017, 4:27pm UTC](https://forum.ionicframework.com/t/ion-scroll-cannot-work-on-android/101089/9 "2017-09-04T16:27:02Z")

</div>

it works! thanks a lot
