Tweak layouts of IME switch button
Bug: 3383078 Change-Id: Id522ac6e8363a98be6ac73ee75b0d54e12ef86c4
This commit is contained in:
@@ -47,12 +47,11 @@
|
|||||||
android:id="@+id/item_radio"
|
android:id="@+id/item_radio"
|
||||||
android:layout_width="30dip"
|
android:layout_width="30dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="11dip"
|
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:clickable="false" />
|
android:clickable="false" />
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/item_icon"
|
android:id="@+id/item_icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@android:dimen/app_icon_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:scaleType="fitCenter" />
|
android:scaleType="fitCenter" />
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ public class TabletStatusBar extends StatusBar implements
|
|||||||
|
|
||||||
public static final int MAX_NOTIFICATION_ICONS = 5;
|
public static final int MAX_NOTIFICATION_ICONS = 5;
|
||||||
// IME switcher icon is big and occupy width of two icons
|
// IME switcher icon is big and occupy width of two icons
|
||||||
public static final int MAX_NOTIFICATION_ICONS_IME_BUTTON_VISIBLE = MAX_NOTIFICATION_ICONS - 2;
|
public static final int MAX_NOTIFICATION_ICONS_IME_BUTTON_VISIBLE = MAX_NOTIFICATION_ICONS - 1;
|
||||||
|
|
||||||
public static final int MSG_OPEN_NOTIFICATION_PANEL = 1000;
|
public static final int MSG_OPEN_NOTIFICATION_PANEL = 1000;
|
||||||
public static final int MSG_CLOSE_NOTIFICATION_PANEL = 1001;
|
public static final int MSG_CLOSE_NOTIFICATION_PANEL = 1001;
|
||||||
@@ -860,11 +860,8 @@ public class TabletStatusBar extends StatusBar implements
|
|||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Slog.d(TAG, (visible?"showing":"hiding") + " the IME button");
|
Slog.d(TAG, (visible?"showing":"hiding") + " the IME button");
|
||||||
}
|
}
|
||||||
int oldVisibility = mInputMethodSwitchButton.getVisibility();
|
|
||||||
mInputMethodSwitchButton.setIMEButtonVisible(token, visible);
|
mInputMethodSwitchButton.setIMEButtonVisible(token, visible);
|
||||||
if (oldVisibility != mInputMethodSwitchButton.getVisibility()) {
|
updateNotificationIcons();
|
||||||
updateNotificationIcons();
|
|
||||||
}
|
|
||||||
mInputMethodsPanel.setImeToken(token);
|
mInputMethodsPanel.setImeToken(token);
|
||||||
mBackButton.setImageResource(
|
mBackButton.setImageResource(
|
||||||
visible ? R.drawable.ic_sysbar_back_ime : R.drawable.ic_sysbar_back);
|
visible ? R.drawable.ic_sysbar_back_ime : R.drawable.ic_sysbar_back);
|
||||||
|
|||||||
Reference in New Issue
Block a user