nim_crop_image_activity.xml 3.3 KB

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