I want to keep image ratio using android daimajia sliderLayout
<p>I want Image Slide in my Android app.
So, I using daimajia library.(<a href="https://github.com/daimajia/AndroidImageSlider" rel="nofollow">https://github.com/daimajia/AndroidImageSlider</a>)</p>

<p>I have to keep my image's ratio like this.</p>

<pre><code>&lt;ImageView
android:id="@+id/main_function01"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitXY"
android:src="@mipmap/img_app_function_02" /&gt;
</code></pre>

<p>But, When I use daimajia library's SliderLayout, it doens't work.</p>

<pre><code>&lt;com.daimajia.slider.library.SliderLayout
android:id="@+id/slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
custom:auto_cycle="true"
custom:indicator_visibility="visible"
custom:pager_animation="Accordion"
custom:pager_animation_span="1100" /&gt;
</code></pre>

<p>how can i do? or is there any other best way?</p>