欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Android實現(xiàn)QQ側(cè)滑(刪除、置頂?shù)?功能-創(chuàng)新互聯(lián)

實現(xiàn)類似QQ滑動出現(xiàn)可操作項的功能,在網(wǎng)上看到有人自定義LinearLayout實現(xiàn)這個效果,但是靈活性有限。此demo使用開源項目SwipeLayout實現(xiàn)該功能。關(guān)于SwipeLayout的常用設(shè)置和屬性,這里都做介紹,下面進(jìn)入正題。

站在用戶的角度思考問題,與客戶深入溝通,找到平安網(wǎng)站設(shè)計與平安網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗,讓設(shè)計與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個性化、用戶體驗好的作品,建站類型包括:網(wǎng)站制作、成都網(wǎng)站設(shè)計、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、域名與空間、虛擬主機(jī)、企業(yè)郵箱。業(yè)務(wù)覆蓋平安地區(qū)。

一、效果圖

二、代碼片段

主頁布局和主頁的Java代碼都和平時使用沒有區(qū)別,代碼沒必要貼出來了。這里使用的ListView演示,還可以是GridView,ExpandableListView。


最關(guān)鍵的代碼部分,ListView適配器布局:


<?xml version="1.0" encoding="utf-8"?>
<com.daimajia.swipe.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:app="http://schemas.android.com/apk/res-auto"
 android:id="@+id/swipe"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 app:drag_edge="right">

 <LinearLayout
  android:id="@+id/trash"
  android:layout_width="160dp"
  android:layout_height="match_parent"
  android:gravity="center"
  android:orientation="horizontal"
  android:tag="Bottom">

  <TextView
   android:id="@+id/swipe_open"
   android:layout_width="1dp"
   android:layout_height="match_parent"
   android:layout_weight="1"
   android:background="#f55509"
   android:gravity="center"
   android:text="打開"
   android:textColor="@android:color/white"
   android:textSize="20sp" />

  <TextView
   android:id="@+id/swipe_delete"
   android:layout_width="1dp"
   android:layout_height="match_parent"
   android:layout_weight="1"
   android:background="@android:color/holo_red_dark"
   android:gravity="center"
   android:text="刪除"
   android:textColor="@android:color/white"
   android:textSize="20sp" />

 </LinearLayout>

 <LinearLayout
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:background="@android:color/white"
  android:gravity="center_vertical"
  android:orientation="horizontal"
  android:padding="5dp">

  <ImageView
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:src="@drawable/ic_launcher" />

  <LinearLayout
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:background="@android:color/white"
   android:orientation="vertical"
   android:paddingLeft="5dp">

   <TextView
    android:id="@+id/tv_nickname"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:textSize="17sp" />

   <TextView
    android:id="@+id/tv_msg"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="5dp"
    android:textSize="15sp" />
  </LinearLayout>
 </LinearLayout>
</com.daimajia.swipe.SwipeLayout>

當(dāng)前標(biāo)題:Android實現(xiàn)QQ側(cè)滑(刪除、置頂?shù)?功能-創(chuàng)新互聯(lián)
分享地址:http://aaarwkj.com/article40/dpgpeo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器靜態(tài)網(wǎng)站、定制網(wǎng)站、建站公司品牌網(wǎng)站建設(shè)、外貿(mà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)

綿陽服務(wù)器托管
日韩高清不卡在线视频| 亚洲国产中文一区二区久久| 亚洲成人高清在线播放| 日韩国产传媒视频在线观看| 亚洲综合av婷婷激情| 最新日本欧美一区二区| 中文字幕一区精品日韩| 国产一区二区精品久久久女同| 久草尤物视频在线观看| 韩国理伦三级做爰观看| 中文字幕在线感觉av| 欧美日韩在线一区二区精品| 日本成人午夜福利电影| 一区二区三区日韩电影在线| 日本高清区一区二区三区四区五区 | 国产国语网站在线观看| 日日躁夜夜躁久久狠狠躁| 欧美日韩三级性生活水平| 亚洲男女内射在线视频| 国产欧美日韩91成人| 国产亚洲精品福利视频| 色综合色综合色综合色| 97超频在线观看免费| 日韩在线观看视频有码| 99在线视频午夜福利| 欧美精品成人免费在线| 日韩成人在线视频中文字幕| 午夜视频在线观看麻豆| 亚洲一区二区三区色婷婷| 国产黄色免费精品网站| 成人性生交大片免费看中文| 91超碰这里只有精品国产| 国产精品熟女亚洲av| 日韩不卡高清免费在线视频| 亚洲av在线视频免费播放| 午夜91激情福利视频| 九九热超在线视频精品| 久久精品国产亚洲av热老太| 午夜视频在线看一区免费| 精品啪啪高潮一区二区| 久久成人日韩电影午夜|