Updated
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/secondary" />
|
||||
</shape>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/primary_light" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@color/primary" />
|
||||
</shape>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
|
||||
</vector>
|
||||
@@ -1,14 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorOnPrimary">
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M20,11H7.83l5.59-5.59L12,4l-8,8 8,8 1.41-1.41L7.83,13H20v-2z"
|
||||
android:strokeColor="#FFFFFF"
|
||||
android:strokeWidth="2.5"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"/>
|
||||
</vector>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M12,2C6.48,2 2,6.48 2,12c0,1.54 0.36,3.05 1.05,4.42L2,22l5.58,-1.05C9.95,21.64 11.46,22 13,22h7c1.1,0 2,-0.9 2,-2V12C22,6.48 17.52,2 12,2zM13,17h-2v-6h2V17zM13,9h-2V7h2V9z"/>
|
||||
</vector>
|
||||
@@ -1,84 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="468dp"
|
||||
android:height="468dp"
|
||||
android:viewportWidth="468"
|
||||
android:viewportHeight="468">
|
||||
<path
|
||||
android:fillColor="#f5f5f5"
|
||||
android:pathData="M456.475 247.424c-4.333-8.608-4.341-18.794-.034-27.416 15.98-31.991 15.654-72.457-4.287-107.242-21.874-38.156-61.426-59.142-100.407-57.43-9.922.436-19.497-4.081-25.505-11.99-19.844-26.122-53.825-43.346-92.419-43.346-38.682 0-72.73 17.303-92.553 43.526-6.003 7.941-15.591 12.48-25.538 12.077-38.869-1.573-78.253 19.404-100.062 57.447-20 34.888-20.27 75.491-4.145 107.527 4.333 8.608 4.341 18.794.034 27.416-15.98 31.991-15.654 72.457 4.287 107.242 21.874 38.156 61.426 59.142 100.407 57.43 9.922-.436 19.497 4.081 25.505 11.99 19.843 26.121 53.825 43.345 92.419 43.345 38.682 0 72.73-17.303 92.553-43.526 6.003-7.941 15.591-12.48 25.538-12.077 38.87 1.573 78.253-19.404 100.062-57.447 20-34.888 20.27-75.491 4.145-107.526z" />
|
||||
<path
|
||||
android:fillColor="#bfc8fb"
|
||||
android:pathData="m241.253 42.358 7.747 1.642-8.959 2.541c-4.718 1.338-8.321 5.159-9.38 9.948l-1.661 7.511-1.661-7.511c-1.059-4.789-4.662-8.61-9.38-9.948l-8.959-2.541 7.747-1.642c5.016-1.063 8.977-4.907 10.19-9.889l2.063-8.469 2.063 8.47c1.213 4.981 5.175 8.825 10.19 9.888z" />
|
||||
<path
|
||||
android:fillColor="#ffb1d1"
|
||||
android:pathData="M436 186.02a7 7 0 1 1-14 0 7 7 0 1 1 14 0z" />
|
||||
<path
|
||||
android:fillColor="#ffb1d1"
|
||||
android:pathData="M46 186.02a7 7 0 1 1-14 0 7 7 0 1 1 14 0z" />
|
||||
<path
|
||||
android:fillColor="#9cb1ff"
|
||||
android:pathData="M7 387.652v-95.833c0-47.558 38.379-86.112 85.722-86.112h41.982c47.343 0 85.722 38.554 85.722 86.112v95.833z" />
|
||||
<path
|
||||
android:fillColor="#c4d0ff"
|
||||
android:pathData="M112.722 205.707h-20c-47.343 0-85.722 38.553-85.722 86.111v95.833h20v-95.833c0-47.558 38.379-86.111 85.722-86.111z" />
|
||||
<path
|
||||
android:fillColor="#fcdeca"
|
||||
android:pathData="M7 315.027h49.906v72.625H7z" />
|
||||
<path
|
||||
android:fillColor="#f9cdaf"
|
||||
android:pathData="M113.713 247.805c14.935 0 27.042-12.132 27.042-27.098v-75.633h-54.084v75.633c0 14.966 12.107 27.098 27.042 27.098z" />
|
||||
<path
|
||||
android:fillColor="#fcdeca"
|
||||
android:pathData="M114.262 191.161c-34.701 0-62.832-28.189-62.832-62.962v-62.289h125.663v62.289c0 34.773-28.13 62.962-62.831 62.962z" />
|
||||
<path
|
||||
android:fillColor="#a4a8b2"
|
||||
android:pathData="M117.634 18h-37.753c-6.815 0-13.546 1.91-19.158 5.776-17.834 12.286-11.58 32.979-11.58 32.979-32.393 14.395 2.288 74.095 2.288 74.095l23.387-60.542s42.236 27.807 79.236 0l23.038 60.542c6.083-5.235 10.385-12.292 12.148-20.159 10.933-48.78-11.45-72.138-32.282-83.165-12.09-6.399-25.645-9.526-39.324-9.526z" />
|
||||
<path
|
||||
android:fillColor="#c5c7ce"
|
||||
android:pathData="M69.144 56.755s-6.254-20.693 11.58-32.979c5.611-3.866 12.342-5.776 19.157-5.776h-20c-6.815 0-13.546 1.91-19.158 5.776-17.833 12.286-11.58 32.979-11.58 32.979-32.393 14.395 2.288 74.095 2.288 74.095l9.193-23.797c-6.49-18.345-10.275-41.946 8.52-50.298z" />
|
||||
<path
|
||||
android:fillColor="#9cb1ff"
|
||||
android:pathData="M247.575 387.652v-95.833c0-47.558 38.379-86.112 85.722-86.112h41.982c47.343 0 85.722 38.554 85.722 86.112v95.833z" />
|
||||
<path
|
||||
android:fillColor="#fcdeca"
|
||||
android:pathData="M411.094 315.027h49.906v72.625h-49.906z" />
|
||||
<path
|
||||
android:fillColor="#f9cdaf"
|
||||
android:pathData="M354.287 247.805c14.935 0 27.042-12.132 27.042-27.098v-75.633h-54.084v75.633c0 14.966 12.108 27.098 27.042 27.098z" />
|
||||
<path
|
||||
android:fillColor="#fcdeca"
|
||||
android:pathData="M354.837 191.161c-34.701 0-62.832-28.189-62.832-62.962v-62.289h125.663v62.289c0 34.773-28.13 62.962-62.831 62.962z" />
|
||||
<path
|
||||
android:fillColor="#a4a8b2"
|
||||
android:pathData="M358.209 18h-37.753c-6.815 0-13.546 1.91-19.158 5.776-17.834 12.286-11.58 32.979-11.58 32.979-32.393 14.395 2.288 74.095 2.288 74.095l23.387-60.542s42.236 27.807 79.236 0l23.038 60.542c6.083-5.235 10.385-12.292 12.148-20.159 10.933-48.78-11.45-72.138-32.282-83.165-12.09-6.399-25.645-9.526-39.324-9.526z" />
|
||||
<path
|
||||
android:fillColor="#c5c7ce"
|
||||
android:pathData="M309.718 56.755s-6.254-20.693 11.58-32.979c5.612-3.866 12.343-5.776 19.158-5.776h-20c-6.815 0-13.546 1.91-19.158 5.776-17.833 12.286-11.58 32.979-11.58 32.979-32.393 14.395 2.288 74.094 2.288 74.094l9.193-23.797c-6.49-18.344-10.275-41.945 8.519-50.297z" />
|
||||
<path
|
||||
android:fillColor="#ffe67b"
|
||||
android:pathData="M341.301 450v-96.315c0-47.797-38.544-86.544-86.091-86.544h-42.163c-47.547 0-86.091 38.747-86.091 86.544v96.315z" />
|
||||
<path
|
||||
android:fillColor="#fff5ca"
|
||||
android:pathData="M233.047 267.141h-20c-47.547 0-86.091 38.747-86.091 86.544v96.315h20v-96.314c0-47.798 38.544-86.545 86.091-86.545z" />
|
||||
<path
|
||||
android:fillColor="#fcdeca"
|
||||
android:pathData="M291.18 377.011h50.121v72.989h-50.121z" />
|
||||
<path
|
||||
android:fillColor="#fcdeca"
|
||||
android:pathData="M126.956 377.011h50.433v72.989h-50.433z" />
|
||||
<path
|
||||
android:fillColor="#f9cdaf"
|
||||
android:pathData="M234.129 309.696c14.935 0 27.042-12.132 27.042-27.098v-75.633h-54.084v75.633c0 14.966 12.107 27.098 27.042 27.098z" />
|
||||
<path
|
||||
android:fillColor="#fcdeca"
|
||||
android:pathData="M234.678 253.053c-34.701 0-62.832-28.189-62.832-62.962v-62.289h125.664v62.289c0 34.772-28.131 62.962-62.832 62.962z" />
|
||||
<path
|
||||
android:fillColor="#a4a8b2"
|
||||
android:pathData="M238.05 79.891h-37.753c-6.815 0-13.546 1.91-19.158 5.776-17.834 12.286-11.58 32.979-11.58 32.979-32.393 14.395 2.288 74.095 2.288 74.095l23.387-60.542s42.236 27.807 79.236 0l23.038 60.542c6.083-5.235 10.385-12.292 12.148-20.159 10.933-48.78-11.45-72.138-32.282-83.165-12.09-6.399-25.644-9.526-39.324-9.526z" />
|
||||
<path
|
||||
android:fillColor="#c5c7ce"
|
||||
android:pathData="M189.56 118.646s-6.254-20.693 11.58-32.979c5.612-3.866 12.342-5.776 19.157-5.776h-19.999c-6.815 0-13.545 1.91-19.157 5.776-17.834 12.286-11.58 32.979-11.58 32.979-32.393 14.395 2.288 74.095 2.288 74.095l9.193-23.797c-6.492-18.345-10.276-41.946 8.518-50.298z" />
|
||||
<path
|
||||
android:fillColor="#333"
|
||||
android:pathData="M388.329 199.704v-10.027c20.006-10.917 34.054-31.352 36.07-55.495 6.082-5.985 10.394-13.666 12.246-21.927 15.716-55.513-23.73-101.935-78.436-101.212h-37.754c-24.343-1.225-42.391 23.07-38.565 42.109-6.438 4.359-12.222 11.922-12.921 25.016-9.751-3.441-20.243-5.239-30.918-5.239h-37.754c-.76 0-1.514.026-2.265.065-9.896-45.65-42.405-59.833-80.397-61.951h-37.754c-24.355-1.226-42.4 23.088-38.564 42.125-5.298 3.625-9.108 8.75-11.154 15.065-7.514 23.201 10.022 56.878 14.449 64.811 1.633 24.192 15.326 44.788 35.06 56.021v10.636c-45.17 6.423-79.672 45.67-79.672 92.134v95.817.007c0 3.866 3.134 7 7 7 .042 0 .083-.006.126-.006h112.83v55.347.001c0 3.383 2.399 6.204 5.589 6.857.456.093.927.142 1.411.142h214.345c.483 0 .955-.049 1.411-.142 3.19-.653 5.589-3.475 5.589-6.857v-.001-55.348h112.573c.042.001.083.006.126.006 3.866 0 7-3.134 7-7v-.007-95.817c0-46.463-34.502-85.71-79.671-92.13zm-33.492-15.516c-14 0-27.152-5.124-37.433-14.48 4.462-24.478 2.07-44.144-9.051-61.716l10.689-27.667c20.506 10.914 52.229 13.239 72.137.636l19.346 50.837c-1.839 29.484-26.037 52.39-55.688 52.39zm19.492 11.257v25.285c0 11.081-8.991 20.096-20.042 20.096s-20.041-9.015-20.041-20.096v-25.633c6.579 2.026 13.496 3.089 20.591 3.089 6.767.001 13.307-.958 19.492-2.741zm-54.083 4.199c-5.891.838-11.604 2.232-17.087 4.131.493-2.521.861-5.089 1.079-7.705 3.528-3.472 6.456-7.516 8.658-11.911 2.356 1.784 4.812 3.402 7.35 4.86zm-27.684-136.452c3.192-1.419 4.836-5.021 3.871-8.378-3.766-8.694 3.034-30.449 24.022-29.771h37.754c45.354.25 78.058 34.093 64.775 84.151-.624 2.783-1.658 5.473-3.047 7.976l-18.767-49.313c-1.499-4.262-7.195-5.918-10.747-3.106-32.518 24.435-69.631.761-71.182-.251-3.561-2.471-8.918-.754-10.38 3.324l-10.757 27.848c-4.38-4.155-9.393-7.856-15.035-11.07-.004-.003-.01-.008-.014-.011-1.373-16.564 6.729-20.165 9.507-21.399zm-92.265 23.737h37.754c45.354.25 78.058 34.094 64.773 84.152-.623 2.782-1.657 5.472-3.045 7.975l-18.768-49.313c-1.499-4.262-7.195-5.917-10.747-3.106-32.518 24.435-69.63.76-71.181-.251-3.56-2.471-8.919-.754-10.379 3.324l-17.646 45.674c-5.487-12.798-10.75-29.891-7.159-40.961 1.44-4.439 4.143-7.409 8.502-9.346 3.192-1.419 4.836-5.021 3.871-8.378-3.764-8.691 3.035-30.449 24.025-29.77zm34.381 159.145c-29.635 0-53.838-22.873-55.702-52.333l19.908-51.53c20.507 10.914 52.225 13.238 72.136.636l19.362 50.876c-1.856 29.468-26.063 52.351-55.704 52.351zm19.493 11.247v25.294c0 11.081-8.991 20.096-20.042 20.096s-20.042-9.015-20.042-20.096v-25.612c6.508 1.993 13.421 3.069 20.591 3.069 6.769 0 13.306-.968 19.493-2.751zm-87.879-53.031c-5.924-2.165-12.125-3.744-18.539-4.656v-10.064c3.854-2.114 7.511-4.602 10.929-7.421 2.601 5.872 5.041 10.447 6.344 12.782.216 3.187.646 6.309 1.266 9.359zm-122.808-131.753c1.44-4.439 4.142-7.409 8.502-9.346 3.192-1.419 4.836-5.021 3.871-8.378-3.766-8.693 3.033-30.449 24.023-29.771h37.754c30.92-.464 63.162 19.342 66.714 51.004-6.198 2.442-12.228 7.271-15.963 12.28l-7.79-20.471c-1.495-4.263-7.207-5.917-10.747-3.106-32.517 24.434-69.63.761-71.181-.251-3.56-2.471-8.919-.754-10.379 3.324l-17.646 45.674c-5.487-12.795-10.749-29.89-7.158-40.959zm15.091 59.279 19.893-51.491c20.507 10.913 52.228 13.238 72.136.636l10.885 28.601c-.043 1.946.05 3.795.244 5.493-5.297 3.625-9.108 8.75-11.154 15.065-3.75 11.578-1.26 25.765 2.724 38.059-10.4 10.211-24.406 16.009-39.041 16.009-29.646 0-53.839-22.896-55.687-52.372zm75.179 63.56v25.354c0 11.081-8.99 20.096-20.041 20.096s-20.042-9.015-20.042-20.096v-25.613c6.508 1.993 13.421 3.069 20.591 3.069 6.663.001 13.216-.977 19.492-2.81zm-83.848 185.276h-35.906v-58.612h35.906zm70.05-26.956v26.956h-56.05v-94.177c0-3.866-3.134-7-7-7s-7 3.134-7 7v21.567h-35.906v-16.207c0-38.804 28.292-71.701 65.671-77.991v6.887c0 18.8 15.271 34.095 34.042 34.095s34.041-15.295 34.041-34.095v-6.925c8.944 1.508 17.375 4.541 25.032 8.818 6.203 11.894 15.708 21.729 27.301 28.329v10.175c-45.426 6.385-80.131 45.817-80.131 92.568zm50.434 89.304h-36.434v-58.982h36.434zm163.911 0h-36.121v-58.982h36.121zm0-72.98h-36.121v-21.711c0-3.866-3.134-6.999-7-6.999s-7 3.134-7 6.999v94.691h-99.79l.011-94.692c0-3.866-3.134-6.999-7-6.999s-7 3.134-7 6.999v21.711h-36.445v-16.324c0-39.087 28.495-72.176 66.131-78.436v7.356c0 18.8 15.271 34.095 34.042 34.095s34.042-15.295 34.042-34.095v-7.332c37.632 6.262 66.13 39.327 66.13 78.412zm-66.13-108.904v-9.552c12.423-6.777 22.543-17.228 28.916-29.954 7.151-3.742 14.94-6.41 23.159-7.795v6.916c0 18.8 15.271 34.095 34.041 34.095s34.042-15.295 34.042-34.095v-6.887c37.379 6.29 65.671 39.188 65.671 77.991v16.207h-35.906v-21.567c0-3.866-3.134-7-7-7s-7 3.134-7 7v94.177h-55.793v-26.956c0-46.752-34.703-86.194-80.13-92.58zm185.829 119.536h-35.906v-58.612h35.906z" />
|
||||
</vector>
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<group android:scaleX="0.1953125"
|
||||
android:scaleY="0.1953125"
|
||||
android:translateX="29.25"
|
||||
android:translateY="29.25">
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M256,128c0,70.7 -57.3,128 -128,128S0,198.7 0,128 57.3,0 128,0s128,57.3 128,128zM128,192c35.3,0 64,-28.7 64,-64s-28.7,-64 -64,-64 -64,28.7 -64,64 28.7,64 64,64zM128,96c17.7,0 32,14.3 32,32s-14.3,32 -32,32 -32,-14.3 -32,-32 14.3,-32 32,-32z"/>
|
||||
</group>
|
||||
</vector>
|
||||
@@ -1,10 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorOnPrimary">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M6,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM18,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"/>
|
||||
</vector>
|
||||
@@ -1,10 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024"
|
||||
android:tint="@color/white">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 0 0 174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"/>
|
||||
</vector>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="48"
|
||||
android:viewportHeight="48">
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M14,24A10,10,0,0,0,24,34V14A10,10,0,0,0,14,24Z"/>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M24,2A22,22,0,1,0,46,24,21.9,21.9,0,0,0,24,2ZM6,24A18.1,18.1,0,0,1,24,6v8a10,10,0,0,1,0,20v8A18.1,18.1,0,0,1,6,24Z"/>
|
||||
</vector>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/surface" />
|
||||
<corners android:radius="24dp" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@color/text_hint" />
|
||||
</shape>
|
||||
@@ -1,145 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background"
|
||||
tools:context=".ui.auth.AuthActivity">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="32dp">
|
||||
|
||||
<!-- Title -->
|
||||
<TextView
|
||||
android:id="@+id/titleTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="64dp"
|
||||
android:text="@string/login_title"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<!-- Description -->
|
||||
<TextView
|
||||
android:id="@+id/descriptionTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/login_description"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/titleTextView" />
|
||||
|
||||
<!-- Email Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/emailInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="48dp"
|
||||
android:hint="@string/email_hint"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/descriptionTextView">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/emailEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textEmailAddress"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Password Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/passwordInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:hint="@string/password_hint"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/emailInputLayout"
|
||||
app:passwordToggleEnabled="true">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/passwordEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Login Button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/loginButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="32dp"
|
||||
android:backgroundTint="@color/primary"
|
||||
android:text="@string/login_button"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/passwordInputLayout" />
|
||||
|
||||
<!-- Additional Settings Button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/additionalSettingsButton"
|
||||
style="@style/Widget.Material3.Button.TextButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="Дополнительные настройки"
|
||||
android:textColor="@color/primary"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/loginButton" />
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/additionalSettingsButton" />
|
||||
|
||||
<!-- Error Text -->
|
||||
<TextView
|
||||
android:id="@+id/errorTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:textColor="@color/error"
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/progressBar" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,226 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background"
|
||||
tools:context=".ui.chat.ChatActivity">
|
||||
|
||||
<!-- Toolbar -->
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/primary"
|
||||
android:elevation="4dp"
|
||||
android:theme="@style/ThemeOverlay.Material3.Dark"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:navigationIcon="@drawable/ic_arrow_back"
|
||||
app:title="@string/chat_title"
|
||||
app:titleTextColor="@color/white" />
|
||||
|
||||
<!-- Messages RecyclerView -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/messagesRecyclerView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:padding="8dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/messageInputLayout"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
||||
tools:listitem="@layout/item_message" />
|
||||
|
||||
<!-- Attachment Indicators Container -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/attachmentIndicators"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:elevation="4dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/messageInputLayout"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<!-- Reply Indicator -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/replyIndicator"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/reply_background"
|
||||
android:padding="8dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/replySenderText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="John Smith" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/replyMessageText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintEnd_toStartOf="@id/replyCancelButton"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/replySenderText"
|
||||
tools:text="Original message text..." />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/replyCancelButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="Cancel reply"
|
||||
android:src="@android:drawable/ic_menu_close_clear_cancel"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:tint="@color/text_secondary" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- File Attachment Indicator -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/fileAttachmentIndicator"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/attachment_background"
|
||||
android:padding="8dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/replyIndicator">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/fileAttachmentText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/primary"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toStartOf="@id/fileCancelButton"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Отправка: document.pdf" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/fileCancelButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="Cancel file attachment"
|
||||
android:src="@android:drawable/ic_menu_close_clear_cancel"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:tint="@color/primary" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- Message Input Layout -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/messageInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/surface"
|
||||
android:elevation="4dp"
|
||||
android:minHeight="56dp"
|
||||
android:padding="8dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<!-- Message EditText -->
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/messageEditText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@drawable/message_input_background"
|
||||
android:hint="@string/send_message_hint"
|
||||
android:inputType="textMultiLine"
|
||||
android:maxLines="4"
|
||||
android:minHeight="48dp"
|
||||
android:padding="12dp"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/attachButton"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<!-- Attach File Button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/attachButton"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:backgroundTint="@color/secondary"
|
||||
android:padding="10dp"
|
||||
app:icon="@drawable/ic_paperclip"
|
||||
app:iconSize="28sp"
|
||||
app:iconGravity="start"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/sendButton"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<!-- Send Button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/sendButton"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="48dp"
|
||||
android:backgroundTint="@color/primary"
|
||||
android:paddingStart="32dp"
|
||||
android:textColor="@color/white"
|
||||
app:icon="@android:drawable/ic_menu_send"
|
||||
app:iconSize="40dp"
|
||||
app:iconGravity="textStart"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- Scroll to Bottom FAB -->
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/scrollToBottomFab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:alpha="0.8"
|
||||
android:rotation="90"
|
||||
android:src="@android:drawable/ic_menu_send"
|
||||
android:visibility="gone"
|
||||
app:backgroundTint="@color/primary"
|
||||
app:layout_constraintBottom_toTopOf="@id/attachmentIndicators"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:tint="@color/white" />
|
||||
|
||||
<!-- Loading overlay -->
|
||||
<ProgressBar
|
||||
android:id="@+id/loadingProgressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,296 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background"
|
||||
tools:context=".ui.main.CreateChatActivity">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="24dp">
|
||||
|
||||
<!-- Title -->
|
||||
<TextView
|
||||
android:id="@+id/titleTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="32dp"
|
||||
android:text="Создать чат"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<!-- Chat Type Selection -->
|
||||
<TextView
|
||||
android:id="@+id/chatTypeLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:text="Тип чата"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/titleTextView" />
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/chatTypeRadioGroup"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/chatTypeLabel">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioPersonal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Личный чат"
|
||||
android:checked="true" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioGroup"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Групповой чат" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioExternal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Внешний чат" />
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
<!-- Provider Info (hidden but used internally) -->
|
||||
<TextView
|
||||
android:id="@+id/providerInfo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Используется CRM Chat Provider (ID: 994)"
|
||||
android:textColor="@color/text_hint"
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/chatTypeRadioGroup" />
|
||||
|
||||
<!-- Select User Button (Personal Chat) -->
|
||||
<TextView
|
||||
android:id="@+id/companionLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:text="Собеседник"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/providerInfo" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/selectUserButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="Выбрать пользователя"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/companionLabel" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/selectedUserTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/selectUserButton"
|
||||
tools:text="Выбран: Иван Иванов (ID: 12031100)" />
|
||||
|
||||
<!-- Group Title -->
|
||||
<TextView
|
||||
android:id="@+id/groupTitleLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:text="Название группы"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/providerInfo" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/groupTitleInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="Введите название группы"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/groupTitleLabel">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/groupTitleEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="text" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Participant IDs (Group Chat) - Hidden for simplified UI -->
|
||||
<TextView
|
||||
android:id="@+id/participantsLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="ID участников (через запятую)"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/groupTitleInputLayout" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/participantsInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="1,2,3"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/participantsLabel">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/participantsEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="text" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- External Chat Title -->
|
||||
<TextView
|
||||
android:id="@+id/externalTitleLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:text="Название чата"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/providerInfo" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/externalTitleInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="Введите название чата"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/externalTitleLabel">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/externalTitleEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="text" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Entity ID -->
|
||||
<TextView
|
||||
android:id="@+id/entityLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="ID сущности (опционально)"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/externalTitleInputLayout" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/entityInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="Введите ID сущности"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/entityLabel">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/entityEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="number" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Create Button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/createButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="32dp"
|
||||
android:backgroundTint="@color/primary"
|
||||
android:text="Создать чат"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/groupTitleInputLayout" />
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/createButton" />
|
||||
|
||||
<!-- Error Text -->
|
||||
<TextView
|
||||
android:id="@+id/errorTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:textColor="@color/error"
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/progressBar" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,80 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:id="@+id/appBarLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/primary">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/primary"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark"
|
||||
app:titleTextColor="@color/white">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/backButton"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="Back"
|
||||
android:padding="12dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/ic_arrow_back"
|
||||
android:tint="@android:color/white" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/toolbarTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="16dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
tools:text="image.jpg" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/downloadButton"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="Download"
|
||||
android:padding="12dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@android:drawable/stat_sys_download"
|
||||
android:tint="@android:color/white" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
tools:src="@drawable/ic_launcher_foreground" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@@ -1,152 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background"
|
||||
tools:context=".ui.main.MainActivity">
|
||||
|
||||
<!-- Toolbar -->
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/primary"
|
||||
android:elevation="4dp"
|
||||
android:theme="@style/ThemeOverlay.Material3.Dark"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:title="">
|
||||
|
||||
<!-- Logo Block -->
|
||||
<ImageView
|
||||
android:id="@+id/logoImageView"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_gravity="start"
|
||||
android:contentDescription="Medical Control Logo"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/ic_launcher"/>
|
||||
|
||||
<!-- Menu Button -->
|
||||
<ImageButton
|
||||
android:id="@+id/menuButton"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_gravity="end"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="Menu"
|
||||
android:padding="12dp"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/ic_menu"
|
||||
android:visibility="visible" />
|
||||
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
<!-- SwipeRefreshLayout for chat list -->
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipeRefreshLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar">
|
||||
|
||||
<!-- RecyclerView for chat list -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/chatsRecyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:padding="8dp"
|
||||
tools:listitem="@layout/item_chat" />
|
||||
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
<!-- Empty state -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/emptyStateLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/emptyStateTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/no_chats"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- Loading state -->
|
||||
<ProgressBar
|
||||
android:id="@+id/loadingProgressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar" />
|
||||
|
||||
<!-- Error state -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/errorStateLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/errorTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="@string/error_loading_chats"
|
||||
android:textColor="@color/error"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toTopOf="@id/retryButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/retryButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/retry"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- Floating Action Button for creating new chat -->
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/createChatFab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:contentDescription="@string/create_chat"
|
||||
android:src="@drawable/ic_add"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:tint="@color/white" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,198 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background"
|
||||
tools:context=".ui.profile.ProfileActivity">
|
||||
|
||||
<!-- Toolbar -->
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/primary"
|
||||
android:elevation="4dp"
|
||||
android:theme="@style/ThemeOverlay.Material3.Dark"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:title="Профиль" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp">
|
||||
|
||||
<!-- Avatar Section -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/avatarSection"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:padding="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/avatarImageView"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:contentDescription="User Avatar - Click to change"
|
||||
android:scaleType="centerCrop"
|
||||
android:background="@drawable/message_input_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/avatarHintTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="Нажмите на аватарку, чтобы изменить"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/avatarImageView" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- First Name Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/firstNameInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:hint="Имя"
|
||||
app:layout_constraintEnd_toStartOf="@id/lastNameInputLayout"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/avatarSection">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/firstNameEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPersonName"
|
||||
android:textColor="@color/text_primary" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Last Name Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/lastNameInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:hint="Фамилия"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/firstNameInputLayout"
|
||||
app:layout_constraintTop_toBottomOf="@id/avatarSection">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/lastNameEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPersonName"
|
||||
android:textColor="@color/text_primary" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Email Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/emailInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:hint="Email"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/firstNameInputLayout">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/emailEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textEmailAddress"
|
||||
android:textColor="@color/text_primary" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Phone Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/phoneInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:hint="Телефон"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/emailInputLayout">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/phoneEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="phone"
|
||||
android:textColor="@color/text_primary" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- Save Button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/saveButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="32dp"
|
||||
android:backgroundTint="@color/primary"
|
||||
android:text="Сохранить"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/phoneInputLayout" />
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/saveButton" />
|
||||
|
||||
<!-- Error Text -->
|
||||
<TextView
|
||||
android:id="@+id/errorTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:textColor="@color/error"
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/progressBar" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,178 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background"
|
||||
tools:context=".ui.settings.SettingsActivity">
|
||||
|
||||
<!-- Toolbar -->
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/primary"
|
||||
android:elevation="4dp"
|
||||
android:theme="@style/ThemeOverlay.Material3.Dark"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:title="Настройки" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp">
|
||||
|
||||
<!-- Server Settings Section -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/serverSection"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/message_input_background"
|
||||
android:padding="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/serverTitleTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Сервер"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<!-- Server URL Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/serverUrlInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:hint="Адрес сервера"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/serverTitleTextView">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/serverUrlEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textUri"
|
||||
android:textColor="@color/text_primary" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<!-- API Key Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/apiKeyInputLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:hint="API-ключ"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/serverUrlInputLayout">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/apiKeyEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="@color/text_primary" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- Theme Settings Section -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/themeSection"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:background="@drawable/message_input_background"
|
||||
android:padding="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/serverSection">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/themeTitleTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Тема"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<!-- Theme Toggle -->
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
android:id="@+id/themeSwitch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="Темная тема"
|
||||
android:textColor="@color/text_primary"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/themeTitleTextView" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- Save Button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/saveButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="32dp"
|
||||
android:backgroundTint="@color/primary"
|
||||
android:text="Сохранить"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/themeSection" />
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/saveButton" />
|
||||
|
||||
<!-- Error Text -->
|
||||
<TextView
|
||||
android:id="@+id/errorTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:textColor="@color/error"
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/progressBar" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,89 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background"
|
||||
tools:context=".ui.main.UserSelectionActivity">
|
||||
|
||||
<!-- Toolbar -->
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/primary"
|
||||
android:elevation="4dp"
|
||||
android:theme="@style/ThemeOverlay.Material3.Dark"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:titleTextColor="@color/white" />
|
||||
|
||||
<!-- Search View -->
|
||||
<androidx.appcompat.widget.SearchView
|
||||
android:id="@+id/searchView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:background="@drawable/message_input_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
||||
app:queryHint="Поиск пользователей..." />
|
||||
|
||||
<!-- Users RecyclerView -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/usersRecyclerView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:padding="8dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/doneButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/searchView"
|
||||
tools:listitem="@layout/item_user" />
|
||||
|
||||
<!-- Done Button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/doneButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:text="Создать чат"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:cornerRadius="8dp"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<!-- Empty State -->
|
||||
<TextView
|
||||
android:id="@+id/emptyTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="32dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Пользователи не найдены" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,99 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="4dp"
|
||||
app:cardCornerRadius="8dp"
|
||||
app:cardElevation="2dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:padding="16dp">
|
||||
|
||||
<!-- Chat Avatar -->
|
||||
<ImageView
|
||||
android:id="@+id/chatAvatarImageView"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@drawable/circle_background"
|
||||
android:padding="2dp"
|
||||
android:scaleType="centerInside"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@android:drawable/ic_menu_camera"
|
||||
tools:srcCompat="@tools:sample/avatars" />
|
||||
|
||||
<!-- Chat Name -->
|
||||
<TextView
|
||||
android:id="@+id/chatNameTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toStartOf="@id/unreadCountBadge"
|
||||
app:layout_constraintStart_toEndOf="@id/chatAvatarImageView"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Chat Name" />
|
||||
|
||||
<!-- Last Message -->
|
||||
<TextView
|
||||
android:id="@+id/lastMessageTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toStartOf="@id/lastMessageTimeTextView"
|
||||
app:layout_constraintStart_toEndOf="@id/chatAvatarImageView"
|
||||
app:layout_constraintTop_toBottomOf="@id/chatNameTextView"
|
||||
tools:text="Last message text" />
|
||||
|
||||
<!-- Last Message Time -->
|
||||
<TextView
|
||||
android:id="@+id/lastMessageTimeTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:textColor="@color/text_hint"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/lastMessageTextView"
|
||||
tools:text="12:30" />
|
||||
|
||||
<!-- Unread Count Badge -->
|
||||
<TextView
|
||||
android:id="@+id/unreadCountBadge"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/badge_background"
|
||||
android:gravity="center"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="10sp"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/chatNameTextView"
|
||||
app:layout_constraintBottom_toBottomOf="@id/chatNameTextView"
|
||||
tools:text="5"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
@@ -1,318 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp">
|
||||
|
||||
<!-- Reply Indicator (for both sent and received messages) -->
|
||||
<LinearLayout
|
||||
android:id="@+id/replyIndicator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@color/reply_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="8dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/replySenderText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="John Smith" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/replyMessageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
tools:text="Original message text..." />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Sent Message Bubble -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/sentMessageCard"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="64dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:visibility="gone"
|
||||
app:cardBackgroundColor="@color/message_sent"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/replyIndicator"
|
||||
tools:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/sentReplyIndicator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="4dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:background="@color/reply_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="4dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sentReplySenderText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="John Smith" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sentReplyMessageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
tools:text="Original message text..." />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- File Attachment for Sent Messages -->
|
||||
<LinearLayout
|
||||
android:id="@+id/sentFileLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:text="📎"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sentFileNameText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:textColor="@color/message_sent_text"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="document.pdf" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Image Preview for Sent Messages -->
|
||||
<ImageView
|
||||
android:id="@+id/sentImagePreview"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="centerCrop"
|
||||
android:visibility="gone"
|
||||
tools:src="@drawable/ic_launcher_foreground"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sentMessageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="280dp"
|
||||
android:padding="12dp"
|
||||
android:textAlignment="textEnd"
|
||||
android:textColor="@color/message_sent_text"
|
||||
android:textSize="16sp"
|
||||
tools:text="This is a sent message" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- Received Message Bubble -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/receivedMessageCard"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginEnd="64dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:visibility="gone"
|
||||
app:cardBackgroundColor="@color/message_received"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/replyIndicator"
|
||||
tools:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/receivedReplyIndicator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="4dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:background="@color/reply_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="4dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/receivedReplySenderText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="John Smith" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/receivedReplyMessageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
tools:text="Original message text..." />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- File Attachment for Received Messages -->
|
||||
<LinearLayout
|
||||
android:id="@+id/receivedFileLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:text="📎"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/receivedFileNameText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:textColor="@color/message_received_text"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="document.pdf" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Image Preview for Received Messages -->
|
||||
<ImageView
|
||||
android:id="@+id/receivedImagePreview"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="centerCrop"
|
||||
android:visibility="gone"
|
||||
tools:src="@drawable/ic_launcher_foreground"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/receivedMessageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="280dp"
|
||||
android:padding="12dp"
|
||||
android:textColor="@color/message_received_text"
|
||||
android:textSize="16sp"
|
||||
tools:text="This is a received message" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- Sender Name (for received messages) -->
|
||||
<TextView
|
||||
android:id="@+id/senderNameText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="10sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/receivedMessageCard"
|
||||
tools:text="John Doe"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<!-- Timestamp -->
|
||||
<TextView
|
||||
android:id="@+id/timestampText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:maxLines="1"
|
||||
android:textAlignment="textEnd"
|
||||
android:textColor="@color/text_hint"
|
||||
android:textSize="10sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/sentMessageCard"
|
||||
tools:text="Я (17.01.2026 12:30) ✓"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,82 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="4dp"
|
||||
app:cardCornerRadius="8dp"
|
||||
app:cardElevation="2dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:padding="16dp">
|
||||
|
||||
<!-- User Avatar -->
|
||||
<ImageView
|
||||
android:id="@+id/userAvatarImageView"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="@drawable/circle_background"
|
||||
android:padding="2dp"
|
||||
android:scaleType="centerInside"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@android:drawable/ic_menu_camera"
|
||||
tools:srcCompat="@tools:sample/avatars" />
|
||||
|
||||
<!-- User Name -->
|
||||
<TextView
|
||||
android:id="@+id/userNameTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/userAvatarImageView"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Иван Иванов" />
|
||||
|
||||
<!-- User ID -->
|
||||
<TextView
|
||||
android:id="@+id/userIdTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/userAvatarImageView"
|
||||
app:layout_constraintTop_toBottomOf="@id/userNameTextView"
|
||||
tools:text="ID: 12345" />
|
||||
|
||||
<!-- User Email -->
|
||||
<TextView
|
||||
android:id="@+id/userEmailTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_hint"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/userAvatarImageView"
|
||||
app:layout_constraintTop_toBottomOf="@id/userIdTextView"
|
||||
tools:text="user@example.com" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
@@ -1,53 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp">
|
||||
|
||||
<!-- Back Button -->
|
||||
<ImageButton
|
||||
android:id="@+id/backButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:src="@drawable/ic_arrow_back"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:contentDescription="Back" />
|
||||
|
||||
<!-- Chat Avatar -->
|
||||
<ImageView
|
||||
android:id="@+id/chatAvatarImageView"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:background="@drawable/circle_background"
|
||||
android:scaleType="centerCrop"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/backButton"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:srcCompat="@tools:sample/avatars" />
|
||||
|
||||
<!-- Chat Name -->
|
||||
<TextView
|
||||
android:id="@+id/chatNameTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/chatAvatarImageView"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="John Doe" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_profile"
|
||||
android:title="Профиль"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_settings"
|
||||
android:title="Настройки"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_logout"
|
||||
android:title="Выход"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/action_done"
|
||||
android:title="Готово"
|
||||
android:icon="@android:drawable/ic_menu_send"
|
||||
app:showAsAction="always" />
|
||||
</menu>
|
||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB |
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="background">#121212</color>
|
||||
<color name="background_dark">#000000</color>
|
||||
<color name="black">#FFFFFFFF</color>
|
||||
<color name="error">#CF6679</color>
|
||||
<color name="error_light">#FF8A80</color>
|
||||
<color name="message_received">#333333</color>
|
||||
<color name="message_received_text">#FFFFFF</color>
|
||||
<color name="message_sent">#2D2D2D</color>
|
||||
<color name="message_sent_text">#FFFFFF</color>
|
||||
<color name="primary">#9E9E9E</color>
|
||||
<color name="primary_dark">#616161</color>
|
||||
<color name="primary_light">#BDBDBD</color>
|
||||
<color name="reply_background">#2D3748</color>
|
||||
<color name="secondary">#757575</color>
|
||||
<color name="secondary_dark">#494949</color>
|
||||
<color name="secondary_light">#A4A4A4</color>
|
||||
<color name="surface">#1E1E1E</color>
|
||||
<color name="text_hint">#808080</color>
|
||||
<color name="text_primary">#FFFFFF</color>
|
||||
<color name="text_secondary">#B3B3B3</color>
|
||||
<color name="white">#FF000000</color>
|
||||
</resources>
|
||||
@@ -1,78 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:ns1="http://schemas.android.com/tools">
|
||||
<color name="attachment_background">#E3F2FD</color>
|
||||
<color name="background">#FAFAFA</color>
|
||||
<color name="background_dark">#F5F5F5</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="error">#B00020</color>
|
||||
<color name="error_light">#EF5350</color>
|
||||
<color name="message_received">#F5F5F5</color>
|
||||
<color name="message_received_text">#212121</color>
|
||||
<color name="message_sent">#E3F2FD</color>
|
||||
<color name="message_sent_text">#1976D2</color>
|
||||
<color name="primary">#1976D2</color>
|
||||
<color name="primary_dark">#1565C0</color>
|
||||
<color name="primary_light">#BBDEFB</color>
|
||||
<color name="reply_background">#E8F5E8</color>
|
||||
<color name="secondary">#FF9800</color>
|
||||
<color name="secondary_dark">#F57C00</color>
|
||||
<color name="secondary_light">#FFCC02</color>
|
||||
<color name="selected_item_background">#E8F5E8</color>
|
||||
<color name="surface">#FFFFFF</color>
|
||||
<color name="text_hint">#BDBDBD</color>
|
||||
<color name="text_primary">#212121</color>
|
||||
<color name="text_secondary">#757575</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<string name="app_name">Medical Control</string>
|
||||
<string name="cancel">Отмена</string>
|
||||
<string name="chat_title">Чат</string>
|
||||
<string name="chats_title">Medical Control</string>
|
||||
<string name="create_chat">Создать чат</string>
|
||||
<string name="email_hint">Электронная почта</string>
|
||||
<string name="email_required">Электронная почта обязательна</string>
|
||||
<string name="error">Ошибка</string>
|
||||
<string name="error_empty_response">Сервер вернул пустой ответ. Проверьте подключение к серверу и правильность URL.</string>
|
||||
<string name="error_empty_token">Сервер вернул пустой токен. Проверьте правильность email и пароля.</string>
|
||||
<string name="error_forbidden">Доступ запрещен. Проверьте API ключ и права доступа.</string>
|
||||
<string name="error_invalid_credentials">Неверный email или пароль. Проверьте правильность введенных данных.</string>
|
||||
<string name="error_invalid_url">URL сервера должен начинаться с http:// или https://</string>
|
||||
<string name="error_loading_chats">Ошибка загрузки чатов</string>
|
||||
<string name="error_network">Ошибка сети. Проверьте подключение к интернету.</string>
|
||||
<string name="error_sending_message">Ошибка отправки сообщения</string>
|
||||
<string name="error_server_error">Ошибка сервера. Сервер временно недоступен, попробуйте позже.</string>
|
||||
<string name="error_server_not_found">Сервер не найден. Проверьте URL сервера и подключение к сети.</string>
|
||||
<string name="error_timeout">Таймаут соединения. Проверьте подключение к серверу и попробуйте снова.</string>
|
||||
<string name="error_unexpected">Неожиданная ошибка. Попробуйте перезапустить приложение.</string>
|
||||
<string name="loading">Загрузка...</string>
|
||||
<string name="login_button">Войти</string>
|
||||
<string name="login_description">Введите email и пароль для доступа к чату</string>
|
||||
<string name="login_failed">Ошибка входа. Проверьте данные.</string>
|
||||
<string name="login_title">Авторизация</string>
|
||||
<string name="no_chats">Нет доступных чатов</string>
|
||||
<string name="ok">ОК</string>
|
||||
<string name="password_hint">Пароль</string>
|
||||
<string name="password_required">Пароль обязателен</string>
|
||||
<string name="retry">Повторить</string>
|
||||
<string name="send_button">Отправить</string>
|
||||
<string name="send_message_hint">Введите сообщение...</string>
|
||||
<string name="theme_toggle">Переключить тему</string>
|
||||
<style name="Theme.CRMChat" parent="Theme.Material3.DayNight">
|
||||
|
||||
<item name="colorPrimary">@color/primary</item>
|
||||
<item name="colorPrimaryVariant">@color/primary_dark</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
|
||||
<item name="colorSecondary">@color/secondary</item>
|
||||
<item name="colorSecondaryVariant">@color/secondary_dark</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
|
||||
<item name="android:statusBarColor" ns1:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
|
||||
</style>
|
||||
<style name="Theme.CRMChat.AppBarOverlay" parent="ThemeOverlay.Material3.Dark"/>
|
||||
<style name="Theme.CRMChat.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
<style name="Theme.CRMChat.PopupOverlay" parent="ThemeOverlay.Material3.Light"/>
|
||||
</resources>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<full-backup-content>
|
||||
<!-- TODO: Use <include> for each file type or <exclude> for each file type -->
|
||||
<!-- <include domain="sharedpref" path="."/> -->
|
||||
<!-- <exclude domain="sharedpref" path="device.xml"/> -->
|
||||
</full-backup-content>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<data-extraction-rules>
|
||||
<cloud-backup>
|
||||
<!-- TODO: Use <include> for each file type or <exclude> for each file type -->
|
||||
<!-- <include .../> -->
|
||||
<!-- <exclude .../> -->
|
||||
</cloud-backup>
|
||||
<device-transfer>
|
||||
<!-- TODO: Use <include> for each file type or <exclude> for each file type -->
|
||||
<!-- <include .../> -->
|
||||
<!-- <exclude .../> -->
|
||||
</device-transfer>
|
||||
</data-extraction-rules>
|
||||
@@ -18,17 +18,37 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:title="">
|
||||
app:title=""
|
||||
app:titleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
|
||||
|
||||
<!-- Logo Block -->
|
||||
<ImageView
|
||||
android:id="@+id/logoImageView"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:contentDescription="Medical Control Logo"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/ic_launcher"/>
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/logoImageView"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:contentDescription="Medical Control Logo"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:tint="@android:color/white"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:text="Medical Control"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
android:fontFamily="sans-serif-medium"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Menu Button -->
|
||||
<ImageButton
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
android:layout_height="120dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:contentDescription="User Avatar - Click to change"
|
||||
android:contentDescription="User Avatar"
|
||||
android:scaleType="centerCrop"
|
||||
android:background="@drawable/message_input_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -58,18 +58,6 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/avatarHintTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="Нажмите на аватарку, чтобы изменить"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/avatarImageView" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- First Name Input -->
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:padding="16dp">
|
||||
android:padding="8dp">
|
||||
|
||||
<!-- Chat Avatar -->
|
||||
<ImageView
|
||||
android:id="@+id/chatAvatarImageView"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@drawable/circle_background"
|
||||
android:padding="2dp"
|
||||
android:scaleType="centerInside"
|
||||
@@ -34,12 +34,12 @@
|
||||
android:id="@+id/chatNameTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toStartOf="@id/unreadCountBadge"
|
||||
app:layout_constraintStart_toEndOf="@id/chatAvatarImageView"
|
||||
@@ -51,13 +51,13 @@
|
||||
android:id="@+id/lastMessageTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="14sp"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintEnd_toStartOf="@id/lastMessageTimeTextView"
|
||||
app:layout_constraintStart_toEndOf="@id/chatAvatarImageView"
|
||||
app:layout_constraintTop_toBottomOf="@id/chatNameTextView"
|
||||
|
||||
@@ -159,6 +159,22 @@
|
||||
android:textSize="16sp"
|
||||
tools:text="This is a sent message" />
|
||||
|
||||
<!-- Reactions for Sent Messages -->
|
||||
<LinearLayout
|
||||
android:id="@+id/sentReactionsContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<!-- Reactions will be added dynamically -->
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -279,6 +295,22 @@
|
||||
android:textSize="16sp"
|
||||
tools:text="This is a received message" />
|
||||
|
||||
<!-- Reactions for Received Messages -->
|
||||
<LinearLayout
|
||||
android:id="@+id/receivedReactionsContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<!-- Reactions will be added dynamically -->
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="background">#121212</color>
|
||||
<color name="background_color">#121212</color>
|
||||
<color name="background_dark">#000000</color>
|
||||
<color name="black">#FFFFFFFF</color>
|
||||
<color name="error">#CF6679</color>
|
||||
@@ -10,6 +11,7 @@
|
||||
<color name="message_sent">#2D2D2D</color>
|
||||
<color name="message_sent_text">#FFFFFF</color>
|
||||
<color name="primary">#9E9E9E</color>
|
||||
<color name="primary_color">#9E9E9E</color>
|
||||
<color name="primary_dark">#616161</color>
|
||||
<color name="primary_light">#BDBDBD</color>
|
||||
<color name="reply_background">#2D3748</color>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<resources xmlns:ns1="http://schemas.android.com/tools">
|
||||
<color name="attachment_background">#E3F2FD</color>
|
||||
<color name="background">#FAFAFA</color>
|
||||
<color name="background_color">#FAFAFA</color>
|
||||
<color name="background_dark">#F5F5F5</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="error">#B00020</color>
|
||||
@@ -11,6 +12,7 @@
|
||||
<color name="message_sent">#E3F2FD</color>
|
||||
<color name="message_sent_text">#1976D2</color>
|
||||
<color name="primary">#1976D2</color>
|
||||
<color name="primary_color">#1976D2</color>
|
||||
<color name="primary_dark">#1565C0</color>
|
||||
<color name="primary_light">#BBDEFB</color>
|
||||
<color name="reply_background">#E8F5E8</color>
|
||||
|
||||