mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
improve autocomplete mention items design
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
0078778c99
commit
02bd95ffad
@ -20,77 +20,70 @@
|
|||||||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/relativeLayout3"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/item_height"
|
android:layout_height="@dimen/item_height">
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<FrameLayout
|
<com.facebook.drawee.view.SimpleDraweeView
|
||||||
android:id="@+id/frame_layout"
|
android:id="@+id/conversation_info_participant_avatar"
|
||||||
|
android:layout_width="@dimen/small_item_height"
|
||||||
|
android:layout_height="@dimen/small_item_height"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:roundAsCircle="true" />
|
||||||
|
|
||||||
|
<com.vanniktech.emoji.EmojiEditText
|
||||||
|
android:id="@+id/participant_status_emoji"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:background="@color/transparent"
|
||||||
android:layout_marginStart="@dimen/activity_horizontal_margin">
|
android:cursorVisible="false"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/default_emoji"
|
||||||
|
android:textSize="16sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/participant_online_state"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/participant_online_state" />
|
||||||
|
|
||||||
<com.facebook.drawee.view.SimpleDraweeView
|
<ImageView
|
||||||
android:id="@+id/conversation_info_participant_avatar"
|
android:id="@+id/participant_online_state"
|
||||||
android:layout_width="@dimen/avatar_size"
|
android:layout_width="16dp"
|
||||||
android:layout_height="@dimen/avatar_size"
|
android:layout_height="16dp"
|
||||||
app:roundAsCircle="true" />
|
android:layout_marginEnd="-4dp"
|
||||||
|
android:layout_marginBottom="-4dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:src="@drawable/online_status"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/conversation_info_participant_avatar"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/conversation_info_participant_avatar" />
|
||||||
|
|
||||||
<com.vanniktech.emoji.EmojiEditText
|
<androidx.emoji.widget.EmojiTextView
|
||||||
android:id="@+id/participant_status_emoji"
|
android:id="@+id/name_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="bottom|end"
|
|
||||||
android:background="@color/transparent"
|
|
||||||
android:cursorVisible="false"
|
|
||||||
android:gravity="center"
|
|
||||||
android:text="@string/default_emoji"
|
|
||||||
android:textSize="16sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/participant_online_state"
|
|
||||||
android:layout_width="16dp"
|
|
||||||
android:layout_height="16dp"
|
|
||||||
android:layout_gravity="bottom|end"
|
|
||||||
android:contentDescription="@null"
|
|
||||||
android:src="@drawable/online_status"/>
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/linear_layout"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerInParent="true"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginStart="@dimen/margin_between_elements"
|
android:layout_marginTop="4dp"
|
||||||
android:layout_marginEnd="@dimen/margin_between_elements"
|
android:ellipsize="middle"
|
||||||
android:layout_toEndOf="@id/frame_layout"
|
android:singleLine="true"
|
||||||
android:orientation="vertical">
|
android:textAlignment="viewStart"
|
||||||
|
android:textAppearance="@style/ListItem"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/conversation_info_participant_avatar"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/conversation_info_participant_avatar"
|
||||||
|
tools:text="username" />
|
||||||
|
|
||||||
<androidx.emoji.widget.EmojiTextView
|
<androidx.emoji.widget.EmojiTextView
|
||||||
android:id="@+id/name_text"
|
android:id="@+id/secondary_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="middle"
|
android:ellipsize="middle"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAlignment="viewStart"
|
android:textAlignment="viewStart"
|
||||||
android:textAppearance="@style/ListItem"
|
android:textColor="@color/textColorMaxContrast"
|
||||||
tools:text="Call item text" />
|
app:layout_constraintStart_toStartOf="@+id/name_text"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/name_text"
|
||||||
|
tools:text="\@userid" />
|
||||||
|
|
||||||
<androidx.emoji.widget.EmojiTextView
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
android:id="@+id/secondary_text"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:ellipsize="middle"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:textAlignment="viewStart"
|
|
||||||
android:textColor="@color/textColorMaxContrast"
|
|
||||||
tools:text="A week ago" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user