SpecialCyCi / AndroidResideMenu

The idea of ResideMenu is from Dribbble 1 and 2. It has come true and run in iOS devices. iOS ResideMenu This project is the RefsideMenu Android version. The visual effect is partly referred to iOS version of ResideMenu. And thanks to the authors for the above idea and contribution.
MIT License
2.85k stars 1.1k forks source link

Customize Menu View #125

Open sahilwebmazix opened 7 years ago

sahilwebmazix commented 7 years ago

resideMenu = new ResideMenu(activity, R.layout.menu_left, R.layout.menu_right); This Constructor of ResideMenu is not Available showing error there is only new ResideMenu(activity); only how can i provide Custom Layout to Left side menu ?

hamzaahmedkhan commented 7 years ago

You have to make a separate Fragment layout. and customize this library.

package com.structure.residemenu;

import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.Rect; import android.util.DisplayMetrics; import android.view.KeyCharacterMap; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.animation.AnimationUtils; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout;

import com.nineoldandroids.view.ViewHelper; import com.structure.R; import com.structure.activities.MainActivity;

import java.util.ArrayList; import java.util.List;

/**