2017-05-10 5 views

答えて

2

https://github.com/florent37/ArcLayout

あなたは最も簡単な方法を尋ねたので。ビットマップシェイダーとアニメーションを扱いたくない場合は、これを使用してください。内部

クロップ:

<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

素敵なソリューション、ありがとう:) –

関連する問題