migration_cling.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. <LinearLayout 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. android:baselineAligned="false"
  22. android:gravity="center_vertical" >
  23. <FrameLayout
  24. android:layout_width="0dp"
  25. android:layout_height="match_parent"
  26. android:layout_weight="1" >
  27. <ImageView
  28. android:layout_width="@dimen/cling_migration_bg_size"
  29. android:layout_height="@dimen/cling_migration_bg_size"
  30. android:layout_gravity="center"
  31. android:background="@drawable/bg_migration_cling" />
  32. <ImageView
  33. android:layout_width="@dimen/cling_migration_logo_width"
  34. android:layout_height="@dimen/cling_migration_logo_height"
  35. android:layout_gravity="center"
  36. android:src="@drawable/ic_migration" />
  37. </FrameLayout>
  38. <LinearLayout
  39. android:layout_width="@dimen/cling_migration_content_width"
  40. android:layout_height="wrap_content"
  41. android:layout_marginEnd="@dimen/cling_migration_content_margin"
  42. android:orientation="vertical"
  43. android:paddingLeft="24dp"
  44. android:paddingRight="24dp" >
  45. <TextView
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:paddingBottom="8dp"
  49. android:text="@string/first_run_cling_title"
  50. android:textColor="#E1000000"
  51. android:textSize="34sp" />
  52. <TextView
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:fontFamily="sans-serif-medium"
  56. android:text="@string/migration_cling_title"
  57. android:textColor="#E1000000"
  58. android:textSize="20sp" />
  59. <TextView
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:paddingBottom="24dp"
  63. android:text="@string/migration_cling_description"
  64. android:textColor="#99000000"
  65. android:textSize="16sp" />
  66. <LinearLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content" >
  69. <Button
  70. android:id="@+id/cling_dismiss_migration_copy_apps"
  71. style="?android:attr/buttonBarButtonStyle"
  72. android:layout_width="0dp"
  73. android:layout_height="wrap_content"
  74. android:layout_weight="1"
  75. android:fontFamily="sans-serif-medium"
  76. android:text="@string/migration_cling_copy_apps"
  77. android:textColor="#FFFFFFFF"
  78. android:textSize="14sp" />
  79. <Button
  80. android:id="@+id/cling_dismiss_migration_use_default"
  81. style="?android:attr/buttonBarButtonStyle"
  82. android:layout_width="0dp"
  83. android:layout_height="wrap_content"
  84. android:layout_weight="1"
  85. android:fontFamily="sans-serif-medium"
  86. android:text="@string/migration_cling_use_default"
  87. android:textColor="#deFFFFFF"
  88. android:textSize="14sp" />
  89. </LinearLayout>
  90. </LinearLayout>
  91. </LinearLayout>