Android应用中怎么添加一个联网等待加载动画

  

Android应用中怎么添加一个联网等待加载动画?很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。

<强>一、Android带红点的底部导航拦

1。首先写底部导航栏的界面view_main_tab.xml。

 & lt;及# 63;xml version=?.0”;编码=皍tf-8", # 63;比;
  http://schemas.android.com/apk/res/android" & lt; LinearLayout xmlns: android=?;
  android: id=癅 + id/tab_layout"
  android: layout_width=癿atch_parent"
  android: layout_height=?6 dp"
  android: layout_alignParentBottom=皌rue"
  android:取向=癶orizontal"
  android:背景=? 27282 c"
  比;
  
  & lt;使用
  android: id=癅 + id/rl_1"
  android: layout_width=? dp"
  android: layout_height=癿atch_parent"
  android: layout_marginTop=? dp"
  android: layout_weight=?“比;
  
  & lt; RadioButton
  android: id=癅 + id/rb_1"
  android: layout_width=皐rap_content"
  android: layout_height=皐rap_content"
  android: layout_centerInParent=皌rue"
  android:按钮=癅null"
  android:背景=癅null"
  android:检查=皌rue"
  android:点击=癴alse"
  android: drawablePadding=? dp"
  android: drawableTop=癅drawable/selector_tab_home"
  android:重力=癱enter"
  android:文本=笆滓场?
  输入textColor=癮ndroid: @drawable/tab_text_selector"
  android: textSize=?0 sp"/比;
  
  & lt; TextView
  android: id=癅 + id/tv_1"
  android: layout_width=?6 dp"
  android: layout_height=?6 dp"
  android: layout_alignRight=癅 id/rb_1"
  android: layout_alignTop=癅 id/rb_1"
  android: layout_marginTop=? dp"
  android: layout_marginRight=? dp"
  android: layout_gravity=皉ight"
  android:背景=癅drawable/msg_num_shape"
  android:点击=癴alse"
  android:重力=癱enter"
  android:文本=?”;
  输入textColor=癮ndroid: @color/white_1"
  android: textSize=?0 sp"/比;
  
  & lt;/RelativeLayout>
  
  & lt;使用
  android: id=癅 + id/rl_2"
  android: layout_width=? dp"
  android: layout_height=癿atch_parent"
  android: layout_marginTop=? dp"
  android: layout_weight=?”;
  android: focusable=皌rue"比;
  
  & lt; RadioButton
  android: id=癅 + id/rb_2"
  android: layout_width=皐rap_content"
  android: layout_height=皐rap_content"
  android: layout_centerInParent=皌rue"
  android:背景=癅null"
  android:按钮=癅null"
  android:点击=癴alse"
  android: drawablePadding=? dp"
  android: drawableTop=癅drawable/selector_tab_goods_divide"
  android:重力=癱enter"
  android:文本=吧唐贰?
  输入textColor=癮ndroid: @drawable/tab_text_selector"
  android: textSize=?0 sp"/比;
  
  & lt; TextView
  android: id=癅 + id/tv_2"
  android: layout_width=?6 dp"
  android: layout_height=?6 dp"
  android: layout_alignRight=癅 id/rb_2"
  android: layout_alignTop=癅 id/rb_2"
  android: layout_marginTop=? dp"
  android: layout_marginRight=? dp"
  android: layout_gravity=皉ight"
  android:背景=癅drawable/msg_num_shape"
  android:点击=癴alse"
  android:重力=癱enter"
  android:文本=?”;
  输入textColor=癮ndroid: @color/white_1"
  android: textSize=?0 sp"/比;
  & lt;/RelativeLayout>
  
  & lt;使用
  android: id=癅 + id/rl_3"
  android: layout_width=? dp"
  android: layout_height=癿atch_parent"
  android: layout_marginTop=? dp"
  android: layout_weight=?“比;
  
  & lt; RadioButton
  android: id=癅 + id/rb_3"
  android: layout_width=皐rap_content"
  android: layout_height=皐rap_content"
  android: layout_centerInParent=皌rue"
  android:背景=癅null"
  android:按钮=癅null"
  android:点击=癴alse"
  android: drawablePadding=? dp"
  android: drawableTop=癅drawable/selector_tab_stock_list"
  android:重力=癱enter"
  android:文本=敖醯ァ?
  输入textColor=癮ndroid: @drawable/tab_text_selector"
  android: textSize=?0 sp"/比;
  
  & lt; TextView
  android: id=癅 + id/tv_3"
  android: layout_width=?6 dp"
  android: layout_height=?6 dp"
  android: layout_alignRight=癅 id/rb_3"
  android: layout_alignTop=癅 id/rb_3"
  android: layout_marginTop=? dp"
  android: layout_gravity=皉ight"
  android:背景=癅drawable/msg_num_shape"
  android:点击=癴alse"
  android:重力=癱enter"
  android:文本=?”;
  输入textColor=癮ndroid: @color/white_1"
  android: textSize=?0 sp"/比;
  
  & lt;/RelativeLayout>
  
  
  & lt;使用
  android: id=癅 + id/rl_4"
  android: layout_width=? dp"
  android: layout_height=癿atch_parent"
  android: layout_marginTop=? dp"
  android: layout_weight=?“比;
  
  & lt; RadioButton
  android: id=癅 + id/rb_4"
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null

Android应用中怎么添加一个联网等待加载动画