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

Commit 2345831a authored by Adrian Roos's avatar Adrian Roos Committed by Jorim Jaggi
Browse files

WindowInsetsTests: More compelling IME transition sample

Test: make WindowInsetsTests && adb install ...
Change-Id: I4320871bdc8184fac38921616e1a1322f8dbc804
parent 46d77cf7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,5 +18,10 @@ android_test {
    resource_dirs: ["res"],
    certificate: "platform",
    platform_apis: true,
    static_libs: [
        "androidx.core_core",
        "androidx.appcompat_appcompat",
        "com.google.android.material_material",
    ],
}
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@

    <application android:label="@string/activity_title">
        <activity android:name=".WindowInsetsActivity"
            android:theme="@android:style/Theme.Material"
            android:theme="@style/appTheme"
            android:windowSoftInputMode="adjustResize">

            <intent-filter>
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2020 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.
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/bubble" />
    <corners android:radius="@dimen/bubble_corner" />
    <padding android:left="@dimen/bubble_padding_side" android:top="@dimen/bubble_padding"
             android:right="@dimen/bubble_padding_side" android:bottom="@dimen/bubble_padding" />
</shape>
 No newline at end of file
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2020 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.
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/bubble_self" />
    <corners android:radius="@dimen/bubble_corner" />
    <padding android:left="@dimen/bubble_padding_side" android:top="@dimen/bubble_padding"
             android:right="@dimen/bubble_padding_side" android:bottom="@dimen/bubble_padding" />
</shape>
 No newline at end of file
+27 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2020 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.
  -->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:autoMirrored="true"
        android:width="24.0dp"
        android:height="24.0dp"
        android:viewportWidth="48.0"
        android:viewportHeight="48.0">
    <path
        android:fillColor="#FF000000"
        android:pathData="M4.02,42.0L46.0,24.0 4.02,6.0 4.0,20.0l30.0,4.0 -30.0,4.0z"/>
</vector>
Loading