user_folder.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2015 The Android Open Source Project
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <com.android.launcher3.Folder xmlns:android="http://schemas.android.com/apk/res/android"
  15. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:background="@drawable/quantum_panel"
  19. android:elevation="5dp"
  20. android:orientation="vertical" >
  21. <FrameLayout
  22. android:id="@+id/folder_content_wrapper"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent" >
  25. <!-- Actual size of the indicator doesn't matter as it is scaled to match the view size -->
  26. <com.android.launcher3.FocusIndicatorView
  27. android:id="@+id/focus_indicator"
  28. android:layout_width="20dp"
  29. android:layout_height="20dp" />
  30. <com.android.launcher3.FolderPagedView
  31. android:id="@+id/folder_content"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent"
  34. android:paddingLeft="4dp"
  35. android:paddingRight="4dp"
  36. android:paddingTop="8dp"
  37. launcher:pageIndicator="@+id/folder_page_indicator" />
  38. </FrameLayout>
  39. <LinearLayout
  40. android:id="@+id/folder_footer"
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:clipChildren="false"
  44. android:orientation="horizontal"
  45. android:paddingLeft="8dp"
  46. android:paddingRight="8dp" >
  47. <com.android.launcher3.ExtendedEditText
  48. android:id="@+id/folder_name"
  49. android:layout_width="0dp"
  50. android:layout_height="wrap_content"
  51. android:layout_gravity="center_vertical"
  52. android:layout_weight="1"
  53. android:background="#00000000"
  54. android:fontFamily="sans-serif-condensed"
  55. android:gravity="center_horizontal"
  56. android:hint="@string/folder_hint_text"
  57. android:imeOptions="flagNoExtractUi"
  58. android:paddingBottom="8dp"
  59. android:paddingTop="4dp"
  60. android:singleLine="true"
  61. android:textColor="#ff777777"
  62. android:textColorHighlight="#ffCCCCCC"
  63. android:textColorHint="#ff808080"
  64. android:textSize="14sp" />
  65. <include
  66. android:id="@+id/folder_page_indicator"
  67. android:layout_width="wrap_content"
  68. android:layout_height="12dp"
  69. android:layout_gravity="center_vertical"
  70. layout="@layout/page_indicator" />
  71. </LinearLayout>
  72. </com.android.launcher3.Folder>