Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
import com.example.flyoutmenuexample.SampleActivity;

public class FlyOutContainer extends LinearLayout {

Expand All @@ -13,7 +14,8 @@ public class FlyOutContainer extends LinearLayout {
private View content;

// Constants
protected static final int menuMargin = 150;
// The margin is now set to only display 1/4 of the screen. No matter the size.
protected static final int menuMargin = (SampleActivity.outWidth/4);

public enum MenuState {
CLOSED, OPEN
Expand Down