OSDN Git Service

ActionBar TextSelection: Prevent overlay of textfield
authorStephen Bird <sbird@cyngn.com>
Mon, 29 Jun 2015 18:26:19 +0000 (11:26 -0700)
committerStephen Bird <sbird@cyngn.com>
Mon, 29 Jun 2015 18:29:04 +0000 (11:29 -0700)
Selected text in the actionbar would be covered by the
actionbar options.

Eg: Search Repro steps:
- Click the search button in CMFM
- Type something into the searchbox
- Select that text
- Text is covered

Change-Id: Ie4978035b27d938becf847f6438baffd0a099f14

res/layout/navigation.xml
res/values/styles.xml

index 78612c2..49d7c7b 100644 (file)
@@ -19,8 +19,7 @@
     xmlns:filemanager="http://schemas.android.com/apk/res/com.cyanogenmod.filemanager"
     android:id="@+id/drawer_layout"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:fitsSystemWindows="true">
+    android:layout_height="match_parent">
 
     <com.cyanogenmod.filemanager.ui.widgets.ScrimInsetsFrameLayout
             xmlns:android="http://schemas.android.com/apk/res/android"
@@ -35,7 +34,6 @@
                 android:id="@+id/navigation_layout"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
-                android:layout_marginTop="25dp"
                 android:orientation="vertical">
 
             <!-- We use a Toolbar so that our drawer can be displayed in front of the action bar -->
index ca57706..0733a05 100644 (file)
     <style name="FileManager.Theme.Material.Light.NoActionBar" parent="@android:style/Theme.Material.Light.NoActionBar">
         <item name="android:windowBackground">@color/default_background</item>
         <item name="android:windowActionBar">false</item>
-        <item name="android:windowActionModeOverlay">true</item>
+        <item name="android:windowActionModeOverlay">false</item>
         <item name="android:windowDrawsSystemBarBackgrounds">true</item>
         <item name="android:windowNoTitle">true</item>
         <item name="android:windowContentOverlay">@null</item>
-        <item name="android:statusBarColor">@android:color/transparent</item>
         <item name="android:colorPrimary">@color/material_palette_blue_primary</item>
         <item name="android:colorPrimaryDark">@color/material_palette_blue_primary_dark</item>
         <item name="android:colorControlHighlight">@color/material_palette_blue_accent_dark</item>
@@ -50,7 +49,7 @@
 
     <style name="FileManager.Theme.Material.NoActionBar" parent="@android:style/Theme.Material.NoActionBar">
         <item name="android:windowActionBar">false</item>
-        <item name="android:windowActionModeOverlay">true</item>
+        <item name="android:windowActionModeOverlay">false</item>
         <item name="android:windowDrawsSystemBarBackgrounds">true</item>
         <item name="android:windowNoTitle">true</item>
         <item name="android:windowContentOverlay">@null</item>