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

Commit 7971a282 authored by Joy Babafemi's avatar Joy Babafemi Committed by Android (Google) Code Review
Browse files

Merge "Build fill response with dropdown presentation" into main

parents b7624536 aae7523d
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!-- Copied from //frameworks/base/core/res/res/drawable/item_background_material.xml -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
        android:color="@color/autofill_light_colorControlHighlight">
    <item android:id="@android:id/mask">
        <color android:color="@android:color/white"/>
    </item>
</ripple>
 No newline at end of file
+30 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools" tools:ignore="NewApi"
        android:color="@android:color/transparent">
    <item
        android:bottom="1dp"
        android:shape="rectangle"
        android:top="1dp">
        <shape>
            <corners android:radius="28dp" />
            <solid android:color="@android:color/system_surface_container_high_light" />
        </shape>
    </item>
</ripple>
 No newline at end of file
+30 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools" tools:ignore="NewApi"
        android:color="@android:color/transparent">
    <item
        android:bottom="1dp"
        android:shape="rectangle"
        android:top="1dp">
        <shape>
            <corners android:radius="28dp" />
            <solid android:color="@android:color/system_surface_container_high_dark" />
        </shape>
    </item>
</ripple>
 No newline at end of file
+37 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@android:id/content"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                style="@style/autofill.Dataset">
    <ImageView
        android:id="@android:id/icon1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_alignParentStart="true"
        android:background="@null"/>
    <TextView
        android:id="@android:id/text1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_toEndOf="@android:id/icon1"
        style="@style/autofill.TextAppearance"/>

</RelativeLayout>
+38 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!-- Color palette -->
<resources>
    <color name="autofill_light_colorPrimary">@color/primary_material_light</color>
    <color name="autofill_light_colorAccent">@color/accent_material_light</color>
    <color name="autofill_light_colorControlHighlight">@color/ripple_material_light</color>
    <color name="autofill_light_colorButtonNormal">@color/button_material_light</color>

    <!-- Text colors -->
    <color name="autofill_light_textColorPrimary">@color/abc_primary_text_material_light</color>
    <color name="autofill_light_textColorSecondary">@color/abc_secondary_text_material_light</color>
    <color name="autofill_light_textColorHint">@color/abc_hint_foreground_material_light</color>
    <color name="autofill_light_textColorHintInverse">@color/abc_hint_foreground_material_dark
    </color>
    <color name="autofill_light_textColorHighlight">@color/highlighted_text_material_light</color>
    <color name="autofill_light_textColorLink">@color/autofill_light_colorAccent</color>

    <!-- These colors are used for Remote Views. -->
    <color name="background_dark_mode">#0E0C0B</color>
    <color name="background">#F1F3F4</color>
    <color name="text_primary_dark_mode">#DFDEDB</color>
    <color name="text_primary">#202124</color>
</resources>
 No newline at end of file
Loading