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
b8d8ee9d
Commit
b8d8ee9d
authored
Apr 02, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ContactList: account groups new design: contact like height, status.
parent
e64a2951
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
181 additions
and
64 deletions
+181
-64
GroupedContactAdapter.java
.../com/xabber/android/ui/adapter/GroupedContactAdapter.java
+115
-54
account_group_item.xml
app/src/main/res/layout/account_group_item.xml
+66
-0
base_group_item.xml
app/src/main/res/layout/base_group_item.xml
+0
-10
No files found.
app/src/main/java/com/xabber/android/ui/adapter/GroupedContactAdapter.java
View file @
b8d8ee9d
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/account_group_item.xml
0 → 100644
View file @
b8d8ee9d
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013, Redsolution LTD. All rights reserved.
This file is part of Xabber project; you can redistribute it and/or
modify it under the terms of the GNU General Public License, Version 3.
Xabber is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License,
along with this program. If not, see http://www.gnu.org/licenses/.
-->
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/contact_list_item_height"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
android:background=
"@color/green_500"
>
<ImageView
android:id=
"@+id/indicator"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/expander_indicator_dark"
/>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/account_jid"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"name@example.com (0/0)"
/>
<TextView
android:id=
"@+id/account_status"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"Online"
/>
</LinearLayout>
<ImageView
android:id=
"@+id/account_status_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_status"
android:padding=
"16dp"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/base_group_item.xml
View file @
b8d8ee9d
...
...
@@ -54,14 +54,4 @@
android:layout_toStartOf=
"@id/group_offline_indicator"
/>
<ImageView
android:id=
"@+id/account_status"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_status"
android:layout_alignParentEnd=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
/>
</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