Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06b4266e authored by Budi Kusmiantoro's avatar Budi Kusmiantoro
Browse files

Set Fab elevation to 8dip

Bug: 17898176
Change-Id: I47bec59348b0bdad2b23ad59aba9ec8d370ae3f1
parent 5caf3c80
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@
                android:layout_margin="@dimen/footer_button_layout_margin"
                android:layout_gravity="center_horizontal"
                android:background="@drawable/floating_action_button"
                android:elevation="8dip"
                android:scaleType="center"
                android:contentDescription="@null" />

+0 −3
Original line number Diff line number Diff line
@@ -76,8 +76,6 @@ public class DeskClock extends Activity implements LabelDialogFragment.TimerLabe
    // Check whether to change background every minute
    private static final long BACKGROUND_COLOR_CHECK_DELAY_MILLIS = DateUtils.MINUTE_IN_MILLIS;
    private static final int BACKGROUND_COLOR_INITIAL_ANIMATION_DURATION_MILLIS = 3000;
    // The depth of fab, use it to create shadow
    private static final float FAB_DEPTH = 20f;
    private static final int UNKNOWN_COLOR_ID = 0;

    private boolean mIsFirstLaunch = true;
@@ -162,7 +160,6 @@ public class DeskClock extends Activity implements LabelDialogFragment.TimerLabe
        setContentView(R.layout.desk_clock);
        mFab = (ImageButton) findViewById(R.id.fab);
        mFab.setOutlineProvider(OVAL_OUTLINE_PROVIDER);
        mFab.setTranslationZ(FAB_DEPTH);
        mLeftButton = (ImageButton) findViewById(R.id.left_button);
        mRightButton = (ImageButton) findViewById(R.id.right_button);
        if (mTabsAdapter == null) {