Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2016 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 <com.android.launcher3.DropTargetBar
     18     android:theme="@style/HomeScreenElementTheme"
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="@dimen/dynamic_grid_drop_target_size"
     21     android:orientation="vertical"
     22     android:layout_height="match_parent"
     23     android:layout_gravity="left"
     24     android:visibility="invisible"
     25     android:focusable="false"
     26     android:paddingTop="@dimen/vert_drop_target_vertical_gap" >
     27 
     28     <!-- Delete target -->
     29     <com.android.launcher3.DeleteDropTarget
     30         android:layout_width="match_parent"
     31         android:layout_height="@dimen/dynamic_grid_drop_target_size"
     32         android:gravity="center"
     33         android:paddingLeft="@dimen/vert_drop_target_horizontal_gap"
     34         android:paddingRight="@dimen/vert_drop_target_horizontal_gap"
     35         android:id="@+id/delete_target_text" />
     36 
     37     <!-- Uninstall target -->
     38     <com.android.launcher3.UninstallDropTarget
     39         android:layout_width="match_parent"
     40         android:layout_height="@dimen/dynamic_grid_drop_target_size"
     41         android:gravity="center"
     42         android:paddingLeft="@dimen/vert_drop_target_horizontal_gap"
     43         android:paddingRight="@dimen/vert_drop_target_horizontal_gap"
     44         android:id="@+id/uninstall_target_text"
     45         android:layout_marginTop="@dimen/vert_drop_target_vertical_gap"/>
     46 
     47     <Space
     48         android:layout_width="match_parent"
     49         android:layout_height="0dp"
     50         android:layout_weight="1" />
     51 
     52     <!-- App Info -->
     53     <com.android.launcher3.InfoDropTarget
     54         android:layout_width="match_parent"
     55         android:layout_height="@dimen/dynamic_grid_drop_target_size"
     56         android:gravity="center"
     57         android:paddingLeft="@dimen/vert_drop_target_horizontal_gap"
     58         android:paddingRight="@dimen/vert_drop_target_horizontal_gap"
     59         android:id="@+id/info_target_text"
     60         android:layout_marginBottom="64dp"/>
     61 
     62 </com.android.launcher3.DropTargetBar>