|
|
@@ -9,6 +9,7 @@ import android.os.Bundle;
|
|
|
import android.support.annotation.CallSuper;
|
|
|
import android.support.annotation.IntDef;
|
|
|
import android.support.constraint.ConstraintLayout;
|
|
|
+import android.support.design.widget.CoordinatorLayout;
|
|
|
import android.support.v4.widget.DrawerLayout;
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
import android.support.v7.app.AppCompatDelegate;
|
|
|
@@ -74,7 +75,7 @@ public abstract class ActivityBase extends AppCompatActivity implements IHelperP
|
|
|
protected View rootView;
|
|
|
protected FullDrawerLayout drawerLayout;
|
|
|
private ConstraintLayout drawerView;
|
|
|
- private ConstraintLayout containerMain;
|
|
|
+ private CoordinatorLayout containerMain;
|
|
|
private AllMenuView allMenuView;
|
|
|
|
|
|
|
|
|
@@ -150,7 +151,7 @@ public abstract class ActivityBase extends AppCompatActivity implements IHelperP
|
|
|
*/
|
|
|
drawerLayout = findViewById(R.id.drawer_layout);
|
|
|
drawerView = findViewById(R.id.drawer_item);
|
|
|
- containerMain = findViewById(R.id.container_main);
|
|
|
+ containerMain = findViewById(R.id.layout_container);
|
|
|
|
|
|
drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
|
|
|
setDrawerLayoutEvent();
|
|
|
@@ -402,7 +403,7 @@ public abstract class ActivityBase extends AppCompatActivity implements IHelperP
|
|
|
drawerLayout.addDrawerListener(new DrawerLayout.SimpleDrawerListener() {
|
|
|
@Override
|
|
|
public void onDrawerSlide(View drawerView, float slideOffset) {
|
|
|
- float moveFactor = drawerView.getWidth() * slideOffset;
|
|
|
+ float moveFactor = (drawerView.getWidth() * slideOffset) / 2;
|
|
|
containerMain.setTranslationX(-moveFactor);
|
|
|
}
|
|
|
|
|
|
@@ -413,6 +414,7 @@ public abstract class ActivityBase extends AppCompatActivity implements IHelperP
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/***********************************
|
|
|
* facebook call back
|
|
|
***********************************/
|