MichaelP
MichaelP

Reputation: 2781

How can i make this center bar on android?

anyone work on iphone must know about center bar in datetime control (like image below). Now i want to make this bar on android in xml, i tried it but it's not same to bar on iphone (the color not like). How can i make it on android as a xml drawable? Thanks for your help.

Upvotes: 0

Views: 109

Answers (2)

MichaelP
MichaelP

Reputation: 2781

here is the best drawable for center bar i got so far. hope it useful for someone want to make this kind of bar be nicer

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
 <item>
    <shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#507E8EAB" />
    <stroke android:width="1dp" android:color="#70333333" /> 
    </shape>
</item>
<item android:left="1dp" android:right="1dp" android:top="0dp" android:bottom="25dp">
    <shape android:shape="rectangle">
    <solid android:color="#70E3F7FF" />

    </shape>
</item>

Upvotes: 0

Blackbelt
Blackbelt

Reputation: 157467

exists a widget on code.google.com: see at

Upvotes: 1

Related Questions