課程
/移動開發(fā)
/Android
/Android實現(xiàn)抽獎轉盤
如何這個轉盤不是在布局的正中間 怎么設置按鈕的位置內
2015-07-28
源自:Android實現(xiàn)抽獎轉盤 4-1
正在回答
?android:layout_centerInParent="true"
??? <com.example.lottery.SurfaceTemplate??????? android:layout_width="match_parent"??????? android:layout_height="match_parent"??????? android:id="@+id/template"??????? android:padding="30dip"??????? android:layout_centerInParent="true"???????? />??? <ImageButton ??????? android:layout_width="wrap_content"??????? android:layout_height="wrap_content"??????? android:id="@+id/play"??????? android:src="@drawable/start"??????? android:layout_centerInParent="true"??????? />
舉報
使用SurfaceView來實現(xiàn)抽獎轉盤,剖析抽獎轉盤背后的概率機制
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2016-03-03
?android:layout_centerInParent="true"
2015-12-22
??? <com.example.lottery.SurfaceTemplate
??????? android:layout_width="match_parent"
??????? android:layout_height="match_parent"
??????? android:id="@+id/template"
??????? android:padding="30dip"
??????? android:layout_centerInParent="true"
???????? />
??? <ImageButton
??????? android:layout_width="wrap_content"
??????? android:layout_height="wrap_content"
??????? android:id="@+id/play"
??????? android:src="@drawable/start"
??????? android:layout_centerInParent="true"
??????? />