nim_crop_image_activity.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <android.support.design.widget.AppBarLayout
  7. android:id="@+id/app_bar_layout"
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:theme="@style/AppTheme.AppBarOverlay"
  11. app:elevation="0dp">
  12. <View
  13. android:id="@+id/statusBar"
  14. android:layout_width="match_parent"
  15. android:layout_height="20dp"/>
  16. <android.support.v7.widget.Toolbar
  17. android:id="@+id/toolbar"
  18. android:layout_width="match_parent"
  19. android:layout_height="?attr/actionBarSize"
  20. android:background="?attr/colorPrimary"
  21. app:titleTextAppearance="@style/Toolbar.TitleText">
  22. </android.support.v7.widget.Toolbar>
  23. </android.support.design.widget.AppBarLayout>
  24. <com.netease.nim.uikit.common.ui.imageview.CropImageView
  25. android:id="@+id/cropable_image_view"
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:layout_below="@id/app_bar_layout" />
  29. <LinearLayout
  30. android:id="@+id/yixin_profile_buddy_operations"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_alignParentBottom="true"
  34. android:orientation="horizontal">
  35. <RelativeLayout
  36. android:id="@+id/cancel_btn"
  37. android:layout_width="0dp"
  38. android:layout_height="wrap_content"
  39. android:layout_weight="1"
  40. android:background="@drawable/nim_align_bottom_green_btn_selector"
  41. android:clickable="true"
  42. android:descendantFocusability="beforeDescendants"
  43. android:minHeight="50dp"
  44. android:onClick="onClick">
  45. <TextView
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_centerInParent="true"
  49. android:clickable="false"
  50. android:text="@string/cancel"
  51. android:textColor="@color/white"
  52. android:textSize="17sp" />
  53. </RelativeLayout>
  54. <View
  55. android:layout_width="2px"
  56. android:layout_height="fill_parent"
  57. android:background="@color/split_line_grey_color_d9d9d9"></View>
  58. <RelativeLayout
  59. android:id="@+id/ok_btn"
  60. android:layout_width="0dp"
  61. android:layout_height="wrap_content"
  62. android:layout_weight="1"
  63. android:background="@drawable/nim_align_bottom_green_btn_selector"
  64. android:clickable="true"
  65. android:descendantFocusability="beforeDescendants"
  66. android:minHeight="50dp"
  67. android:onClick="onClick">
  68. <TextView
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:layout_centerInParent="true"
  72. android:clickable="false"
  73. android:text="@string/choose"
  74. android:textColor="@color/white"
  75. android:textSize="17sp" />
  76. </RelativeLayout>
  77. </LinearLayout>
  78. </RelativeLayout>