问题遇到的现象和发生背景
《X5WebView使用》在这篇文章中,我将代码下载了下来,但是加上几行代码后整个程序会报错,我想知道一下是不是版本问题
问题相关代码,请勿粘贴截图
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="5dp"
android:indeterminateOnly="false"
android:max="100"
android:progressDrawable="@drawable/progress_bar_states" />
<com.example.qd.webviewx5.X5WebView
android:id="@+id/x5WebView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<corners android:radius="2dp" />
<gradient
android:angle="270"
android:centerColor="#E3E3E3"
android:endColor="#E6E6E6"
android:startColor="#C8C8C8" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="2dp" />
<gradient
android:centerColor="#FF1D9AFF"
android:endColor="#FF1D9AFF"
android:startColor="#FF1D9AFF" />
</shape>
</clip>
</item>
</layer-list>