Android 解析json并使用recycler视图和card视图显示

Android 解析json并使用recycler视图和card视图显示,android,json,android-recyclerview,cardview,Android,Json,Android Recyclerview,Cardview,我需要解析json,然后在recycler视图的卡片中查看它。我需要帮助做这件事,因为我还是个大三学生。我要说的一个重要注意事项是,我需要在片段中创建此视图,而不是在活动中 先谢谢你。 这是我想要解析的json代码 {"teamMembersList":[{"id":1,"name":"Mona Shahien","position":"DIRECTOR","description":"DIRECTOR","image":"209.126.105.42:8001/Images/TeamMembe

我需要解析json,然后在recycler视图的卡片中查看它。我需要帮助做这件事,因为我还是个大三学生。我要说的一个重要注意事项是,我需要在片段中创建此视图,而不是在活动中

先谢谢你。 这是我想要解析的json代码

{"teamMembersList":[{"id":1,"name":"Mona Shahien","position":"DIRECTOR","description":"DIRECTOR","image":"209.126.105.42:8001/Images/TeamMembers/1.jpg"},{"id":2,"name":"Beshoy Fayez","position":"SENIOR PROGRAM MANAGER","description":"SENIOR PROGRAM MANAGER : Very Good ","image":"209.126.105.42:8001/Images/TeamMembers/2.jpg"},{"id":3,"name":"Sarah ElRawy","position":"SENIOR PROGRAM MANAGER","description":"SENIOR PROGRAM MANAGER : don\u0027t know","image":"209.126.105.42:8001/Images/TeamMembers/3.jpg"}]}
我已经为卡片视图创建了布局,另一个布局有回收器视图 这是卡片视图布局的代码:

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent" android:layout_height="match_parent">
<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <android.support.v4.widget.CircleImageView
        android:id="@+id/image_of_our_teams"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />
    <android.support.v7.widget.AppCompatTextView
        android:id="@+id/name_of_team_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
    <android.support.v7.widget.AppCompatTextView
        android:id="@+id/position_of_team_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
</RelativeLayout>
</android.support.v7.widget.CardView>

这是包含回收器视图的布局:

<?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent" android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
    android:id="@+id/my_recycler_view"
    android:scrollbars="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>
</RelativeLayout>


现在我需要做什么?

您需要了解更多关于android中的CardView、RecyclerView和解析JSON的信息。以下链接将有所帮助:

RecyclerView和CardView:
在Android中解析JSON:

您使用的是什么网络库?问题太广泛,请提供您的代码