现在很多Android市场中都能找到关于美女的应用,比如 撕开美女衣服、吹裙子等。
这些应用的下载量挺大的,作为Android的开发人员或者一名技术人员我们不能只局限在欣赏应用的层面,很多时候需要我们去揭开神秘背后的真相,下面我们来看一下如何来开发这样一个类似的撕开美女衣服的应用。
先来看一下效果:
其实这个应用的原理很简单,有两张图片,布局如下:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/back_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/back"/>
<ImageView
android:id="@+id/up_img"
android:layout_width="wrap_co