Getting Started with Android-animations and containers

Source: Internet
Author: User

The Set animation container can be added as a resource ID r.anim.xxxx can be used to add http://blog.csdn.net/liuhe688/article/details/6660823 in the style sheet

Inset embedding a drawing resource container add <item name= "Android:background" > @drawable/background_view_rounded_bottom</item in the style sheet >

<?xml version= "1.0" encoding= "UTF-8"?>
<inset android:insetleft= "1.0px" android:insetright= "1.0px" android:insettop= "1.0px" android:insetbottom= "1.0px "
Xmlns:android= "Http://schemas.android.com/apk/res/android" >
<selector>
<item android:state_pressed= "true" >
<shape>
<gradient android:startcolor= "@color/base_start_color_pressed" android:endcolor= "@color/base_end_color_ Pressed "android:angle=" 270.0 "/>
<corners android:radius= "2.0dip" android:topleftradius= "0.0dip" android:toprightradius= "0.0dip" Android: bottomleftradius= "10.0dip" android:bottomrightradius= "10.0dip"/>
</shape>
</item>
<item>
<shape>
<gradient android:startcolor= "@color/base_start_color_default" android:endcolor= "@color/base_end_color_ Default "android:angle=" 270.0 "/>
<corners android:radius= "2.0dip" android:topleftradius= "0.0dip" android:toprightradius= "0.0dip" Android: bottomleftradius= "11.0dip" android:bottomrightradius= "11.0dip"/>
</shape>
</item>
</selector>
</inset>

Getting Started with Android-animations and containers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.