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

Commit 82afa805 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by The Android Automerger
Browse files

Add keyboard shadow

This CL sets 8dp elevation ot input view in order to cast a shadow
onto underlying application.

Bug: 16210054
Change-Id: I7779c63612fc88e24dde65de3e4e7a45b9d1762f
parent fc153d27
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,7 +21,8 @@
<com.android.inputmethod.latin.InputView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    android:layout_height="wrap_content"
    style="?attr/inputViewStyle">
    <include
        android:id="@+id/main_keyboard_frame"
        layout="@layout/main_keyboard_frame" />
+28 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2014, 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.
*/
-->

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style
        name="InputView.LXX"
        parent="InputView"
    >
        <item name="android:elevation">8dp</item>
    </style>
</resources>
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@

<resources>
    <declare-styleable name="KeyboardTheme">
        <!-- InputView style -->
        <attr name="inputViewStyle" format="reference" />
        <!-- Keyboard style -->
        <attr name="keyboardStyle" format="reference" />
        <!-- KeyboardView style -->
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style name="KeyboardIcons" />
    <style name="InputView" />
    <!-- Default theme values -->
    <style name="Keyboard">
        <item name="rowHeight">25%p</item>
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,10 @@
-->

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style
        name="InputView.Holo"
        parent="InputView"
    />
    <!-- Holo KeyboardView theme (ICS and KLP) -->
    <style
        name="KeyboardView.Holo"
Loading