Dotted line xml in android -


i working on android application in want use dotted line xml divider in layout. have used different drawables instead make dashed dotted line, making line. drawable given below, please me out here.

<?xml version="1.0" encoding="utf-8"?> <shape     xmlns:android="http://schemas.android.com/apk/res/android"     android:shape="line">     <stroke         android:color="#ff404040"         android:width="1dp"         android:dashgap="3dp"         android:dashwidth="1dp"     />     <size         android:height="3dp"     /> </shape> 

dashed lines not supported in gl mode. add

android:layertype="software" 

for e.g.

<imageview     android:layertype="software" // add here  ... 

in xml layout view or programmatically as

view.setlayertype(view.layer_type_software, null); 

or turn off hardware -acceleration this:

android:hardwareaccelerated="false" 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -