Skip to content
Snippets Groups Projects
Commit c9b4e9ee authored by Alexandre Lision's avatar Alexandre Lision
Browse files

ui: expand icon tabs

parent e83efebc
Branches
Tags
No related merge requests found
...@@ -79,7 +79,6 @@ import android.util.Log; ...@@ -79,7 +79,6 @@ import android.util.Log;
import android.view.Gravity; import android.view.Gravity;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import android.widget.Toast; import android.widget.Toast;
...@@ -105,7 +104,6 @@ public class HomeActivity extends Activity implements DialingFragment.Callbacks, ...@@ -105,7 +104,6 @@ public class HomeActivity extends Activity implements DialingFragment.Callbacks,
SlidingUpPanelLayout mContactDrawer; SlidingUpPanelLayout mContactDrawer;
private DrawerLayout mNavigationDrawer; private DrawerLayout mNavigationDrawer;
private ActionBarDrawerToggle mDrawerToggle; private ActionBarDrawerToggle mDrawerToggle;
ImageView mShadow;
/** /**
* The {@link ViewPager} that will host the section contents. * The {@link ViewPager} that will host the section contents.
*/ */
...@@ -183,8 +181,6 @@ public class HomeActivity extends Activity implements DialingFragment.Callbacks, ...@@ -183,8 +181,6 @@ public class HomeActivity extends Activity implements DialingFragment.Callbacks,
} }
}); });
mShadow = (ImageView) findViewById(R.id.overall_shadow);
// Set up the ViewPager with the sections adapter. // Set up the ViewPager with the sections adapter.
mViewPager = (ViewPager) findViewById(R.id.pager); mViewPager = (ViewPager) findViewById(R.id.pager);
mViewPager.setPageTransformer(true, new ZoomOutPageTransformer(0.7f)); mViewPager.setPageTransformer(true, new ZoomOutPageTransformer(0.7f));
...@@ -572,10 +568,12 @@ public class HomeActivity extends Activity implements DialingFragment.Callbacks, ...@@ -572,10 +568,12 @@ public class HomeActivity extends Activity implements DialingFragment.Callbacks,
@Override @Override
public void toggleDrawer() { public void toggleDrawer() {
if (mContactDrawer.isExpanded()) if (!mContactDrawer.isExpanded())
mContactDrawer.collapsePane(); mContactDrawer.expandPane(0.3f);
else else if (mContactDrawer.isAnchored())
mContactDrawer.expandPane(); mContactDrawer.expandPane();
else
mContactDrawer.collapsePane();
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment