Android實(shí)現(xiàn)第三方登錄的上拉展開,下拉隱藏,下拉隱藏示例-創(chuàng)新互聯(lián)

Android的UI和交互是很重要的一部分,直接影響到用戶對(duì)軟件的體驗(yàn)。隨著項(xiàng)目經(jīng)驗(yàn)的積累,發(fā)現(xiàn)Android中動(dòng)畫的運(yùn)用越來越重要。本篇文章抽出了項(xiàng)目登錄界面中實(shí)現(xiàn)的第三方登錄,用戶可以上拉展開,下拉隱藏第三方登錄這么一個(gè)效果,提高用戶和軟件的交互性。

成都創(chuàng)新互聯(lián)長期為成百上千家客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對(duì)不同對(duì)象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺(tái),與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為昂仁企業(yè)提供專業(yè)的成都網(wǎng)站建設(shè)、成都網(wǎng)站制作,昂仁網(wǎng)站改版等技術(shù)服務(wù)。擁有10年豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開發(fā)。

實(shí)現(xiàn)效果:

Android實(shí)現(xiàn)第三方登錄的上拉展開,下拉隱藏,下拉隱藏示例

(1)activity_main.xml


<?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:layout_width="match_parent" 
  android:layout_height="match_parent" 
  tools:context="com.example.propertyanimation.MainActivity"> 
 
  <RelativeLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_alignParentBottom="true" 
    android:orientation="vertical"> 
 
    <RelativeLayout 
      android:id="@+id/re_ControlshowhideView" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_marginBottom="10dp" 
      android:orientation="vertical"> 
 
      <RelativeLayout 
        android:id="@+id/re_showarrowhead" 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content"> 
 
        <View 
          android:layout_width="match_parent" 
          android:layout_height="0.1dp" 
          android:layout_marginLeft="12dp" 
          android:layout_marginRight="12dp" 
          android:layout_marginTop="17dip" 
          android:background="#dadada" /> 
 
        <ImageView 
          android:id="@+id/arrowhead" 
          android:layout_width="30dip" 
          android:layout_height="30dip" 
          android:layout_centerInParent="true" 
          android:src="@drawable/jiantoubelow" /> 
 
      </RelativeLayout> 
 
      <TextView 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:layout_below="@id/re_showarrowhead" 
        android:layout_marginTop="10dp" 
        android:gravity="center" 
        android:text="-其他登錄方式-" /> 
 
    </RelativeLayout> 
 
    <RelativeLayout 
      android:id="@+id/showhideView" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_below="@id/re_ControlshowhideView" 
      android:gravity="center" 
      android:visibility="gone" 
      android:orientation="vertical"> 
 
      <Button 
        android:id="@+id/btn_qq" 
        android:layout_width="40dp" 
        android:layout_height="57.5dp" 
        android:layout_gravity="center_vertical" 
        android:layout_marginLeft="10dp" 
        android:background="@drawable/qqlogin" 
        android:clickable="true" 
        android:gravity="center" 
        android:paddingLeft="10dp" 
        android:textSize="16sp" /> 
 
      <Button 
        android:id="@+id/btn_weixin" 
        android:layout_width="40dp" 
        android:layout_height="57.5dp" 
        android:layout_gravity="center_vertical" 
        android:layout_marginLeft="10dp" 
        android:layout_toRightOf="@+id/btn_qq" 
        android:background="@drawable/weixinlogin" 
        android:clickable="true" 
        android:gravity="center" 
        android:paddingLeft="10dp" 
        android:textSize="16sp" /> 
    </RelativeLayout> 
 
  </RelativeLayout> 
 
 
 
</RelativeLayout> 

網(wǎng)頁標(biāo)題:Android實(shí)現(xiàn)第三方登錄的上拉展開,下拉隱藏,下拉隱藏示例-創(chuàng)新互聯(lián)
瀏覽地址:http://bm7419.com/article32/ddhhpc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機(jī)、網(wǎng)站排名、網(wǎng)站內(nèi)鏈企業(yè)建站、品牌網(wǎng)站制作、外貿(mào)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名