Skip to content

Instantly share code, notes, and snippets.

@senamit2708
senamit2708 / gist:45ac50675a6fb0d9676a76fffb929eb5
Created April 11, 2019 21:45
scrollview with constraint layout
https://stackoverflow.com/questions/37349845/is-it-possible-to-put-a-constraintlayout-inside-a-scrollview
@senamit2708
senamit2708 / gist:dd061799a135480eeb5e6366cc1e99ec
Created April 4, 2019 19:48
how to set vector image in adapter of recycelrview from drawable
holder.imgBox.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_box_green_two));
https://android.jlelse.eu/tablayout-and-viewpager-in-your-android-app-738b8840c38a
https://developer.android.com/reference/com/google/android/material/tabs/TabLayout
https://material.io/develop/android/components/tab-layout/
@senamit2708
senamit2708 / FilterCategory.java
Created October 21, 2018 07:00
Inteface for sending data from adapter to the class..here i am sending data from recyclerview adapter to its fragment.
package com.example.senamit.stationaryhutpro.fragments;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.senamit.stationaryhutpro.R;
@senamit2708
senamit2708 / gist:16906bc058adf7f65df3bb5ddda4bb1d
Created October 19, 2018 05:02
How to get sha1 value in windows
// if the sha1 value will not match with firebase, it will not get the firebase project for u ..so if u r downloading your own project
// from github and its not working from firebase side..just check that sha1 value and package name is same or not.
open android studio
on right side there is gradle, click on that
then your project name(root)
then android
then signing report
in the run tab u will see the complete details of the project.