Added INVITE button, listener to do
This commit is contained in:
parent
70f221c807
commit
f589b33c56
4 changed files with 32 additions and 4 deletions
|
@ -21,7 +21,6 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/address_label"
|
android:id="@+id/address_label"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
|
@ -31,7 +30,6 @@
|
||||||
android:textAllCaps="true"
|
android:textAllCaps="true"
|
||||||
android:textColor="@color/colorE" />
|
android:textColor="@color/colorE" />
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/friendLinphone"
|
android:id="@+id/friendLinphone"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
@ -43,6 +41,18 @@
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:src="@drawable/linphone_user" />
|
android:src="@drawable/linphone_user" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/inviteFriend"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginRight="10dp"
|
||||||
|
android:textAppearance="@style/font33"
|
||||||
|
android:text="@string/invite_friend" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -50,11 +60,10 @@
|
||||||
style="@style/font6"
|
style="@style/font6"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="marquee"
|
android:singleLine="true"
|
||||||
android:marqueeRepeatLimit="marquee_forever"
|
android:marqueeRepeatLimit="marquee_forever"
|
||||||
android:scrollHorizontally="true"
|
android:scrollHorizontally="true"
|
||||||
android:fadingEdge="horizontal"
|
android:fadingEdge="horizontal"
|
||||||
android:maxLines="1"
|
|
||||||
android:gravity="center" />
|
android:gravity="center" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
|
@ -166,6 +166,7 @@
|
||||||
<string name="contact_first_name">First name</string>
|
<string name="contact_first_name">First name</string>
|
||||||
<string name="contact_last_name">Last name</string>
|
<string name="contact_last_name">Last name</string>
|
||||||
<string name="contact_organization">Organization</string>
|
<string name="contact_organization">Organization</string>
|
||||||
|
<string name="invite_friend">Invite</string>
|
||||||
|
|
||||||
<!-- Chat -->
|
<!-- Chat -->
|
||||||
<string name="no_chat_history">No conversations</string>
|
<string name="no_chat_history">No conversations</string>
|
||||||
|
|
|
@ -167,4 +167,11 @@
|
||||||
<item name="android:textStyle">bold</item>
|
<item name="android:textStyle">bold</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="font33" parent="@android:style/TextAppearance.Medium">
|
||||||
|
<item name="android:textColor">@color/colorA</item>
|
||||||
|
<item name="android:textSize">16.7sp</item>
|
||||||
|
<item name="android:fontFamily">sans-serif</item>
|
||||||
|
<item name="android:lineSpacingExtra">16.7sp</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -219,6 +219,17 @@ public class ContactDetailsFragment extends Fragment implements OnClickListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
v.findViewById(R.id.inviteFriend).setVisibility(View.GONE);
|
||||||
|
if (!noa.isSIPAddress() && v.findViewById(R.id.friendLinphone).getVisibility() == View.GONE) {
|
||||||
|
v.findViewById(R.id.inviteFriend).setVisibility(View.VISIBLE);
|
||||||
|
v.findViewById(R.id.inviteFriend).setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
String contactAddress = contact.getPresenceModelForUriOrTel(noa.getValue());
|
String contactAddress = contact.getPresenceModelForUriOrTel(noa.getValue());
|
||||||
if (!displayChatAddressOnly) {
|
if (!displayChatAddressOnly) {
|
||||||
v.findViewById(R.id.contact_call).setOnClickListener(dialListener);
|
v.findViewById(R.id.contact_call).setOnClickListener(dialListener);
|
||||||
|
|
Loading…
Reference in a new issue