Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-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
xabber-android
Commits
53daa1f3
Commit
53daa1f3
authored
Jun 17, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #486 contact list "you" moved to the right for RTL locales.
parent
6608f5ae
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
117 additions
and
58 deletions
+117
-58
contact_list_item_second_line.xml
...c/main/res/layout-ldrtl/contact_list_item_second_line.xml
+58
-0
contact_list_item.xml
app/src/main/res/layout/contact_list_item.xml
+1
-58
contact_list_item_second_line.xml
app/src/main/res/layout/contact_list_item_second_line.xml
+58
-0
No files found.
app/src/main/res/layout-ldrtl/contact_list_item_second_line.xml
0 → 100644
View file @
53daa1f3
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
tools:showIn=
"@layout/contact_list_item"
>
<TextView
android:id=
"@+id/second_line_message"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"second line message long text"
android:layout_toLeftOf=
"@id/outgoing_message_indicator"
/>
<TextView
android:id=
"@+id/outgoing_message_indicator"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"@string/sender_is_you"
android:visibility=
"visible"
android:textColor=
"@color/green_500"
android:layout_toLeftOf=
"@id/small_right_icon"
/>
<ImageView
android:id=
"@+id/small_right_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_show_offline_small"
android:alpha=
"0.2"
android:layout_toLeftOf=
"@id/small_right_text"
android:layout_alignBottom=
"@id/second_line_message"
android:layout_marginBottom=
"2dp"
/>
<TextView
android:id=
"@+id/small_right_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:textColor=
"#32000000"
android:textSize=
"10sp"
android:layout_gravity=
"bottom"
android:text=
"right text"
android:paddingLeft=
"2dp"
android:paddingRight=
"6dp"
android:layout_alignParentRight=
"true"
android:layout_alignBaseline=
"@id/second_line_message"
/>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/layout/contact_list_item.xml
View file @
53daa1f3
...
...
@@ -68,64 +68,7 @@
android:textStyle=
"bold"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
>
<TextView
android:id=
"@+id/outgoing_message_indicator"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"@string/sender_is_you"
android:visibility=
"visible"
android:textColor=
"@color/green_500"
/>
<TextView
android:id=
"@+id/second_line_message"
android:layout_width=
"match_parent"
android:layout_weight=
"1"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"second line message long text"
android:layout_toRightOf=
"@+id/outgoing_message_indicator"
android:layout_toLeftOf=
"@+id/small_right_icon"
/>
<ImageView
android:id=
"@+id/small_right_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_show_offline_small"
android:alpha=
"0.2"
android:layout_toLeftOf=
"@+id/small_right_text"
android:layout_alignBottom=
"@+id/second_line_message"
android:layout_marginBottom=
"2dp"
/>
<TextView
android:id=
"@+id/small_right_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:textColor=
"#32000000"
android:textSize=
"10sp"
android:layout_gravity=
"bottom"
android:text=
"right text"
android:paddingLeft=
"2dp"
android:paddingRight=
"6dp"
android:layout_alignParentRight=
"true"
android:layout_alignBaseline=
"@+id/second_line_message"
/>
</RelativeLayout>
<include
layout=
"@layout/contact_list_item_second_line"
/>
</LinearLayout>
...
...
app/src/main/res/layout/contact_list_item_second_line.xml
0 → 100644
View file @
53daa1f3
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
tools:showIn=
"@layout/contact_list_item"
>
<TextView
android:id=
"@+id/outgoing_message_indicator"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"@string/sender_is_you"
android:visibility=
"visible"
android:textColor=
"@color/green_500"
/>
<TextView
android:id=
"@+id/second_line_message"
android:layout_width=
"match_parent"
android:layout_weight=
"1"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"second line message long text"
android:layout_toRightOf=
"@+id/outgoing_message_indicator"
android:layout_toLeftOf=
"@+id/small_right_icon"
/>
<ImageView
android:id=
"@+id/small_right_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_show_offline_small"
android:alpha=
"0.2"
android:layout_toLeftOf=
"@+id/small_right_text"
android:layout_alignBottom=
"@+id/second_line_message"
android:layout_marginBottom=
"2dp"
/>
<TextView
android:id=
"@+id/small_right_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:textColor=
"#32000000"
android:textSize=
"10sp"
android:layout_gravity=
"bottom"
android:text=
"right text"
android:paddingLeft=
"2dp"
android:paddingRight=
"6dp"
android:layout_alignParentRight=
"true"
android:layout_alignBaseline=
"@+id/second_line_message"
/>
</RelativeLayout>
\ 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