diff --git a/build.xml b/build.xml
index a6e620d43..49bf85716 100644
--- a/build.xml
+++ b/build.xml
@@ -638,28 +638,18 @@
----------
Handling Resources...
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -866,8 +856,10 @@
+
+
-
+
diff --git a/res/layout-xlarge/incall_layout.xml b/res/layout-xlarge/incall_layout.xml
index 5c69a2997..c5f84add3 100644
--- a/res/layout-xlarge/incall_layout.xml
+++ b/res/layout-xlarge/incall_layout.xml
@@ -1,7 +1,7 @@
diff --git a/res/layout-xlarge/videocall.xml b/res/layout-xlarge/videocall.xml
index b5b8f178f..97bbaa806 100755
--- a/res/layout-xlarge/videocall.xml
+++ b/res/layout-xlarge/videocall.xml
@@ -1,7 +1,7 @@
diff --git a/res/layout/conference_details_layout.xml b/res/layout/conference_details_layout.xml
index 044b7cb78..231719e79 100644
--- a/res/layout/conference_details_layout.xml
+++ b/res/layout/conference_details_layout.xml
@@ -1,7 +1,7 @@
diff --git a/res/layout/incall_layout.xml b/res/layout/incall_layout.xml
index bb96cc862..a5bfa8ba9 100644
--- a/res/layout/incall_layout.xml
+++ b/res/layout/incall_layout.xml
@@ -1,7 +1,7 @@
diff --git a/src/org/linphone/ui/ToggleImageButton.java b/src/org/linphone/ui/ToggleImageButton.java
index 45cbc0b8e..03899abf8 100644
--- a/src/org/linphone/ui/ToggleImageButton.java
+++ b/src/org/linphone/ui/ToggleImageButton.java
@@ -19,7 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
package org.linphone.ui;
+import org.linphone.R;
+
import android.content.Context;
+import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
@@ -37,7 +40,6 @@ import android.widget.ImageButton;
*
*/
public class ToggleImageButton extends ImageButton implements Checkable, OnClickListener {
- private static final String ns = "http://schemas.android.com/apk/res/org.linphone";
private boolean checked;
private Drawable stateChecked;
private Drawable stateUnChecked;
@@ -46,9 +48,11 @@ public class ToggleImageButton extends ImageButton implements Checkable, OnClick
public ToggleImageButton(Context context, AttributeSet attrs) {
super(context, attrs);
- stateChecked = getResources().getDrawable(attrs.getAttributeResourceValue(ns, "checked", -1));
- stateUnChecked = getResources().getDrawable(attrs.getAttributeResourceValue(ns, "unchecked", -1));
- drawablesForBackground = attrs.getAttributeBooleanValue(ns, "bgdrawables", false);
+
+ TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.ToggleImageButton);
+ stateChecked = getResources().getDrawable(array.getResourceId(R.styleable.ToggleImageButton_checked, -1));
+ stateUnChecked = getResources().getDrawable(array.getResourceId(R.styleable.ToggleImageButton_unchecked, -1));
+ drawablesForBackground = array.getBoolean(R.styleable.ToggleImageButton_bgdrawables, false);
setBackgroundColor(Color.TRANSPARENT);
setOnClickListener(this);