Skip to content

Instantly share code, notes, and snippets.

View VijayMakwana's full-sized avatar
😄

Vijay Makwana VijayMakwana

😄
  • Ahmedabad, India
View GitHub Profile
@VijayMakwana
VijayMakwana / MainActivity.kt
Last active June 25, 2018 06:37
This code is the utility for span the textview, modify textcolor, textstyle, textsize and clickable specific text as per you want in one textview. Copy and paste SpanTextUtility.kt file in the project and start using it.
package com.textspansample
import android.graphics.Color
import android.graphics.Typeface
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.text.TextUtils
import android.text.method.LinkMovementMethod
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
package com.textviewanimation;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Handler;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* Created by vijay on 06-Jan-17.
@VijayMakwana
VijayMakwana / build.gradle (Module:app)
Last active June 8, 2016 05:00
Example of PercentRelativeLayout
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.android.support:design:23.0.0'
compile 'com.android.support:percent:23.0.0'
}
@VijayMakwana
VijayMakwana / CustomAlertDia.java
Created June 6, 2016 10:46
Custom alert dialog with image including animation.
package com.reversebits.tapanhp.customalertproteen;
import android.app.Dialog;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.animation.Animation;
import android.view.animation.LinearInterpolator;