如何將Android應(yīng)用中導(dǎo)航欄在分頁中顯示-創(chuàng)新互聯(lián)

今天就跟大家聊聊有關(guān)如何將Android應(yīng)用中導(dǎo)航欄在分頁中顯示,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結(jié)了以下內(nèi)容,希望大家根據(jù)這篇文章可以有所收獲。

10年積累的成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)經(jīng)驗,可以快速應(yīng)對客戶對網(wǎng)站的新想法和需求。提供各種問題對應(yīng)的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識你,你也不認(rèn)識我。但先網(wǎng)站設(shè)計后付款的網(wǎng)站建設(shè)流程,更有文縣免費網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。

當(dāng)頁面條目過多的時候需要分頁,要在布局中顯示出分頁的相關(guān)布局,使用android:layout_weight="11"

activity_call_safe.xml

<&#63;xml version="1.0" encoding="utf-8"&#63;>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical" >
  <TextView 
 
   android:text="黑名單管理"
    />
  <FrameLayout 
    android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:layout_weight="11"
    >
    <LinearLayout 
      android:id="@+id/ll_pb"
      android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:visibility="invisible"
    android:orientation="vertical"
    >
    <ProgressBar
      android:layout_width="wrap_content"
    android:layout_height="wrap_content"
      />
    <TextView 
      android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="玩命加載中..."
      />
    </LinearLayout>
   <include 
     android:id="@+id/list_view_callsafe"
     layout="@layout/list_view_callsafe"/>
  </FrameLayout>
  <LinearLayout 
    android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:orientation="horizontal"
    >
    <Button 
      android:onClick="prePage"
      android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="上一頁"
    android:layout_weight="1"
      />
 <Button 
      android:onClick="nextPage"
      android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="下一頁"
    android:layout_weight="1"
      /> 
 <Button 
      android:onClick="jump"
      android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="跳轉(zhuǎn)"
    android:layout_weight="1"
      /> 
     <EditText 
      android:id="@+id/et_page_number"
      android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_weight="1"
       />
     <TextView 
      android:id="@+id/tv_page_number"
      android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="0/12"
    android:textSize="20sp"
    android:layout_weight="1"
       />         
  </LinearLayout>
</LinearLayout>

分享文章:如何將Android應(yīng)用中導(dǎo)航欄在分頁中顯示-創(chuàng)新互聯(lián)
當(dāng)前網(wǎng)址:http://bm7419.com/article16/dgohdg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)、Google、做網(wǎng)站、微信公眾號、企業(yè)網(wǎng)站制作網(wǎng)站制作

廣告

聲明:本網(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ǎng)站網(wǎng)頁設(shè)計