Mostly interface fixes

This commit is contained in:
Sylvain Berfini 2012-09-26 09:20:34 +02:00
parent 0680f46f87
commit 70ea32b174
11 changed files with 18 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

View file

@ -47,6 +47,7 @@
<TextView
android:id="@+id/sipUri"
android:lines="1"
android:layout_centerVertical="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"

View file

@ -8,6 +8,7 @@
<TextView
android:id="@+id/numeroOrAddress"
android:lines="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"

View file

@ -8,7 +8,17 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:orientation="horizontal"
android:background="@drawable/toolsbar_background">
<TextView
android:visibility="invisible"
android:paddingTop="20dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
android:layout_weight="1"/>
<TextView
android:contentDescription="@string/content_description_all_contacts"

View file

@ -67,7 +67,7 @@
android:background="@drawable/setup_field_background" />
<RelativeLayout
android:paddingTop="10dp"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View file

@ -54,7 +54,7 @@
android:background="@drawable/setup_field_background" />
<RelativeLayout
android:paddingTop="10dp"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View file

@ -128,7 +128,7 @@
</RelativeLayout>
<RelativeLayout
android:paddingTop="10dp"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View file

@ -65,11 +65,11 @@ public final class LinphoneUtils {
private static boolean preventVolumeBarToDisplay = false;
public static boolean isSipAddress(String numberOrAddress) {
return numberOrAddress != null && numberOrAddress.matches("^(sip:)?[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\\.-][a-z0-9]+)*)+\\.[a-z]{2,}$");
return numberOrAddress != null && numberOrAddress.matches("^(sip:)?(\\+)?[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\\.-][a-z0-9]+)*)+\\.[a-z]{2,}$");
}
public static boolean isStrictSipAddress(String numberOrAddress) {
return numberOrAddress != null && numberOrAddress.matches("^sip:[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\\.-][a-z0-9]+)*)+\\.[a-z]{2,}$");
return numberOrAddress != null && numberOrAddress.matches("^sip:(\\+)?[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\\.-][a-z0-9]+)*)+\\.[a-z]{2,}$");
}
public static String getUsernameFromAddress(String address) {