am f4096041: Merge "Updated art for compat mode dialog." into honeycomb-mr2
* commit 'f409604122f959653fb789e9133e94a51e369693': Updated art for compat mode dialog.
BIN
packages/SystemUI/res/drawable-hdpi/compat_mode_help_diagram.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 150 B |
BIN
packages/SystemUI/res/drawable-hdpi/compat_mode_help_icon.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 155 B |
BIN
packages/SystemUI/res/drawable-mdpi/compat_mode_help_diagram.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 689 B |
|
After Width: | Height: | Size: 142 B |
BIN
packages/SystemUI/res/drawable-mdpi/compat_mode_help_icon.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 131 KiB After Width: | Height: | Size: 2.5 KiB |
BIN
packages/SystemUI/res/drawable/compat_mode_help_bg.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 9.4 KiB |
@@ -27,51 +27,62 @@
|
||||
android:id="@+id/header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="160dp"
|
||||
android:layout_marginLeft="80dp"
|
||||
android:layout_marginTop="80dp"
|
||||
android:layout_marginRight="80dp"
|
||||
android:textSize="60sp"
|
||||
android:maxLines="1"
|
||||
android:shadowRadius="8"
|
||||
android:shadowColor="#FF000000"
|
||||
android:text="@string/compat_mode_help_header"
|
||||
android:background="@drawable/compat_mode_help_divider_top"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/diagram"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="160dp"
|
||||
android:layout_marginTop="80dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:src="@drawable/compat_mode_help_diagram"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/explanation"
|
||||
<RelativeLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="80dp"
|
||||
android:layout_marginRight="240dp"
|
||||
android:layout_height="190dp"
|
||||
android:background="@drawable/compat_mode_help_divider_bottom"
|
||||
android:layout_marginBottom="55dp"
|
||||
android:layout_marginRight="80dp"
|
||||
android:layout_alignLeft="@id/header"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:shadowRadius="4"
|
||||
android:shadowColor="#FF000000"
|
||||
android:textSize="28sp"
|
||||
android:text="@string/compat_mode_help_body"
|
||||
/>
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="80dp"
|
||||
android:layout_alignBottom="@id/explanation"
|
||||
android:layout_alignParentRight="true"
|
||||
android:src="@drawable/compat_mode_help_icon"
|
||||
/>
|
||||
>
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/compat_mode_help_icon"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/explanation"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_toLeftOf="@id/icon"
|
||||
android:layout_marginRight="10dp"
|
||||
android:shadowRadius="4"
|
||||
android:shadowColor="#FF000000"
|
||||
android:textSize="28sp"
|
||||
android:text="@string/compat_mode_help_body"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
<Button
|
||||
android:id="@+id/button"
|
||||
android:layout_width="208dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignLeft="@id/header"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:textSize="28sp"
|
||||
android:text="@android:string/ok"
|
||||
/>
|
||||
|
||||
@@ -31,13 +31,13 @@
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp"
|
||||
>
|
||||
<RadioButton android:id="@+id/compat_mode_on_radio"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/compat_mode_on" />
|
||||
<RadioButton android:id="@+id/compat_mode_off_radio"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/compat_mode_off" />
|
||||
<RadioButton android:id="@+id/compat_mode_on_radio"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/compat_mode_on" />
|
||||
</RadioGroup>
|
||||
</com.android.systemui.statusbar.tablet.CompatModePanel>
|
||||
|
||||
@@ -81,6 +81,7 @@ public class TabletStatusBar extends StatusBar implements
|
||||
HeightReceiver.OnBarHeightChangedListener,
|
||||
InputMethodsPanel.OnHardKeyboardEnabledChangeListener {
|
||||
public static final boolean DEBUG = false;
|
||||
public static final boolean DEBUG_COMPAT_HELP = false;
|
||||
public static final String TAG = "TabletStatusBar";
|
||||
|
||||
|
||||
@@ -1011,7 +1012,8 @@ public class TabletStatusBar extends StatusBar implements
|
||||
|
||||
mCompatModeButton.refresh();
|
||||
if (mCompatModeButton.getVisibility() == View.VISIBLE) {
|
||||
if (! Prefs.read(mContext).getBoolean(Prefs.SHOWN_COMPAT_MODE_HELP, false)) {
|
||||
if (DEBUG_COMPAT_HELP
|
||||
|| ! Prefs.read(mContext).getBoolean(Prefs.SHOWN_COMPAT_MODE_HELP, false)) {
|
||||
showCompatibilityHelp();
|
||||
}
|
||||
} else {
|
||||
|
||||