码迷,mamicode.com
首页 > 其他好文 > 详细

ContentLoadingProgressBar不显示问题

时间:2016-03-12 22:57:31      阅读:805      评论:0      收藏:0      [点我收藏+]

标签:

ContentLoadingProgressBar需要设置style 并且在XML中布局的位置必须写在content布局的下面

<?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.leo.enjoytime.activity.WebViewActivity">

    <WebView
        android:id="@+id/web_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    <android.support.v4.widget.ContentLoadingProgressBar
        android:id="@+id/progressbar"
        style="?android:attr/android:progressBarStyleHorizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        />

</RelativeLayout>

 

1.Seems you need a style, for example...

style="?android:attr/android:progressBarStyleHorizontal"

Works for me if I put that anyway, without I never see anything.

2.Also consider putting it above your content (ie below in the xml)

ContentLoadingProgressBar不显示问题

标签:

原文地址:http://www.cnblogs.com/krislight1105/p/5270254.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!