Skip to content

Instantly share code, notes, and snippets.

@Fatimamostafa
Created January 22, 2018 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fatimamostafa/c024d63de582c71765526ed88a47a936 to your computer and use it in GitHub Desktop.
Save Fatimamostafa/c024d63de582c71765526ed88a47a936 to your computer and use it in GitHub Desktop.
Dashed line view
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:bottom="0dp"
android:right="0dp"
android:top="0dp">
<shape android:shape="line">
<stroke
android:width="1dp"
android:color="@color/textGrey"
android:dashGap="2dp"
android:dashWidth="6dp" />
</shape>
</item>
</layer-list>
@Fatimamostafa
Copy link
Author

To make visible the dashed width view add this line to specific activity from manifest file!

android:hardwareAccelerated="false"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment