Profile

Scrapbook photo 1
Scrapbook photo 2
Scrapbook photo 3
Scrapbook photo 4
Scrapbook photo 5
Aman Nepid
Works at Leapfrog Technology Inc.
Lived in Kathmandu
322 followers|119,689 views
AboutPostsPhotosVideos

Stream

Aman Nepid

Shared publicly  - 
 
 
#androidDev , The Design Support Library includes some great pre-built CoordinatorLayout Behaviors for free, like the SwypeToDismissBehavior<T> which is really easy to implement:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_swipe_behavior);
    mCardView = (CardView) findViewById(R.id.swype_card);

    final SwipeDismissBehavior<CardView>
          swipe = new SwipeDismissBehavior();

    swipe.setSwipeDirection(
         SwipeDismissBehavior.SWIPE_DIRECTION_ANY);

    swipe.setListener(
         new SwipeDismissBehavior.OnDismissListener() {

         @Override
         public void onDismiss(View view) {
               Toast.makeText(Activity.this,
                      "Card swiped !!", Toast.LENGTH_SHORT).show();
         }
      );

      LayoutParams coordinatorParams =
           (LayoutParams) mCardView.getLayoutParams();

       coordinatorParams.setBehavior(swipe);
}
1 comment on original post
1
Have him in circles
322 people
Achyut Dahal's profile photo
Kabindra Bakey's profile photo
Rajkumar Shrestha's profile photo
sarala shrestha's profile photo
Simal Software Pvt. Ltd's profile photo
santos sedhain's profile photo
Suman Adhikari's profile photo
Sudhir Shakya's profile photo
Jordan Jones's profile photo
People
Have him in circles
322 people
Achyut Dahal's profile photo
Kabindra Bakey's profile photo
Rajkumar Shrestha's profile photo
sarala shrestha's profile photo
Simal Software Pvt. Ltd's profile photo
santos sedhain's profile photo
Suman Adhikari's profile photo
Sudhir Shakya's profile photo
Jordan Jones's profile photo
Work
Occupation
Programming
Skills
Java Technology, Android Framework
Employment
  • Leapfrog Technology Inc.
    Sr. Software Engineer, 2013 - present
  • Nepways Pvt. Ltd.
    Software Engineer, 2010 - 2013
  • Encore Technologies Nepal
    Asst. Software Engineer, 2009 - 2010
Basic Information
Gender
Male
Apps with Google+ Sign-in
  • Clash of Clans
Story
Tagline
Break Some Rules ... Make Some Noise ... Stay Silly ... Stay Alive
Introduction
A man on earth with Designer heart & Developer soul and Lean Entrepreneur.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Kathmandu
Links
YouTube