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

Unverified Commit 8024044f authored by Roman Birg's avatar Roman Birg Committed by Michael Bestas
Browse files

SystemUI: add left and right virtual buttons while typing



Co-authored-by: default avatarBruno Martins <bgcngm@gmail.com>
Co-authored-by: default avatarDanny Baumann <dannybaumann@web.de>
Co-authored-by: default avatarLuK1337 <priv.luk@gmail.com>
Co-authored-by: default avatarOliver Scott <olivercscott@gmail.com>
Co-authored-by: default avatarSam Mortimer <sam@mortimer.me.uk>
Co-authored-by: default avatarSteve Kondik <steve@cyngn.com>
Change-Id: Iea446443d33ff305765e47c86523b619676116ac
parent c6d6fddc
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<!--
    Copyright (C) 2015 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:width="20dp"
        android:height="20dp"
        android:viewportWidth="24"
        android:viewportHeight="24"
        android:tint="?attr/colorControlNormal"
        android:autoMirrored="true">
    <path
        android:fillColor="?attr/singleToneColor"
        android:pathData="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6,-6z"/>
</vector>
+26 −0
Original line number Diff line number Diff line
<!--
    Copyright (C) 2015 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:width="20dp"
        android:height="20dp"
        android:viewportWidth="24"
        android:viewportHeight="24"
        android:tint="?attr/colorControlNormal"
        android:autoMirrored="true">
    <path
        android:fillColor="?attr/singleToneColor"
        android:pathData="M15.41 7.41L14 6l-6 6 6 6 1.41,-1.41L10.83 12z"/>
</vector>
+38 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The CyanogenMod 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.
-->
<merge
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:systemui="http://schemas.android.com/apk/res-auto">

    <com.android.systemui.navigationbar.buttons.KeyButtonView
        android:id="@+id/dpad_left"
        android:layout_width="@dimen/navigation_side_padding"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        systemui:keyCode="21"
        android:scaleType="center"
        android:contentDescription="@string/accessibility_dpad_left" />

    <com.android.systemui.navigationbar.buttons.KeyButtonView
        android:id="@+id/dpad_right"
        android:layout_width="@dimen/navigation_side_padding"
        android:layout_height="match_parent"
        android:layout_gravity="end"
        systemui:keyCode="22"
        android:scaleType="center"
        android:contentDescription="@string/accessibility_dpad_right" />

</merge>
+38 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The CyanogenMod 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.
-->
<merge
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:systemui="http://schemas.android.com/apk/res-auto">

    <com.android.systemui.navigationbar.buttons.KeyButtonView
        android:id="@+id/dpad_left"
        android:layout_width="match_parent"
        android:layout_height="@dimen/navigation_side_padding"
        android:layout_gravity="top"
        systemui:keyCode="21"
        android:scaleType="center"
        android:contentDescription="@string/accessibility_dpad_left" />

    <com.android.systemui.navigationbar.buttons.KeyButtonView
        android:id="@+id/dpad_right"
        android:layout_width="match_parent"
        android:layout_height="@dimen/navigation_side_padding"
        android:layout_gravity="bottom"
        systemui:keyCode="22"
        android:scaleType="center"
        android:contentDescription="@string/accessibility_dpad_right" />

</merge>
+6 −0
Original line number Diff line number Diff line
@@ -53,6 +53,12 @@
            android:clipToPadding="false"
            android:clipChildren="false" />

        <FrameLayout
            android:id="@+id/dpad_group"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:clipChildren="false" />

    </com.android.systemui.navigationbar.buttons.NearestTouchFrame>

</FrameLayout>
Loading