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

Commit 4a24965c authored by Brian Attwell's avatar Brian Attwell Committed by Android (Google) Code Review
Browse files

Merge "Use custom ViewOutlineProvider to enable shadows" into lmp-dev

parents 3e4e8d71 d41ab8ac
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -14,14 +14,10 @@
     limitations under the License.
-->

<!-- Need to set a non null background on Toolbar in order for MenuItem ripples to be drawn on
     this view, instead of another. This will *not* cause an additional draw since the
     background is transparent.-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/toolbar_parent"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:background="#00000000"
    android:elevation="@dimen/tab_elevation"
    android:layout_height="wrap_content" >

+0 −3
Original line number Diff line number Diff line
@@ -35,12 +35,9 @@
            android:contentDescription="@string/quickcontact_transparent_view_description"
            android:id="@+id/transparent_view" />

        <!-- Needs a non null background for elevation to work on this View. This will *not*
             cause an additional draw since the background is transparent. -->
        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#00000000"
            android:id="@+id/toolbar_parent">
            <include layout="@layout/quickcontact_header" />
        </FrameLayout>
+3 −0
Original line number Diff line number Diff line
@@ -359,6 +359,9 @@ public class PeopleActivity extends ContactsActivity implements
                portraitViewPagerTabs, landscapeViewPagerTabs, toolbar);
        mActionBarAdapter.initialize(savedState, mRequest);

        // Add shadow under toolbar
        ViewUtil.addRectangularOutlineProvider(findViewById(R.id.toolbar_parent), getResources());

        // Configure action button
        final View floatingActionButtonContainer = findViewById(
                R.id.floating_action_button_container);
+4 −0
Original line number Diff line number Diff line
@@ -119,6 +119,7 @@ import com.android.contacts.common.model.dataitem.WebsiteDataItem;
import com.android.contacts.common.util.DateUtils;
import com.android.contacts.common.util.MaterialColorMapUtils;
import com.android.contacts.common.util.MaterialColorMapUtils.MaterialPalette;
import com.android.contacts.common.util.ViewUtil;
import com.android.contacts.detail.ContactDisplayUtils;
import com.android.contacts.interactions.CalendarInteractionsLoader;
import com.android.contacts.interactions.CallLogInteractionsLoader;
@@ -570,6 +571,9 @@ public class QuickContactActivity extends ContactsActivity {
            });
        }

        // Allow a shadow to be shown under the toolbar.
        ViewUtil.addRectangularOutlineProvider(findViewById(R.id.toolbar_parent), getResources());

        final Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setActionBar(toolbar);
        getActionBar().setTitle(null);