activity_enty_anim.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.bestv.edu.view.EnterAnimLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:id="@+id/activity_main"
  6. android:layout_height="match_parent"
  7. android:layout_width="match_parent">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:paddingLeft="@dimen/activity_horizontal_margin"
  12. android:paddingRight="@dimen/activity_horizontal_margin"
  13. android:paddingTop="@dimen/activity_vertical_margin"
  14. android:paddingBottom="@dimen/activity_vertical_margin"
  15. android:orientation="vertical">
  16. <com.bestv.edu.view.EnterAnimLayout
  17. android:id="@+id/anim_layout"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_gravity="center_horizontal"
  21. android:background="@android:color/holo_blue_bright"
  22. android:padding="20dp"
  23. >
  24. <LinearLayout
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:orientation="vertical"
  28. android:background="@android:color/holo_orange_light">
  29. <TextView
  30. android:id="@+id/text_view"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:text="EnterAnimTextView"
  34. android:textSize="30sp"
  35. />
  36. <LinearLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:orientation="horizontal">
  40. <ImageView
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:src="@mipmap/ic_launcher"
  44. />
  45. <Button
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="这就是一个按钮"/>
  49. </LinearLayout>
  50. </LinearLayout>
  51. </com.bestv.edu.view.EnterAnimLayout>
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal">
  56. <CheckBox
  57. android:id="@+id/check_box"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:padding="5dp"/>
  61. <TextView
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:text="apply enim to this Activity?"/>
  65. </LinearLayout>
  66. <ScrollView
  67. android:layout_width="match_parent"
  68. android:layout_height="match_parent">
  69. <LinearLayout
  70. android:orientation="vertical"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content">
  73. <com.bestv.edu.view.EnterAnimLayout
  74. android:id="@+id/anim_baiyechuang"
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. app:isVisibleAtFirst="true"
  78. >
  79. <Button
  80. android:id="@+id/btn_baiyechuang"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:textSize="24sp"
  84. android:text="百叶窗效果"
  85. />
  86. </com.bestv.edu.view.EnterAnimLayout>
  87. <com.bestv.edu.view.EnterAnimLayout
  88. android:id="@+id/anim_cachu"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. app:isVisibleAtFirst="true"
  92. >
  93. <Button
  94. android:id="@+id/btn_cachu"
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:text="擦除效果"
  98. />
  99. </com.bestv.edu.view.EnterAnimLayout>
  100. <com.bestv.edu.view.EnterAnimLayout
  101. android:id="@+id/anim_hezhuang"
  102. android:layout_width="wrap_content"
  103. android:layout_height="wrap_content"
  104. app:isVisibleAtFirst="true"
  105. >
  106. <Button
  107. android:id="@+id/btn_hezhuang"
  108. android:layout_width="wrap_content"
  109. android:layout_height="wrap_content"
  110. android:text="盒状效果"
  111. />
  112. </com.bestv.edu.view.EnterAnimLayout>
  113. <com.bestv.edu.view.EnterAnimLayout
  114. android:id="@+id/anim_jieti"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. app:isVisibleAtFirst="true"
  118. >
  119. <Button
  120. android:id="@+id/btn_jieti"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:textSize="33sp"
  124. android:text="阶梯效果"
  125. />
  126. </com.bestv.edu.view.EnterAnimLayout>
  127. <com.bestv.edu.view.EnterAnimLayout
  128. android:id="@+id/anim_lingxing"
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. app:isVisibleAtFirst="true"
  132. >
  133. <Button
  134. android:id="@+id/btn_lingxing"
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:text="菱形效果"
  138. />
  139. </com.bestv.edu.view.EnterAnimLayout>
  140. <com.bestv.edu.view.EnterAnimLayout
  141. android:id="@+id/anim_lunzi"
  142. android:layout_width="wrap_content"
  143. android:layout_height="wrap_content"
  144. app:isVisibleAtFirst="true"
  145. >
  146. <Button
  147. android:id="@+id/btn_lunzi"
  148. android:layout_width="wrap_content"
  149. android:layout_height="wrap_content"
  150. android:text="轮子效果"
  151. />
  152. </com.bestv.edu.view.EnterAnimLayout>
  153. <com.bestv.edu.view.EnterAnimLayout
  154. android:id="@+id/anim_pilie"
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content"
  157. app:isVisibleAtFirst="true"
  158. >
  159. <Button
  160. android:id="@+id/btn_pilie"
  161. android:layout_width="wrap_content"
  162. android:layout_height="wrap_content"
  163. android:text="劈裂效果"
  164. />
  165. </com.bestv.edu.view.EnterAnimLayout>
  166. <com.bestv.edu.view.EnterAnimLayout
  167. android:id="@+id/anim_qipan"
  168. android:layout_width="wrap_content"
  169. android:layout_height="wrap_content"
  170. app:isVisibleAtFirst="true"
  171. >
  172. <Button
  173. android:id="@+id/btn_qipan"
  174. android:layout_width="wrap_content"
  175. android:layout_height="wrap_content"
  176. android:text="棋盘效果"
  177. />
  178. </com.bestv.edu.view.EnterAnimLayout>
  179. <com.bestv.edu.view.EnterAnimLayout
  180. android:id="@+id/anim_qieru"
  181. android:layout_width="wrap_content"
  182. android:layout_height="wrap_content"
  183. app:isVisibleAtFirst="true"
  184. >
  185. <Button
  186. android:id="@+id/btn_qieru"
  187. android:layout_width="wrap_content"
  188. android:layout_height="wrap_content"
  189. android:text="切入效果"
  190. android:textSize="26sp"
  191. />
  192. </com.bestv.edu.view.EnterAnimLayout>
  193. <com.bestv.edu.view.EnterAnimLayout
  194. android:id="@+id/anim_shanxingzhankai"
  195. android:layout_width="wrap_content"
  196. android:layout_height="wrap_content"
  197. app:isVisibleAtFirst="true"
  198. >
  199. <Button
  200. android:id="@+id/btn_shanxingzhankai"
  201. android:layout_width="wrap_content"
  202. android:layout_height="wrap_content"
  203. android:text="扇形展开效果"
  204. />
  205. </com.bestv.edu.view.EnterAnimLayout>
  206. <com.bestv.edu.view.EnterAnimLayout
  207. android:id="@+id/anim_shizixingkuozhan"
  208. android:layout_width="wrap_content"
  209. android:layout_height="wrap_content"
  210. app:isVisibleAtFirst="true"
  211. >
  212. <Button
  213. android:id="@+id/btn_shizixingkuozhan"
  214. android:layout_width="wrap_content"
  215. android:layout_height="wrap_content"
  216. android:text="十字扩展效果"
  217. />
  218. </com.bestv.edu.view.EnterAnimLayout>
  219. <com.bestv.edu.view.EnterAnimLayout
  220. android:id="@+id/anim_suijixiantiao"
  221. android:layout_width="wrap_content"
  222. android:layout_height="wrap_content"
  223. app:isVisibleAtFirst="true"
  224. >
  225. <Button
  226. android:id="@+id/btn_suijixiantiao"
  227. android:layout_width="wrap_content"
  228. android:layout_height="wrap_content"
  229. android:text="随机线条效果"
  230. android:textSize="30sp"
  231. />
  232. </com.bestv.edu.view.EnterAnimLayout>
  233. <com.bestv.edu.view.EnterAnimLayout
  234. android:id="@+id/anim_xiangneirongjie"
  235. android:layout_width="wrap_content"
  236. android:layout_height="wrap_content"
  237. app:isVisibleAtFirst="true"
  238. >
  239. <Button
  240. android:id="@+id/btn_xiangneirongjie"
  241. android:layout_width="wrap_content"
  242. android:layout_height="wrap_content"
  243. android:text="向内溶解效果"
  244. android:textSize="28sp"
  245. />
  246. </com.bestv.edu.view.EnterAnimLayout>
  247. <com.bestv.edu.view.EnterAnimLayout
  248. android:id="@+id/anim_yuanxingkuozhan"
  249. android:layout_width="wrap_content"
  250. android:layout_height="wrap_content"
  251. app:isVisibleAtFirst="true"
  252. >
  253. <Button
  254. android:id="@+id/btn_yuanxingkuozhan"
  255. android:layout_width="wrap_content"
  256. android:layout_height="wrap_content"
  257. android:text="圆形扩展效果"
  258. />
  259. </com.bestv.edu.view.EnterAnimLayout>
  260. </LinearLayout>
  261. </ScrollView>
  262. </LinearLayout>
  263. </com.bestv.edu.view.EnterAnimLayout>