1

I am quite new to android, can anyone please tell me how to create hexagonal view like bellow in the image.

enter image description here

Akshaykumar Maldhure
  • 1,201
  • 17
  • 31

1 Answers1

3

Shape Image View can help you with your requirement

<com.github.siyamed.shapeimageview.{ClassName}
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:layout_margin="8dp"
   android:src="@drawable/neo"
   app:siBorderWidth="8dp"
   app:siBorderColor="@color/darkgray"/>

enter image description here

in your case you can use com.github.siyamed.shapeimageview.HexagonImageView

There are lot other shapes available, refer that library for more detail.

Have a look at CustomShapeImageView also

Ravi
  • 33,034
  • 19
  • 115
  • 176