android - Curve Shape List Item -


hey new in android...

actually, don't know how develop curve style listview... please give me concept/code develop curve shape list item...

i want develop these kind of scrolling menu(visit link) display in second number screen-shot on play store...

thanks in advance....

just create shape.xml in drawable folder , put code inside

    <?xml version="1.0" encoding="utf-8"?>     <shape xmlns:android="http://schemas.android.com/apk/res/android">     <solid android:color="#000000"/>     <stroke android:width="5dp" android:color="#313131"/>     <corners android:radius="10dp" />     <padding android:left="10dp" android:top="10dp"     android:right="10dp" android:bottom="10dp" />     </shape> 

then can set background in list item. "play" stroke, radius dimensions , colors in shape create own custom one.

instructions:

go file-->new-> android xml file , create shape xml file.

copy-paste above code

then go list item xml file , set android:background="@drawable/shape" shape shape.xml file created above , located in drawable folder.

in case want add list item programmatically have listitem.setbackgroundresource(r.drawable.shape); or similar. hope helps.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -