Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
96411414
Commit
96411414
authored
Apr 19, 2018
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Layout improvements.
parent
e79d4f0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
31 deletions
+34
-31
item_chat.xml
app/src/main/res/layout/item_chat.xml
+34
-31
No files found.
app/src/main/res/layout/item_chat.xml
View file @
96411414
...
@@ -14,58 +14,63 @@
...
@@ -14,58 +14,63 @@
android:id=
"@+id/image_avatar"
android:id=
"@+id/image_avatar"
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginTop=
"6dp"
android:layout_marginTop=
"5dp"
app:layout_constraintEnd_toStartOf=
"@+id/top_container"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:roundedCornerRadius=
"3dp"
/>
app:roundedCornerRadius=
"3dp"
/>
<ImageView
<LinearLayout
android:id=
"@+id/image_chat_icon"
android:id=
"@+id/top_container"
android:layout_width=
"12dp"
android:layout_height=
"12dp"
android:layout_marginStart=
"16dp"
app:layout_constraintStart_toEndOf=
"@id/image_avatar"
app:layout_constraintTop_toTopOf=
"@+id/image_avatar"
tools:src=
"@drawable/ic_lock_12_dp"
/>
<TextView
android:id=
"@+id/text_chat_name"
style=
"@style/ChatRoom.Name.TextView"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"5dp"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"8dp"
android:orientation=
"horizontal"
android:textDirection=
"locale"
app:layout_constraintBottom_toBottomOf=
"@+id/image_chat_icon"
app:layout_constraintEnd_toStartOf=
"@+id/text_last_message_date_time"
app:layout_constraintEnd_toStartOf=
"@+id/text_last_message_date_time"
app:layout_constraintStart_toEndOf=
"@id/image_chat_icon"
app:layout_constraintStart_toEndOf=
"@+id/image_avatar"
>
app:layout_constraintTop_toTopOf=
"@+id/image_chat_icon"
tools:text=
"A very very very very big chat room name"
/>
<ImageView
android:id=
"@+id/image_chat_icon"
android:layout_width=
"12dp"
android:layout_height=
"12dp"
android:layout_gravity=
"center"
tools:src=
"@drawable/ic_lock_12_dp"
/>
<TextView
android:id=
"@+id/text_chat_name"
style=
"@style/ChatRoom.Name.TextView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"5dp"
android:layout_marginStart=
"8dp"
android:textDirection=
"locale"
tools:text=
"A very very very very big chat room name"
/>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/text_last_message_date_time"
android:id=
"@+id/text_last_message_date_time"
style=
"@style/Timestamp.TextView"
style=
"@style/Timestamp.TextView"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"5dp"
android:layout_marginStart=
"8dp"
android:layout_marginStart=
"5dp"
app:layout_constraintBottom_toBottomOf=
"@+id/top_container"
app:layout_constraintBottom_toBottomOf=
"@+id/image_chat_icon"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@+id/image_chat_icon"
app:layout_constraintStart_toEndOf=
"@+id/top_container"
app:layout_constraintTop_toTopOf=
"@+id/top_container"
tools:text=
"11:45 AM"
/>
tools:text=
"11:45 AM"
/>
<TextView
<TextView
android:id=
"@+id/text_last_message"
android:id=
"@+id/text_last_message"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"
5
dp"
android:layout_marginEnd=
"
8
dp"
android:layout_marginTop=
"2dp"
android:layout_marginTop=
"2dp"
android:ellipsize=
"end"
android:ellipsize=
"end"
android:maxLines=
"2"
android:maxLines=
"2"
android:textDirection=
"locale"
android:textDirection=
"locale"
app:layout_constraintEnd_toStartOf=
"@id/layout_unread_messages_badge"
app:layout_constraintEnd_toStartOf=
"@
+
id/layout_unread_messages_badge"
app:layout_constraintStart_toStartOf=
"@
id/image_chat_icon
"
app:layout_constraintStart_toStartOf=
"@
+id/top_container
"
app:layout_constraintTop_toBottomOf=
"@
id/text_chat_name
"
app:layout_constraintTop_toBottomOf=
"@
+id/top_container
"
tools:text=
"Filipe de Lima Brito: Type something that is very big and need at least to lines, or maybe even more"
/>
tools:text=
"Filipe de Lima Brito: Type something that is very big and need at least to lines, or maybe even more"
/>
<include
<include
...
@@ -73,9 +78,7 @@
...
@@ -73,9 +78,7 @@
layout=
"@layout/unread_messages_badge"
layout=
"@layout/unread_messages_badge"
android:layout_width=
"18dp"
android:layout_width=
"18dp"
android:layout_height=
"18dp"
android:layout_height=
"18dp"
android:layout_marginEnd=
"5dp"
android:layout_marginStart=
"5dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@id/text_last_message"
/>
app:layout_constraintTop_toTopOf=
"@
+
id/text_last_message"
/>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment