I want to implement a stroke in the android like the start colour white and in Middle Its Showing the shadowed black colour and at the end colour is again same as in start.I have a picture of stroke but I cant post here.Can we implement this??? Thanks in Advance
You can have a shape like this, of course you will have to change colors based on your need
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:width="6dp" android:color="#FFCCCCCC"/>
<padding
android:left="5dp"
android:top="5dp"
android:right="5dp"
android:bottom="5dp" />
<corners android:radius="8dp" />
<gradient
android:angle="270"
android:startColor="#FFCCCCCC"
android:centerColor="#FFFFFFFF"
android:endColor="#FFCCCCCC"
android:type="linear" />
</shape>
some link added as you requested,
http://blog.stylingandroid.com/
http://developer.android.com/guide/topics/ui/themes.html
http://developers.janrain.com/documentation/mobile-libraries/android/android-sdk/introduction-to-android-theme-customization/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With