Skip to content

Instantly share code, notes, and snippets.

sagar patel sagarpatel288

Block or report user

Report or block sagarpatel288

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sagarpatel288
sagarpatel288 / shadow.xml
Created Feb 19, 2019 — forked from lecho/shadow.xml
Android shadow drawable xml.
View shadow.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
View store_api_keys.md

1. Store api keys in a xml file

Put xml file "api_keys.xml" in the directory "res/value/".

api_keys.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="THE_MOVIE_DB_API_TOKEN">XXXXX</string>
</resources>
@sagarpatel288
sagarpatel288 / LetterSpacingTextView.java
Created Oct 24, 2018 — forked from SyllaJay/LetterSpacingTextView.java
Android TextView, that allows changing the letter spacing of the text. @author: Pedro Barros
View LetterSpacingTextView.java
/**
* Text view that allows changing the letter spacing of the text.
*
* @author Pedro Barros (pedrobarros.dev at gmail.com)
* @since May 7, 2013
*/
public static class LetterSpacingTextView extends TextView {
private float spacing = Spacing.NORMAL;
private CharSequence originalText = "";
@sagarpatel288
sagarpatel288 / readme.md
Created Oct 23, 2018
fvcProduction Inspiration Gist
View readme.md

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@sagarpatel288
sagarpatel288 / sampleREADME.md
Created Oct 23, 2018 — forked from fvcproductions/sampleREADME.md
A sample README for all your GitHub projects.
View sampleREADME.md

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

View FixAppBarLayoutBehavior.java
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@sagarpatel288
sagarpatel288 / max_height_linear_layout.txt
Created Jul 27, 2018 — forked from dominicthomas/max_height_linear_layout.txt
Enables you to set a max height for a linear layout while also using wrap content.. this means the layout will be collapsable but also have height constraints!
View max_height_linear_layout.txt
public class MaxHeightLinearLayout extends LinearLayout {
private int maxHeightDp;
public MaxHeightLinearLayout(Context context) {
super(context);
}
public MaxHeightLinearLayout(Context context, AttributeSet attrs) {
super(context, attrs);
View github_readme_template.txt
# ScoreKeeper ![CI status](https://img.shields.io/badge/build-passing-brightgreen.svg)
ScoreKeeper is the application as a part of Google Udacity India Scholar Android Basic Nanodegree Project.
## Gif
![scorekeeper.gif](/gifs/scorekeeper.gif?raw=true "scorekeeper.gif")
## Screenshots
<p>
<img src="/screenshots/001.png" width="300"/>
@sagarpatel288
sagarpatel288 / README-Template.md
Created Jun 13, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@sagarpatel288
sagarpatel288 / app-module-build.gradle
Created Jun 10, 2018 — forked from segunfamisa/app-module-build.gradle
Using gradle extra properties to manage Android dependency versioning
View app-module-build.gradle
// app module build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
applicationId "com.segunfamisa.gradleextraproperties"
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
You can’t perform that action at this time.