Android Faux WIN8 System tile Click to drop tilt effect

Source: Internet
Author: User

※effect


※ Instructions for use
Java Code
Import Android.app.activity;import Android.os.bundle;import Android.widget.toast;public class Testrolateanimactivity extends Activity {    /** called when the activity is first created. */myimageview joke;    @Override public    void OnCreate (Bundle savedinstancestate) {        super.oncreate (savedinstancestate);        Setcontentview (r.layout.main);                Joke= (Myimageview) Findviewbyid (r.id.c_joke);        Joke.setonclickintent (New Myimageview.onviewclick () {@Overridepublic void OnClick () {//TODO auto-generated method Stubtoast.maketext (Testrolateanimactivity.this, "Event trigger", +). Show (); System.out.println ("1");}});}}    

XML Code
<?xml version= "1.0" encoding= "Utf-8"? ><linearlayout xmlns:android= "http://schemas.android.com/apk/res/ Android "Android:layout_width=" Fill_parent "android:layout_height=" fill_parent "android:gravity=" center "android:o rientation= "vertical" android:background= "@drawable/bkg_img_default" > <linearlayout android:layout_width= " Wrap_content "android:layout_height=" wrap_content "android:orientation=" vertical "> <linearlayo UT android:layout_width= "wrap_content" android:layout_height= "Wrap_content" Android:orien tation= "Horizontal" > <linearlayout android:layout_width= "wrap_content" and roid:layout_height= "wrap_content" android:orientation= "vertical" > <com.ljp.ani.myimag Eview android:id= "@+id/c_joke" android:layout_width= "Wrap_content" Android:scaletype = "Matrix" Android:layout_height= "Wrap_content" android:layout_margin= "2DP" android:src= "@drawable/left_top"/> <com.ljp.ani.myimageview android:id= "@+id/c_idea" Android:layout_width= "W                     Rap_content "android:scaletype=" Matrix "android:layout_height=" Wrap_content "android:layout_margin=" 2DP " android:src= "@drawable/left_bottom"/> </LinearLayout> <com.ljp.ani. Myimageview android:id= "@+id/c_constellation" android:layout_width= "Wrap_content" android:s Caletype= "Matrix" android:layout_height= "Wrap_content" android:layout_margin= "2DP" ANDROID:SR c= "@drawable/right"/> </LinearLayout> <com.ljp.ani.myimageview android:id= "@+id/c_rec Ommend "android:layout_width=" wrap_content "android:scaletype=" Matrix "android:layout_height=" Wrap_c Ontent "Android:layout_maRgin= "2DP" android:src= "@drawable/bottom"/> </LinearLayout></LinearLayout> 

Demo Download http://download.csdn.net/detail/u010785585/7668229

Android Faux WIN8 System tile Click to drop tilt effect

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.