Updated echo canceller view

This commit is contained in:
Sylvain Berfini 2012-10-17 15:22:15 +02:00
parent 6e65574e16
commit 61e8610606
3 changed files with 19 additions and 12 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" > android:orientation="vertical" >
@ -8,20 +8,25 @@
android:contentDescription="@string/content_description_welcome" android:contentDescription="@string/content_description_welcome"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="0.3" android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_centerInParent="true"
android:src="@drawable/logo"/> android:src="@drawable/logo"/>
<ProgressBar <ProgressBar
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_gravity="center_horizontal|bottom" /> android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="0.7" android:textColor="@android:color/black"
android:gravity="center_horizontal|top" android:textStyle="bold"
android:text="@string/setup_ec_calibration" android:textSize="20dp"
android:textColor="@android:color/white" /> android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="@string/setup_ec_calibration" />
</FrameLayout> </RelativeLayout>

View file

@ -336,4 +336,6 @@
<string name="linphone_friend_new_request_title">Requête d\'ami</string> <string name="linphone_friend_new_request_title">Requête d\'ami</string>
<string name="linphone_friend_new_request_desc">voudrait être partager son status avec vous et voir le votre.</string> <string name="linphone_friend_new_request_desc">voudrait être partager son status avec vous et voir le votre.</string>
<string name="setup_ec_calibration">Calibration de l\'annulateur d\'écho en cours</string>
</resources> </resources>

View file

@ -151,8 +151,8 @@ public class SetupActivity extends FragmentActivity implements OnClickListener {
EchoCancellerCalibrationFragment fragment = new EchoCancellerCalibrationFragment(); EchoCancellerCalibrationFragment fragment = new EchoCancellerCalibrationFragment();
changeFragment(fragment); changeFragment(fragment);
currentFragment = SetupFragments.ECHO_CANCELLER_CALIBRATION; currentFragment = SetupFragments.ECHO_CANCELLER_CALIBRATION;
back.setVisibility(View.GONE); back.setVisibility(View.VISIBLE);
next.setVisibility(View.VISIBLE); next.setVisibility(View.GONE);
next.setEnabled(false); next.setEnabled(false);
cancel.setEnabled(false); cancel.setEnabled(false);
} else { } else {