課程
/移動開發
/Android
/快速實現不一樣的移動拼圖
我想知道怎么把原圖放在拼圖的下面
2017-06-11
源自:快速實現不一樣的移動拼圖 3-1
正在回答
<?xml?version="1.0"?encoding="utf-8"?> <RelativeLayout ????xmlns:android="http://schemas.android.com/apk/res/android" ????xmlns:tools="http://schemas.android.com/tools" ????android:id="@+id/activity_main" ????android:layout_width="match_parent" ????android:layout_height="match_parent" ????tools:context="com.baiyun.pitu.MainActivity" ????android:background="#f79b11"> ????<GridLayout ????????android:layout_width="match_parent" ????????android:layout_height="match_parent" ????????android:id="@+id/gl_main_game" ????????android:columnCount="5" ????????android:rowCount="3"></GridLayout> ????<ImageView ????????android:layout_width="match_parent" ????????android:layout_height="match_parent" ????????android:src="@drawable/ic_game_tu" ????????android:layout_marginRight="10dp" ????????android:layout_marginLeft="10dp" ????????android:layout_marginTop="200dp"/> </RelativeLayout>
舉報
實現一個支持手勢的移動拼圖小游戲,手把手帶你開發小游戲
3 回答滑動拼圖,點擊可滑動的拼圖,那個拼圖就消失了
1 回答圖片縮放的方法應該加入
1 回答圖片的問題
2 回答圖片超出屏幕
3 回答在判斷圖片是否與空圖片相鄰這,為什么我點擊任何方塊都顯示false?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-09-06