Browse Source

Added shadows to navigation drawers

master
Anthony Restaino 11 years ago
parent
commit
b255a06d8f
  1. BIN
      res/drawable-hdpi/drawer_right_shadow.9.png
  2. BIN
      res/drawable-mdpi/drawer_right_shadow.9.png
  3. BIN
      res/drawable-xhdpi/drawer_right_shadow.9.png
  4. 4
      src/acr/browser/lightning/BrowserActivity.java

BIN
res/drawable-hdpi/drawer_right_shadow.9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

BIN
res/drawable-mdpi/drawer_right_shadow.9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

BIN
res/drawable-xhdpi/drawer_right_shadow.9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

4
src/acr/browser/lightning/BrowserActivity.java

@ -58,6 +58,7 @@ import android.os.Bundle; @@ -58,6 +58,7 @@ import android.os.Bundle;
import android.os.Message;
import android.provider.Browser;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.text.TextUtils;
import android.util.Log;
@ -436,7 +437,8 @@ public class BrowserActivity extends Activity implements BrowserController { @@ -436,7 +437,8 @@ public class BrowserActivity extends Activity implements BrowserController {
});
mDrawerLayout.setDrawerListener(mDrawerToggle);
mDrawerLayout.setDrawerShadow(R.drawable.drawer_right_shadow, GravityCompat.END);
mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START);
initializePreferences();
initializeTabs();

Loading…
Cancel
Save