activity_text_chat_bubble.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="utf-8"?><!--
  2. ~ Copyright (c) 2020 Threema GmbH
  3. ~ All rights reserved.
  4. -->
  5. <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6. xmlns:app="http://schemas.android.com/apk/res-auto"
  7. android:id="@+id/parent_layout"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent">
  10. <com.google.android.material.appbar.AppBarLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content">
  13. <com.google.android.material.appbar.MaterialToolbar
  14. android:id="@+id/toolbar"
  15. style="?attr/materialToolbarStyle"
  16. android:layout_width="match_parent"
  17. android:layout_height="?attr/actionBarSize"
  18. app:navigationIcon="?attr/homeAsUpIndicator"
  19. app:menu="@menu/activity_text_chat_bubble"/>
  20. </com.google.android.material.appbar.AppBarLayout>
  21. <androidx.core.widget.NestedScrollView
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  25. <androidx.constraintlayout.widget.ConstraintLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content">
  28. <com.google.android.material.card.MaterialCardView
  29. android:id="@+id/card_view"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:layout_margin="16dp"
  33. app:cardBackgroundColor="@color/light_bubble_send"
  34. app:cardCornerRadius="16dp"
  35. app:cardElevation="0dp"
  36. app:contentPadding="4dp"
  37. app:layout_constraintLeft_toLeftOf="parent"
  38. app:layout_constraintRight_toRightOf="parent"
  39. app:layout_constraintTop_toTopOf="parent">
  40. <androidx.constraintlayout.widget.ConstraintLayout
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:layout_marginLeft="12dp"
  44. android:layout_marginRight="12dp">
  45. <ch.threema.app.emojis.EmojiConversationTextView
  46. android:id="@+id/text_view"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:linksClickable="true"
  50. android:textColor="?android:textColorPrimary"
  51. android:textSize="?attr/font_large"
  52. android:textIsSelectable="true"
  53. app:layout_constraintBottom_toTopOf="@+id/footer"
  54. app:layout_constraintLeft_toLeftOf="parent"
  55. app:layout_constraintRight_toRightOf="parent"
  56. app:layout_constraintTop_toTopOf="parent" />
  57. <FrameLayout
  58. android:id="@+id/footer"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:layout_marginTop="8dp"
  62. android:layout_marginLeft="-8dp"
  63. android:layout_marginRight="-8dp"
  64. app:layout_constraintBottom_toBottomOf="parent"
  65. app:layout_constraintLeft_toLeftOf="parent"
  66. app:layout_constraintRight_toRightOf="parent">
  67. </FrameLayout>
  68. </androidx.constraintlayout.widget.ConstraintLayout>
  69. </com.google.android.material.card.MaterialCardView>
  70. <com.google.android.material.chip.Chip
  71. android:id="@+id/back_button"
  72. style="@style/Threema.Chip.VideoTranscoder"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_marginRight="16dp"
  76. android:layout_marginBottom="8dp"
  77. android:layout_marginTop="8dp"
  78. android:text="@string/back"
  79. app:layout_constraintTop_toBottomOf="@+id/card_view"
  80. app:layout_constraintRight_toRightOf="parent"
  81. app:layout_constraintBottom_toBottomOf="parent"/>
  82. </androidx.constraintlayout.widget.ConstraintLayout>
  83. </androidx.core.widget.NestedScrollView>
  84. </androidx.coordinatorlayout.widget.CoordinatorLayout>