2017-05-10 4 views

Répondre

2

https://github.com/florent37/ArcLayout

Depuis que vous avez demandé la Way Easiest; Utilisez simplement ceci si vous ne voulez pas faire face à BitmapShader et Animations.

cultures à l'intérieur:

<com.github.florent37.arclayout.ArcLayout 
      android:layout_width="match_parent" 
      android:layout_height="200dp" 
      app:arc_cropDirection="cropInside" 
      app:arc_height="90dp" 
      app:arc_padding="30dp" 
      android:elevation="5dp" 
      > 

      <ImageView 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 
       android:scaleType="centerCrop" 
       android:src="@drawable/yourImage" /> 

</com.github.florent37.arclayout.ArcLayout> 
+0

solution agréable, merci :) –