在Android開發(fā)過程中,常常會因為感覺Android自帶的Dialog的樣式很丑,項目開發(fā)過程中會影響整體效果,會使得開發(fā)過程很是憂傷....(話嘮時間結(jié)束!)
本文我將介紹一款開源的Dialog仿IOS底部彈窗效果IOS_Dialog_Library的使用。我將通過幾個簡單的示例介紹IOS_Dialog_Library.zip的使用方法。
1、IOS_Dialog_Library是開源的Dialog框架,所以首先你得下載IOS_Dialog_Library.zip包,并作為Library引入你的項目(引入過程省略)。
IOS_Dialog_Library下載地址:http://xiazai.jb51.net/201701/yuanma/iOSDialogLibrary(jb51.net).rar
2、在創(chuàng)建完項目和引用完 IOS_Dialog_Library.zip 之后,開始編寫代碼。
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:orientation="vertical"> <Button android:id="@+id/btn1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="消息" /> <Button android:id="@+id/btn2" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="圖片" /> <Button android:id="@+id/btn3" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="列表Item" /> <Button android:id="@+id/btn4" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="退出 彈窗" /> <Button android:id="@+id/btn5" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="錯誤提示窗口" /> </LinearLayout>
當(dāng)前題目:Android仿IOS底部彈出對話框-創(chuàng)新互聯(lián)
當(dāng)前地址:http://www.rwnh.cn/article42/jhpec.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計、軟件開發(fā)、App設(shè)計、網(wǎng)頁設(shè)計公司、電子商務(wù)、面包屑導(dǎo)航
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容