Loading res/layout/drop_target_bar.xmldeleted 100644 → 0 +0 −39 Original line number Diff line number Diff line <?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. --> <merge xmlns:android="http://schemas.android.com/apk/res/android"> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/DropTargetButtonContainer" android:layout_weight="1"> <!-- Delete target --> <com.android.launcher3.DeleteDropTarget style="@style/DropTargetButton" android:id="@+id/delete_target_text" android:text="@string/delete_zone_label_workspace" android:drawableStart="@drawable/remove_target_selector" /> </FrameLayout> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/DropTargetButtonContainer" android:layout_weight="1"> <!-- Info target --> <com.android.launcher3.InfoDropTarget style="@style/DropTargetButton" android:id="@+id/info_target_text" android:text="@string/info_target_label" android:drawableStart="@drawable/info_target_selector" /> </FrameLayout> </merge> res/layout/search_drop_target_bar.xml +35 −10 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2011 The Android Open Source Project <!-- 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. Loading @@ -13,21 +14,45 @@ See the License for the specific language governing permissions and limitations under the License. --> <com.android.launcher3.SearchDropTargetBar xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:focusable="false" <com.android.launcher3.SearchDropTargetBar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> android:layout_height="match_parent" android:focusable="false" android:orientation="horizontal" > <!-- Drag specific targets container --> <LinearLayout android:id="@+id/drag_target_bar" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" > <include layout="@layout/drop_target_bar" /> <FrameLayout style="@style/DropTargetButtonContainer" android:layout_weight="1" > <!-- Delete target --> <com.android.launcher3.DeleteDropTarget android:id="@+id/delete_target_text" style="@style/DropTargetButton" android:drawableStart="@drawable/remove_target_selector" android:text="@string/delete_zone_label_workspace" /> </FrameLayout> <FrameLayout style="@style/DropTargetButtonContainer" android:layout_weight="1" > <!-- Info target --> <com.android.launcher3.InfoDropTarget android:id="@+id/info_target_text" style="@style/DropTargetButton" android:drawableStart="@drawable/info_target_selector" android:text="@string/info_target_label" /> </FrameLayout> </LinearLayout> </com.android.launcher3.SearchDropTargetBar> No newline at end of file res/values-land/styles.xml +9 −11 Original line number Diff line number Diff line Loading @@ -18,27 +18,25 @@ --> <resources> <!-- Search Bar --> <style name="SearchButton"> </style> <style name="SearchButton"></style> <style name="DropTargetButtonContainer"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">wrap_content</item> </style> <style name="DropTargetButton"> <item name="android:layout_width">wrap_content</item> <!-- This style applies to the drop target when it is shown in the sidebar --> <style name="DropTargetButton" parent="DropTargetButton.Base"> <item name="android:layout_height">wrap_content</item> <item name="android:layout_gravity">center</item> <item name="android:gravity">center</item> <item name="android:drawablePadding">0dp</item> <item name="android:paddingTop">@dimen/toolbar_button_vertical_padding</item> <item name="android:paddingBottom">@dimen/toolbar_button_vertical_padding</item> <item name="android:paddingLeft">@dimen/toolbar_button_horizontal_padding</item> <item name="android:paddingRight">@dimen/toolbar_button_horizontal_padding</item> <item name="android:shadowColor">#DD000000</item> <item name="android:shadowDx">0.0</item> <item name="android:shadowDy">1.0</item> <item name="android:shadowRadius">4.0</item> </style> </resources> No newline at end of file res/values-sw340dp/dimens.xml +6 −2 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2011 The Android Open Source Project <!-- 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. Loading @@ -15,6 +16,9 @@ --> <resources> <!-- Drag padding to add to the bottom of drop targets --> <dimen name="drop_target_drag_padding">20dp</dimen> <dimen name="drop_target_text_size">16sp</dimen> </resources> No newline at end of file res/values-sw720dp/styles.xml +8 −12 Original line number Diff line number Diff line Loading @@ -18,26 +18,22 @@ --> <resources> <!-- Workspace --> <style name="SearchButton"> </style> <style name="SearchButton"></style> <style name="DropTargetButtonContainer"> <item name="android:layout_width">0dp</item> <item name="android:layout_height">match_parent</item> </style> <style name="DropTargetButton"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">match_parent</item> <item name="android:layout_gravity">center</item> <item name="android:gravity">center_vertical</item> <item name="android:drawablePadding">7.5dp</item> <style name="DropTargetButton" parent="DropTargetButton.Base"> <item name="android:paddingLeft">60dp</item> <item name="android:paddingRight">60dp</item> <item name="android:textColor">#FFFFFFFF</item> <item name="android:textSize">16sp</item> <item name="android:shadowColor">#393939</item> <item name="android:shadowDx">0.0</item> <item name="android:shadowDy">0.0</item> <item name="android:shadowRadius">2.0</item> </style> </resources> No newline at end of file Loading
res/layout/drop_target_bar.xmldeleted 100644 → 0 +0 −39 Original line number Diff line number Diff line <?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. --> <merge xmlns:android="http://schemas.android.com/apk/res/android"> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/DropTargetButtonContainer" android:layout_weight="1"> <!-- Delete target --> <com.android.launcher3.DeleteDropTarget style="@style/DropTargetButton" android:id="@+id/delete_target_text" android:text="@string/delete_zone_label_workspace" android:drawableStart="@drawable/remove_target_selector" /> </FrameLayout> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/DropTargetButtonContainer" android:layout_weight="1"> <!-- Info target --> <com.android.launcher3.InfoDropTarget style="@style/DropTargetButton" android:id="@+id/info_target_text" android:text="@string/info_target_label" android:drawableStart="@drawable/info_target_selector" /> </FrameLayout> </merge>
res/layout/search_drop_target_bar.xml +35 −10 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2011 The Android Open Source Project <!-- 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. Loading @@ -13,21 +14,45 @@ See the License for the specific language governing permissions and limitations under the License. --> <com.android.launcher3.SearchDropTargetBar xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:focusable="false" <com.android.launcher3.SearchDropTargetBar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> android:layout_height="match_parent" android:focusable="false" android:orientation="horizontal" > <!-- Drag specific targets container --> <LinearLayout android:id="@+id/drag_target_bar" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" > <include layout="@layout/drop_target_bar" /> <FrameLayout style="@style/DropTargetButtonContainer" android:layout_weight="1" > <!-- Delete target --> <com.android.launcher3.DeleteDropTarget android:id="@+id/delete_target_text" style="@style/DropTargetButton" android:drawableStart="@drawable/remove_target_selector" android:text="@string/delete_zone_label_workspace" /> </FrameLayout> <FrameLayout style="@style/DropTargetButtonContainer" android:layout_weight="1" > <!-- Info target --> <com.android.launcher3.InfoDropTarget android:id="@+id/info_target_text" style="@style/DropTargetButton" android:drawableStart="@drawable/info_target_selector" android:text="@string/info_target_label" /> </FrameLayout> </LinearLayout> </com.android.launcher3.SearchDropTargetBar> No newline at end of file
res/values-land/styles.xml +9 −11 Original line number Diff line number Diff line Loading @@ -18,27 +18,25 @@ --> <resources> <!-- Search Bar --> <style name="SearchButton"> </style> <style name="SearchButton"></style> <style name="DropTargetButtonContainer"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">wrap_content</item> </style> <style name="DropTargetButton"> <item name="android:layout_width">wrap_content</item> <!-- This style applies to the drop target when it is shown in the sidebar --> <style name="DropTargetButton" parent="DropTargetButton.Base"> <item name="android:layout_height">wrap_content</item> <item name="android:layout_gravity">center</item> <item name="android:gravity">center</item> <item name="android:drawablePadding">0dp</item> <item name="android:paddingTop">@dimen/toolbar_button_vertical_padding</item> <item name="android:paddingBottom">@dimen/toolbar_button_vertical_padding</item> <item name="android:paddingLeft">@dimen/toolbar_button_horizontal_padding</item> <item name="android:paddingRight">@dimen/toolbar_button_horizontal_padding</item> <item name="android:shadowColor">#DD000000</item> <item name="android:shadowDx">0.0</item> <item name="android:shadowDy">1.0</item> <item name="android:shadowRadius">4.0</item> </style> </resources> No newline at end of file
res/values-sw340dp/dimens.xml +6 −2 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2011 The Android Open Source Project <!-- 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. Loading @@ -15,6 +16,9 @@ --> <resources> <!-- Drag padding to add to the bottom of drop targets --> <dimen name="drop_target_drag_padding">20dp</dimen> <dimen name="drop_target_text_size">16sp</dimen> </resources> No newline at end of file
res/values-sw720dp/styles.xml +8 −12 Original line number Diff line number Diff line Loading @@ -18,26 +18,22 @@ --> <resources> <!-- Workspace --> <style name="SearchButton"> </style> <style name="SearchButton"></style> <style name="DropTargetButtonContainer"> <item name="android:layout_width">0dp</item> <item name="android:layout_height">match_parent</item> </style> <style name="DropTargetButton"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">match_parent</item> <item name="android:layout_gravity">center</item> <item name="android:gravity">center_vertical</item> <item name="android:drawablePadding">7.5dp</item> <style name="DropTargetButton" parent="DropTargetButton.Base"> <item name="android:paddingLeft">60dp</item> <item name="android:paddingRight">60dp</item> <item name="android:textColor">#FFFFFFFF</item> <item name="android:textSize">16sp</item> <item name="android:shadowColor">#393939</item> <item name="android:shadowDx">0.0</item> <item name="android:shadowDy">0.0</item> <item name="android:shadowRadius">2.0</item> </style> </resources> No newline at end of file