Skip to content

Instantly share code, notes, and snippets.

View ajaykumar2017's full-sized avatar
💭
working in a new project

AJAY KUMAR ajaykumar2017

💭
working in a new project
View GitHub Profile
@ajaykumar2017
ajaykumar2017 / Create_Posts.java
Last active May 30, 2019 06:02
Fragment Actions Show Posts and Create Post Activity
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'
@ajaykumar2017
ajaykumar2017 / DashBoardFragment.java
Created May 30, 2019 05:30
Fragment with Bottom Navigation
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;
@ajaykumar2017
ajaykumar2017 / AndroidManifest.xml
Last active May 30, 2019 05:34
RecyclerView, Volley and Picasso
<?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"