Commit 25396cad authored by Grigory Fedorov's avatar Grigory Fedorov

chat_viewer_action_bar remaned to contact_title - same layout for ChatViewer action bar.

parent f7329d29
...@@ -153,7 +153,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener ...@@ -153,7 +153,7 @@ public class ChatViewer extends ManagedActivity implements OnChatChangedListener
actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowCustomEnabled(true); actionBar.setDisplayShowCustomEnabled(true);
actionBarView = LayoutInflater.from(this).inflate(R.layout.chat_viewer_action_bar, null); actionBarView = LayoutInflater.from(this).inflate(R.layout.contact_title, null);
actionBarView.setOnClickListener(new View.OnClickListener() { actionBarView.setOnClickListener(new View.OnClickListener() {
@Override @Override
......
<?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>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013, Redsolution LTD. All rights reserved. <LinearLayout
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
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title" android:id="@+id/title"
android:layout_width="match_parent" 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 <LinearLayout
android:id="@+id/title_color" android:id="@+id/name_holder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
> >
<LinearLayout <TextView
android:id="@+id/name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="0dp"
android:background="@drawable/chat_border" android:gravity="center_vertical"
android:orientation="vertical" android:singleLine="true"
> android:layout_weight="1"
<include layout="@layout/contact_title_avatar" /> android:text="name"
</LinearLayout> android:textStyle="bold" />
<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"
/>
<LinearLayout <LinearLayout
android:id="@+id/name_holder" android:layout_width="wrap_content"
android:layout_width="match_parent" android:layout_height="0dp"
android:layout_height="match_parent" android:orientation="horizontal"
android:orientation="vertical"
android:layout_weight="1" android:layout_weight="1"
android:layout_gravity="center_vertical"
android:paddingLeft="6dip"
> >
<TextView
android:id="@+id/name" <ImageView
android:layout_width="match_parent" 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_height="wrap_content"
android:layout_weight="1"
android:gravity="bottom"
android:singleLine="true"
android:ellipsize="marquee"
android:textStyle="bold"
android:text="name"
/> />
<TextView <TextView
android:id="@+id/status_text" android:id="@+id/status_text"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:gravity="center_vertical"
android:gravity="top"
android:singleLine="true" android:singleLine="true"
android:ellipsize="marquee"
android:text="status" android:text="status"
/> />
</LinearLayout> </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> </LinearLayout>
<ImageView </LinearLayout>
android:id="@+id/shadow"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/shadow"
/>
</RelativeLayout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment