Kotlin 为什么RecyclerView没有';我不能在安卓9中工作
虽然在android 8及更低版本中一切都运行良好,但我的RecyclerView在android 9中没有加载任何内容 因为我在我的recyclerView适配器中使用了毕加索,所以我在AndroidManifest中添加了下面的代码,但没有任何更改:Kotlin 为什么RecyclerView没有';我不能在安卓9中工作,kotlin,android-recyclerview,android-9.0-pie,Kotlin,Android Recyclerview,Android 9.0 Pie,虽然在android 8及更低版本中一切都运行良好,但我的RecyclerView在android 9中没有加载任何内容 因为我在我的recyclerView适配器中使用了毕加索,所以我在AndroidManifest中添加了下面的代码,但没有任何更改: android:usesCleartextTraffic="true" 这是我的RecyclerView XML代码,位于MotionLayout中: <LinearLayout android:id="@+id/li
android:usesCleartextTraffic="true"
这是我的RecyclerView XML代码,位于MotionLayout中:
<LinearLayout
android:id="@+id/linearlayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#F6F6F6"
android:elevation="10dp"
android:orientation="horizontal">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_challenge"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
请注意,我的布局中有两个recyclerView,第一个运行良好
但是第二个不起作用
定义一个xml文件,然后添加到清单中 ->>android:networkSecurityConfig=“@xml/network\u security\u config”
secure.example.com
你经历了什么让你说它不起作用?日志中有没有可以帮助我们的回溯?嗨@Mohammad,你找到解决办法了吗?
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">secure.example.com</domain>
</domain-config>
</network-security-config>