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

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| 色中文字幕人妻诱惑制服| 欧美日韩亚洲人人夜夜澡| 亚洲精品中文字幕日本乱码| 欧美日韩在线亚洲二区综二 | 日本黄色美女日本黄色| 蜜臀av一区二区三区人妻| 丁香六月综合激情啪啪啪| 夜夜嗨精品免费视频播放| 日韩精品视频播放一区 | 一级欧美黄片在线播放| 国产免费成人在线视频| 亚洲一区日本一区二区| 免费观看毛片一区二区三区| 高清日本一区二区三区不卡片| 粉嫩欧美一区二区三区| 国内自拍视频一区高清视频| 欧美色视频综合在线观看| 亚洲国产精品自拍视频| 99人妻一区二区三区在线| 欧美高清成人一区二区三区| 日韩精选视频在线播放| 精品亚洲一区二区三区四| 国产精品自拍小视频91| 国产精品成人av在线网站| 色综合久久天天射天天干| 日韩女同一区二区三区在线观看| 国产丝袜美腿在线观看| 国产深夜福利在线观看| 久久蜜臀av一区三区| 日本在线观看精品综合| 91麻豆精品一区二区三区| 亚洲第一狼人天堂在线| 亚洲国产偷拍在线观看|