From 248c05f4e2fcc92a516985299656eb8a691cd304 Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Tue, 23 Aug 2022 17:20:37 +0300 Subject: [PATCH] Create other session item layout. --- .../v2/list/OtherSessionsController.kt | 28 +++++++++ .../main/res/drawable/circle_with_border.xml | 14 +++++ .../main/res/layout/item_other_session.xml | 63 +++++++++++++++++++ .../main/res/layout/view_current_session.xml | 6 +- 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 vector/src/main/java/im/vector/app/features/settings/devices/v2/list/OtherSessionsController.kt create mode 100644 vector/src/main/res/drawable/circle_with_border.xml create mode 100644 vector/src/main/res/layout/item_other_session.xml diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/list/OtherSessionsController.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/list/OtherSessionsController.kt new file mode 100644 index 0000000000..5cf85d2069 --- /dev/null +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/list/OtherSessionsController.kt @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package im.vector.app.features.settings.devices.v2.list + +import com.airbnb.epoxy.TypedEpoxyController +import im.vector.app.features.settings.devices.DevicesViewState +import javax.inject.Inject + +class OtherSessionsController @Inject constructor() : TypedEpoxyController() { + + override fun buildModels(data: DevicesViewState?) { + + } +} diff --git a/vector/src/main/res/drawable/circle_with_border.xml b/vector/src/main/res/drawable/circle_with_border.xml new file mode 100644 index 0000000000..7b9bad44f7 --- /dev/null +++ b/vector/src/main/res/drawable/circle_with_border.xml @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/vector/src/main/res/layout/item_other_session.xml b/vector/src/main/res/layout/item_other_session.xml new file mode 100644 index 0000000000..8805a02544 --- /dev/null +++ b/vector/src/main/res/layout/item_other_session.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + diff --git a/vector/src/main/res/layout/view_current_session.xml b/vector/src/main/res/layout/view_current_session.xml index 61641cbbe7..5709682b84 100644 --- a/vector/src/main/res/layout/view_current_session.xml +++ b/vector/src/main/res/layout/view_current_session.xml @@ -21,7 +21,7 @@ tools:src="@drawable/ic_device_type_mobile" /> + tools:text="Element Mobile: Android" /> + app:layout_constraintTop_toBottomOf="@id/currentSessionNameTextView">