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
25396cad
Commit
25396cad
authored
Feb 18, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chat_viewer_action_bar remaned to contact_title - same layout for ChatViewer action bar.
parent
f7329d29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
126 deletions
+37
-126
ChatViewer.java
app/src/main/java/com/xabber/android/ui/ChatViewer.java
+1
-1
chat_viewer_action_bar.xml
app/src/main/res/layout/chat_viewer_action_bar.xml
+0
-59
contact_title.xml
app/src/main/res/layout/contact_title.xml
+36
-66
No files found.
app/src/main/java/com/xabber/android/ui/ChatViewer.java
View file @
25396cad
...
...
@@ -153,7 +153,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
actionBar
.
setDisplayShowCustomEnabled
(
true
);
actionBarView
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
c
hat_viewer_action_bar
,
null
);
actionBarView
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
c
ontact_title
,
null
);
actionBarView
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
app/src/main/res/layout/chat_viewer_action_bar.xml
deleted
100644 → 0
View file @
f7329d29
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/title"
android:layout_width=
"match_parent"
android:layout_height=
"?android:attr/actionBarSize"
android:orientation=
"horizontal"
>
<include
layout=
"@layout/contact_title_avatar"
/>
<LinearLayout
android:id=
"@+id/name_holder"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:layout_gravity=
"center_vertical"
>
<TextView
android:id=
"@+id/name"
android:layout_width=
"wrap_content"
android:layout_height=
"0dp"
android:gravity=
"center_vertical"
android:singleLine=
"true"
android:layout_weight=
"1"
android:text=
"name"
android:textStyle=
"bold"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"0dp"
android:orientation=
"horizontal"
android:layout_weight=
"1"
>
<ImageView
android:id=
"@+id/security"
android:src=
"@drawable/ic_security"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:visibility=
"gone"
/>
<ImageView
android:id=
"@+id/status_mode"
android:src=
"@drawable/ic_status"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<TextView
android:id=
"@+id/status_text"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:gravity=
"center_vertical"
android:singleLine=
"true"
android:text=
"status"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
app/src/main/res/layout/contact_title.xml
View file @
25396cad
<?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/.
-->
<RelativeLayout
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/title"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/title_height"
android:layout_height=
"?android:attr/actionBarSize"
android:orientation=
"horizontal"
>
<include
layout=
"@layout/contact_title_avatar"
/>
<LinearLayout
android:id=
"@+id/
title_colo
r"
android:id=
"@+id/
name_holde
r"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:layout_gravity=
"center_vertical"
>
<LinearLayout
<TextView
android:id=
"@+id/name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/chat_border"
android:orientation=
"vertical"
>
<include
layout=
"@layout/contact_title_avatar"
/>
</LinearLayout>
<ImageView
android:id=
"@+id/security"
android:src=
"@drawable/ic_security"
android:paddingLeft=
"6dip"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:visibility=
"gone"
/>
android:layout_height=
"0dp"
android:gravity=
"center_vertical"
android:singleLine=
"true"
android:layout_weight=
"1"
android:text=
"name"
android:textStyle=
"bold"
/>
<LinearLayout
android:id=
"@+id/name_holder"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:layout_width=
"wrap_content"
android:layout_height=
"0dp"
android:orientation=
"horizontal"
android:layout_weight=
"1"
android:layout_gravity=
"center_vertical"
android:paddingLeft=
"6dip"
>
<TextView
android:id=
"@+id/name"
android:layout_width=
"match_parent"
<ImageView
android:id=
"@+id/security"
android:src=
"@drawable/ic_security"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:visibility=
"gone"
/>
<ImageView
android:id=
"@+id/status_mode"
android:src=
"@drawable/ic_status"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"bottom"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:textStyle=
"bold"
android:text=
"name"
/>
<TextView
android:id=
"@+id/status_text"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"top"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:gravity=
"center_vertical"
android:singleLine=
"true"
android:ellipsize=
"marquee"
android:text=
"status"
/>
</LinearLayout>
<ImageView
android:id=
"@+id/status_mode"
android:src=
"@drawable/ic_status"
android:paddingLeft=
"@dimen/active_chat_padding_right"
android:paddingRight=
"@dimen/active_chat_padding_right"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
/>
</LinearLayout>
<ImageView
android:id=
"@+id/shadow"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/shadow"
/>
</RelativeLayout>
</LinearLayout>
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