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
953973da
Commit
953973da
authored
Apr 20, 2018
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements on the UI.
parent
ecb2a54c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
32 deletions
+20
-32
item_chat.xml
app/src/main/res/layout/item_chat.xml
+20
-32
No files found.
app/src/main/res/layout/item_chat.xml
View file @
953973da
...
@@ -15,39 +15,28 @@
...
@@ -15,39 +15,28 @@
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginTop=
"5dp"
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"
/>
<
LinearLayout
<
ImageView
android:id=
"@+id/
top_container
"
android:id=
"@+id/
image_chat_icon
"
android:layout_width=
"
0
dp"
android:layout_width=
"
12
dp"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
12dp
"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
a
ndroid:orientation=
"horizontal
"
a
pp:layout_constraintStart_toEndOf=
"@+id/image_avatar
"
app:layout_constraint
End_toStartOf=
"@+id/text_last_message_date_time
"
app:layout_constraint
Top_toTopOf=
"@+id/image_avatar
"
app:layout_constraintStart_toEndOf=
"@+id/image_avatar"
>
tools:src=
"@drawable/ic_hashtag_12dp"
/
>
<ImageView
<TextView
android:id=
"@+id/image_chat_icon"
android:id=
"@+id/text_chat_name"
android:layout_width=
"wrap_content"
style=
"@style/ChatRoom.Name.TextView"
android:layout_height=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_height=
"wrap_content"
tools:src=
"@drawable/ic_lock_12_dp"
/>
android:layout_marginStart=
"8dp"
android:textDirection=
"locale"
<TextView
app:layout_constraintStart_toEndOf=
"@+id/image_chat_icon"
android:id=
"@+id/text_chat_name"
tools:text=
"general"
/>
style=
"@style/ChatRoom.Name.TextView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginEnd=
"5dp"
android:layout_marginStart=
"8dp"
android:ellipsize=
"end"
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"
...
@@ -55,10 +44,9 @@
...
@@ -55,10 +44,9 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:layout_marginStart=
"8dp"
app:layout_constraintBottom_toBottomOf=
"@+id/t
op_container
"
app:layout_constraintBottom_toBottomOf=
"@+id/t
ext_chat_name
"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/top_container"
app:layout_constraintTop_toTopOf=
"@+id/text_chat_name"
app:layout_constraintTop_toTopOf=
"@+id/top_container"
tools:text=
"11:45 AM"
/>
tools:text=
"11:45 AM"
/>
<TextView
<TextView
...
@@ -71,8 +59,8 @@
...
@@ -71,8 +59,8 @@
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/
top_container
"
app:layout_constraintStart_toStartOf=
"@+id/
image_chat_icon
"
app:layout_constraintTop_toBottomOf=
"@+id/t
op_container
"
app:layout_constraintTop_toBottomOf=
"@+id/t
ext_chat_name
"
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
...
...
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