This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To post something you need to create an activity from where you can send data to server however you can do the same from | |
your fragment but if you want to show posts in fragment, you have to do so. | |
Here I have used Volley Post Request so you should add Volley Libraray | |
implementation 'com.android.support:design:28.0.0' | |
implementation 'com.android.support:support-v4:28.0.0' | |
implementation 'com.android.support:cardview-v7:28.0.0' | |
implementation 'cc.cloudist.acplibrary:library:1.2.1' | |
implementation 'com.android.volley:volley:1.1.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tecent.bottomnavigationviewexample; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.tecent.recyclerviewjsonexample"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:roundIcon="@mipmap/ic_launcher_round" |