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
c4b026d3
Commit
c4b026d3
authored
Apr 07, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bottom 1px separators for account groups and usual contact groups.
parent
17bc4108
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
90 deletions
+113
-90
account_group_item.xml
app/src/main/res/layout/account_group_item.xml
+102
-87
base_contact_item.xml
app/src/main/res/layout/base_contact_item.xml
+1
-1
base_group_item.xml
app/src/main/res/layout/base_group_item.xml
+10
-2
No files found.
app/src/main/res/layout/account_group_item.xml
View file @
c4b026d3
...
...
@@ -12,121 +12,136 @@
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
<RelativeLayout
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_200"
android:elevation=
"3dp"
>
<ImageView
android:id=
"@+id/account_color_indicator"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
>
android:layout_width=
"4dp"
android:layout_height=
"@dimen/avatar_size_toolbar"
android:layout_marginLeft=
"2dp"
android:layout_marginStart=
"2dp"
<ImageView
android:id=
"@+id/account_color_indicator"
android:layout_marginRight=
"2
dp"
android:layout_marginEnd=
"2dp
"
android:src=
"@color/red_500
"
android:visibility=
"invisible
"
android:layout_width=
"4
dp"
android:layout_height=
"@dimen/avatar_size_toolbar
"
android:layout_marginLeft=
"2dp
"
android:layout_marginStart=
"2dp
"
/>
android:layout_marginRight=
"2dp"
android:layout_marginEnd=
"2dp"
android:src=
"@color/red_500"
android:visibility=
"invisible"
<ImageView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/avatar"
android:layout_width=
"@dimen/avatar_size_toolbar"
android:layout_height=
"@dimen/avatar_size_toolbar"
android:src=
"@drawable/ic_avatar_1"
/>
/>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
android:paddingLeft=
"@dimen/active_chat_padding_left"
>
<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"
android:textColor=
"?android:attr/textColorPrimary"
android:textAppearance=
"?android:attr/textAppearanceSmall"
android:textStyle=
"bold"
/>
<ImageView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/avatar"
android:layout_width=
"@dimen/avatar_size_toolbar"
android:layout_height=
"@dimen/avatar_size_toolbar"
android:src=
"@drawable/ic_avatar_1"
/>
<LinearLayout
android:layout_width=
"
match_parent
"
android:layout_height=
"
wrap_cont
ent"
android:
orientation=
"horizontal
"
android:layout_width=
"
0dp
"
android:layout_height=
"
match_par
ent"
android:
layout_weight=
"1
"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
android:paddingLeft=
"@dimen/active_chat_padding_left"
>
<TextView
android:id=
"@+id/account_status"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:id=
"@+id/account_jid"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"Online"
/>
<FrameLayout
android:layout_width=
"14dp"
android:layout_height=
"14dp"
android:layout_gravity=
"center_vertical"
android:text=
"name@example.com"
android:textColor=
"?android:attr/textColorPrimary"
android:textAppearance=
"?android:attr/textAppearanceSmall"
android:textStyle=
"bold"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
>
<ImageView
android:id=
"@+id/offline_contacts_indicator"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/ic_show_offline"
android:alpha=
"0.2"
<TextView
android:id=
"@+id/account_status"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"Online"
/>
</FrameLayout>
<TextView
android:id=
"@+id/contact_counter"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:textColor=
"#32000000"
android:textSize=
"12sp"
android:text=
"3/9"
android:paddingLeft=
"4dp"
android:paddingRight=
"6dp"
/>
<FrameLayout
android:layout_width=
"14dp"
android:layout_height=
"14dp"
android:layout_gravity=
"center_vertical"
>
<ImageView
android:id=
"@+id/offline_contacts_indicator"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/ic_show_offline"
android:alpha=
"0.2"
/>
</FrameLayout>
<TextView
android:id=
"@+id/contact_counter"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:textColor=
"#32000000"
android:textSize=
"12sp"
android:text=
"3/9"
android:paddingLeft=
"4dp"
android:paddingRight=
"6dp"
/>
</LinearLayout>
</LinearLayout>
<View
android:layout_width=
"1px"
android:layout_height=
"26dp"
android:background=
"@color/black"
android:alpha=
"0.1"
android:layout_gravity=
"center_vertical"
/>
<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>
<View
android:layout_width=
"1px"
android:layout_height=
"26dp"
android:background=
"@color/black"
android:alpha=
"0.1"
android:layout_gravity=
"center_vertical"
/>
<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"
android:layout_width=
"match_parent"
android:layout_height=
"1px"
android:background=
"@color/grey_500"
android:layout_alignParentBottom=
"true"
/>
</LinearLayout>
\ No newline at end of file
</RelativeLayout>
\ No newline at end of file
app/src/main/res/layout/base_contact_item.xml
View file @
c4b026d3
...
...
@@ -113,7 +113,7 @@
</LinearLayout>
<View
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"1px"
android:background=
"@color/grey_400"
android:layout_alignParentBottom=
"true"
...
...
app/src/main/res/layout/base_group_item.xml
View file @
c4b026d3
...
...
@@ -16,8 +16,6 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/expander_height"
android:paddingRight=
"@dimen/active_chat_padding_right"
android:paddingEnd=
"@dimen/active_chat_padding_right"
android:elevation=
"2dp"
>
...
...
@@ -41,6 +39,9 @@
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:alpha=
"0.2"
android:paddingRight=
"@dimen/active_chat_padding_right"
android:paddingEnd=
"@dimen/active_chat_padding_right"
/>
<TextView
...
...
@@ -57,4 +58,11 @@
android:layout_toStartOf=
"@id/group_offline_indicator"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1px"
android:background=
"@color/grey_400"
android:layout_alignParentBottom=
"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