fix wrong icon for contact tab

This commit is contained in:
Jehan Monnier 2010-05-03 18:16:36 +02:00
parent 04b8dd948a
commit 9dc5bab8e6
2 changed files with 5 additions and 7 deletions

View file

@ -28,19 +28,17 @@
android:layout_height="fill_parent" android:layout_weight="1"> android:layout_height="fill_parent" android:layout_weight="1">
<TableRow android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/IncallControlRow"> <TableRow android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/IncallControlRow">
<ToggleButton android:id="@+id/mic_mute_button" android:textOn="" android:textOff="" android:layout_height="fill_parent" android:layout_width="fill_parent" android:drawableTop="@drawable/mic_active" android:checked="true" android:layout_weight="1" android:background="@drawable/clavier_bg_ori"></ToggleButton> <ToggleButton android:id="@+id/mic_mute_button" android:textOn="" android:textOff="" android:layout_height="fill_parent" android:layout_width="fill_parent" android:drawableTop="@drawable/mic_active" android:checked="true" android:layout_weight="1" android:background="@drawable/clavier_bg_ori"></ToggleButton>
<ImageButton android:src="@drawable/red" android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/HangUp" android:layout_weight="1" android:background="@drawable/clavier_bg_ori"></ImageButton> <ImageButton android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/HangUp" android:layout_weight="1" android:background="@drawable/clavier_bg_ori" android:src="@drawable/stopcall_red"></ImageButton>
<ToggleButton android:id="@+id/speaker_button" android:textOn="" android:textOff="" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_weight="1" android:background="@drawable/clavier_bg_ori" android:drawableTop="@drawable/speaker_32_off"></ToggleButton> <ToggleButton android:id="@+id/speaker_button" android:textOn="" android:textOff="" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_weight="1" android:background="@drawable/clavier_bg_ori" android:drawableTop="@drawable/speaker_32_off"></ToggleButton>
</TableRow> </TableRow>
</TableLayout> </TableLayout>
<LinearLayout android:layout_height="fill_parent" <LinearLayout android:layout_height="fill_parent"
android:layout_width="fill_parent" android:id="@+id/CallControlRow" android:layout_weight="1"> android:layout_width="fill_parent" android:id="@+id/CallControlRow" android:layout_weight="1">
<ImageButton android:id="@+id/Call" <ImageButton android:id="@+id/Call"
android:layout_height="fill_parent" android:src="@drawable/green" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_weight="0.25" android:background="@drawable/clavier_bg_ori" android:src="@drawable/startcall_green">
android:layout_width="fill_parent" android:layout_weight="0.25" android:background="@drawable/clavier_bg_ori">
</ImageButton> </ImageButton>
<ImageButton android:src="@drawable/red" <ImageButton android:layout_height="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_weight="0.25" android:id="@+id/Decline" android:background="@drawable/clavier_bg_ori" android:src="@drawable/stopcall_red"></ImageButton>
android:layout_weight="0.25" android:id="@+id/Decline" android:background="@drawable/clavier_bg_ori"></ImageButton>
</LinearLayout> </LinearLayout>
<EditText android:layout_width="fill_parent" android:id="@+id/status_label" <EditText android:layout_width="fill_parent" android:id="@+id/status_label"
android:clickable="false" android:focusable="false" android:clickable="false" android:focusable="false"

View file

@ -111,7 +111,7 @@ public class LinphoneActivity extends TabActivity implements SensorEventListener
Intent lContactItent = new Intent().setClass(this, ContactPickerActivity.class); Intent lContactItent = new Intent().setClass(this, ContactPickerActivity.class);
spec = lTabHost.newTabSpec("contact").setIndicator(getString(R.string.tab_contact), spec = lTabHost.newTabSpec("contact").setIndicator(getString(R.string.tab_contact),
getResources().getDrawable(R.drawable.history_orange)) getResources().getDrawable(R.drawable.contact_orange))
.setContent(lContactItent); .setContent(lContactItent);
lTabHost.addTab(spec); lTabHost.addTab(spec);