Android Open Source - SlideMenu Configuration






From Project

Back to project page SlideMenu.

License

The source code is released under:

Apache License

If you think the Android project SlideMenu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright (C) 2014 fengwx.cn@gmail.com
 *// w w  w.  ja v  a  2s. c  o  m
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.fengwx.slidemenu;

/**
 * Contains methods to standard constants used in the UI for slidemenu
 * 
 * @author fengwx
 */
public interface Configuration {

  /**
   * fingers' sliding max x distance for open or close slidemenu
   */
  int FINGER_MAX_DISTANCE_X = 60;

  /**
   * fingers' sliding max y distance for open or close slidemenu
   */
  int FINGER_MAX_DISTANCE_Y = 10;

  /**
   * fingers' sliding instant velocity
   */
  int INSTANT_VELOCITY = 200;

  /**
   * velocity units
   */
  int VELOCITY_UNITS = 1000;

  /**
   * left menu's offset
   */
  int LEFT_MENU_OFFSET = 100;

  /**
   * auto speed smoothly
   */
  int AUTO_SPEED = 30;

}




Java Source Code List

org.fengwx.SlideMenuActivity.java
org.fengwx.slidemenu.Configuration.java
org.fengwx.slidemenu.ContentLayout.java
org.fengwx.slidemenu.SlideMenuManager.java
org.fengwx.slidemenu.SlideMenu.java