migration_cling.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2011 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. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  16. android:id="@+id/migration_cling"
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. launcher:layout_ignoreInsets="true"
  20. android:background="#FF009688" >
  21. <RelativeLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_gravity="center_vertical" >
  25. <ImageView
  26. android:layout_width="@dimen/cling_migration_bg_size"
  27. android:layout_height="@dimen/cling_migration_bg_size"
  28. android:layout_below="@+id/ic_cling_migration"
  29. android:layout_centerHorizontal="true"
  30. android:layout_marginTop="@dimen/cling_migration_bg_shift"
  31. android:src="@drawable/bg_migration_cling" />
  32. <ImageView
  33. android:id="@+id/ic_cling_migration"
  34. android:layout_width="@dimen/cling_migration_logo_width"
  35. android:layout_height="@dimen/cling_migration_logo_height"
  36. android:layout_alignParentTop="true"
  37. android:layout_centerHorizontal="true"
  38. android:src="@drawable/ic_migration" />
  39. <LinearLayout
  40. android:layout_width="@dimen/cling_migration_content_width"
  41. android:layout_height="wrap_content"
  42. android:layout_below="@+id/ic_cling_migration"
  43. android:layout_marginStart="@dimen/cling_migration_content_margin"
  44. android:layout_marginLeft="@dimen/cling_migration_content_margin"
  45. android:orientation="vertical"
  46. android:paddingLeft="24dp"
  47. android:paddingRight="24dp" >
  48. <TextView
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:paddingBottom="8dp"
  52. android:text="@string/first_run_cling_title"
  53. android:textColor="#E1000000"
  54. android:textSize="34sp" />
  55. <TextView
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:fontFamily="sans-serif-medium"
  59. android:text="@string/migration_cling_title"
  60. android:textColor="#E1000000"
  61. android:textSize="20sp" />
  62. <TextView
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:paddingBottom="24dp"
  66. android:text="@string/migration_cling_description"
  67. android:textColor="#99000000"
  68. android:textSize="16sp" />
  69. <LinearLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content" >
  72. <Button
  73. android:id="@+id/cling_dismiss_migration_copy_apps"
  74. style="?android:attr/buttonBarButtonStyle"
  75. android:layout_width="0dp"
  76. android:layout_height="wrap_content"
  77. android:layout_weight="1"
  78. android:fontFamily="sans-serif-medium"
  79. android:text="@string/migration_cling_copy_apps"
  80. android:textColor="#FFFFFFFF"
  81. android:textSize="14sp" />
  82. <Button
  83. android:id="@+id/cling_dismiss_migration_use_default"
  84. style="?android:attr/buttonBarButtonStyle"
  85. android:layout_width="0dp"
  86. android:layout_height="wrap_content"
  87. android:layout_weight="1"
  88. android:fontFamily="sans-serif-medium"
  89. android:text="@string/migration_cling_use_default"
  90. android:textColor="#deFFFFFF"
  91. android:textSize="14sp" />
  92. </LinearLayout>
  93. </LinearLayout>
  94. </RelativeLayout>
  95. </FrameLayout>