Android Json Image Fetching/ parsing easy
Main.xml
For the full code go to my Github Profile -
https://github.com/TasnuvaOshin/JSON-Image-Parsing-.git
free of cost
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.oshin.myimagefetching.MainActivity"> <ListView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/l1" android:divider="@color/colorPrimaryDark" android:dividerHeight="5dp" android:background="@color/colorPrimaryDark" ></ListView> </LinearLayout>
sample.xml
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="#ff0202" android:textStyle="bold" android:textAlignment="center" android:textSize="30sp" android:id="@+id/t1" android:text="sample" /> <ImageView android:layout_width="match_parent" android:layout_height="200dp" android:layout_marginBottom="10dp" android:id="@+id/img" android:scaleType="fitXY" /> </LinearLayout>
For the full code go to my Github Profile -
https://github.com/TasnuvaOshin/JSON-Image-Parsing-.git
free of cost
Comments
Post a Comment