Skip to content

Instantly share code, notes, and snippets.

View dilip90's full-sized avatar

DiLiP ShArMa dilip90

View GitHub Profile
@dilip90
dilip90 / slidespage.html
Created September 8, 2017 14:22 — forked from aarjithn/slidespage.html
Sliding Segments Ionic v2
<ion-toolbar>
<ion-segment [(ngModel)]="selectedSegment" (ionChange)="onSegmentChanged($event)">
<ion-segment-button value="first">
First
</ion-segment-button>
<ion-segment-button value="second">
Second
</ion-segment-button>
<ion-segment-button value="third">
Third
@dilip90
dilip90 / ClearableAutoCompleteTextView.java
Created August 29, 2017 08:50 — forked from mderazon/ClearableAutoCompleteTextView.java
a sub class of AutoCompleteTextView that has a dismiss button with OnClearListener when the clear button is clicked
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.AutoCompleteTextView;
/**
* sub class of {@link android.widget.AutoCompleteTextView} that includes a clear (dismiss / close) button with
* a OnClearListener to handle the event of clicking the button