Skip to content

Instantly share code, notes, and snippets.

View SouravKumarPandit's full-sized avatar
:octocat:
Focusing

sourav kumar SouravKumarPandit

:octocat:
Focusing
  • Xebia , India
  • India
View GitHub Profile
@SouravKumarPandit
SouravKumarPandit / CLLabelledView.java
Last active August 1, 2018 10:39
for who want to use the textinputlayout in the spinner use this relative layout and pass the spinner or any view in this or show dilog for picking
package com.focus.centra.crm.ui.view.list.util;
import android.animation.Animator;
import android.annotation.SuppressLint;
import android.content.Context;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
package com.application.limitless.sourav.dashletsproject.protectorChart;
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.support.annotation.ColorInt;
package com.application.limitless.sourav.dashletsproject.inputfilter;
import android.content.Context;
import android.support.v7.widget.AppCompatEditText;
import android.text.Editable;
import android.text.InputFilter;
import android.text.InputType;
import android.text.TextWatcher;
import java.math.BigDecimal;
package com.application.limitless.sourav.showcaseprojects.ui.base.component;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
package com.focus.centra.crm.ui.comp.chip;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.text.Editable;
public class LinearLayout2D extends LinearLayout {
Paint rectPaint;
int intShaderType=0;
public LinearLayout2D(Context context)
{
super(context);
public class SimpleSyncView extends View {
String syncing = " Syncing";
String toSync = " To Sync";
String synced = " Synced";
String valueSync = "00";
public static int TO_SYNC = 0;
@SouravKumarPandit
SouravKumarPandit / LabelTextView.java
Created September 12, 2018 06:12
use for labeling the textview .easily
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.support.annotation.ColorInt;
import android.text.TextPaint;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.widget.TextView;
package com.focus.sourav.canvasdrawpractice.crmprogress;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ComposePathEffect;
package com.limitless.sourav.swipeactionlayout.ui;
import android.content.Context;
import android.view.MotionEvent;
import android.widget.LinearLayout;
/**
* Created by Sourav on 2018
*/
public class CLSwipeLinearLayout extends LinearLayout