migration_cling.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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:layout_marginRight="@dimen/cling_migration_content_margin"
  43. android:orientation="vertical"
  44. android:paddingLeft="24dp"
  45. android:paddingRight="24dp" >
  46. <TextView
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:paddingBottom="8dp"
  50. android:text="@string/first_run_cling_title"
  51. android:textColor="#E1000000"
  52. android:textSize="34sp" />
  53. <TextView
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:fontFamily="sans-serif-medium"
  57. android:text="@string/migration_cling_title"
  58. android:textColor="#E1000000"
  59. android:textSize="20sp" />
  60. <TextView
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:paddingBottom="24dp"
  64. android:text="@string/migration_cling_description"
  65. android:textColor="#99000000"
  66. android:textSize="16sp" />
  67. <LinearLayout
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content" >
  70. <Button
  71. android:id="@+id/cling_dismiss_migration_copy_apps"
  72. style="?android:attr/buttonBarButtonStyle"
  73. android:layout_width="0dp"
  74. android:layout_height="wrap_content"
  75. android:layout_weight="1"
  76. android:fontFamily="sans-serif-medium"
  77. android:text="@string/migration_cling_copy_apps"
  78. android:textColor="#FFFFFFFF"
  79. android:textSize="14sp" />
  80. <Button
  81. android:id="@+id/cling_dismiss_migration_use_default"
  82. style="?android:attr/buttonBarButtonStyle"
  83. android:layout_width="0dp"
  84. android:layout_height="wrap_content"
  85. android:layout_weight="1"
  86. android:fontFamily="sans-serif-medium"
  87. android:text="@string/migration_cling_use_default"
  88. android:textColor="#deFFFFFF"
  89. android:textSize="14sp" />
  90. </LinearLayout>
  91. </LinearLayout>
  92. </LinearLayout>