Add new assets for LMP preview
issue 15544569 c), d), e) Change-Id: Ib352ef1fa7c19c3695c82f3ea31936a4b41da5aa
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 777 B |
|
After Width: | Height: | Size: 774 B |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_focused="true" android:drawable="@drawable/ic_allapps_pressed_l" />
|
||||
<item android:state_pressed="true" android:drawable="@drawable/ic_allapps_pressed_l" />
|
||||
<item android:drawable="@drawable/ic_allapps_l" />
|
||||
</selector>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_focused="true" android:drawable="@drawable/ic_setting_pressed_l" />
|
||||
<item android:state_pressed="true" android:drawable="@drawable/ic_setting_pressed_l" />
|
||||
<item android:drawable="@drawable/ic_setting_l" />
|
||||
</selector>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_focused="true" android:drawable="@drawable/ic_wallpaper_pressed_l" />
|
||||
<item android:state_pressed="true" android:drawable="@drawable/ic_wallpaper_pressed_l" />
|
||||
<item android:drawable="@drawable/ic_wallpaper_l" />
|
||||
</selector>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_focused="true" android:drawable="@drawable/ic_widget_pressed_l" />
|
||||
<item android:state_pressed="true" android:drawable="@drawable/ic_widget_pressed_l" />
|
||||
<item android:drawable="@drawable/ic_widget_l" />
|
||||
</selector>
|
||||
@@ -217,6 +217,11 @@ public class CellLayout extends ViewGroup {
|
||||
mNormalBackground = res.getDrawable(R.drawable.screenpanel);
|
||||
mActiveGlowBackground = res.getDrawable(R.drawable.screenpanel_hover);
|
||||
|
||||
if (Utilities.isLmp()) {
|
||||
mNormalBackground = res.getDrawable(R.drawable.screenpanel_l);
|
||||
mActiveGlowBackground = res.getDrawable(R.drawable.screenpanel_hover_l);
|
||||
}
|
||||
|
||||
mOverScrollLeft = res.getDrawable(R.drawable.overscroll_glow_left);
|
||||
mOverScrollRight = res.getDrawable(R.drawable.overscroll_glow_right);
|
||||
mForegroundPadding =
|
||||
|
||||
@@ -150,6 +150,11 @@ public class Hotseat extends FrameLayout {
|
||||
TextView allAppsButton = (TextView)
|
||||
inflater.inflate(R.layout.all_apps_button, mContent, false);
|
||||
Drawable d = context.getResources().getDrawable(R.drawable.all_apps_button_icon);
|
||||
|
||||
if (Utilities.isLmp()) {
|
||||
d = context.getResources().getDrawable(R.drawable.all_apps_button_icon_l);
|
||||
}
|
||||
|
||||
Utilities.resizeIconDrawable(d);
|
||||
allAppsButton.setCompoundDrawables(null, d, null, null);
|
||||
|
||||
|
||||
@@ -1292,6 +1292,10 @@ public class Launcher extends Activity
|
||||
}
|
||||
});
|
||||
widgetButton.setOnTouchListener(getHapticFeedbackTouchListener());
|
||||
if (Utilities.isLmp()) {
|
||||
((TextView) widgetButton).setCompoundDrawablesWithIntrinsicBounds(0,
|
||||
R.drawable.widget_button_l, 0, 0);
|
||||
}
|
||||
|
||||
View wallpaperButton = findViewById(R.id.wallpaper_button);
|
||||
wallpaperButton.setOnClickListener(new OnClickListener() {
|
||||
@@ -1304,6 +1308,11 @@ public class Launcher extends Activity
|
||||
});
|
||||
wallpaperButton.setOnTouchListener(getHapticFeedbackTouchListener());
|
||||
|
||||
if (Utilities.isLmp()) {
|
||||
((TextView) wallpaperButton).setCompoundDrawablesWithIntrinsicBounds(0,
|
||||
R.drawable.wallpaper_button_l, 0, 0);
|
||||
}
|
||||
|
||||
View settingsButton = findViewById(R.id.settings_button);
|
||||
if (hasSettings()) {
|
||||
settingsButton.setOnClickListener(new OnClickListener() {
|
||||
@@ -1315,6 +1324,10 @@ public class Launcher extends Activity
|
||||
}
|
||||
});
|
||||
settingsButton.setOnTouchListener(getHapticFeedbackTouchListener());
|
||||
if (Utilities.isLmp()) {
|
||||
((TextView) settingsButton).setCompoundDrawablesWithIntrinsicBounds(0,
|
||||
R.drawable.setting_button_l, 0, 0);
|
||||
}
|
||||
} else {
|
||||
settingsButton.setVisibility(View.GONE);
|
||||
FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) widgetButton.getLayoutParams();
|
||||
|
||||