mobile/android/base/resources/layout/icon_grid_item.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/resources/layout/icon_grid_item.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +<?xml version="1.0" encoding="utf-8"?>
     1.5 +<!--
     1.6 +  //device/apps/common/res/any/layout/resolve_list_item.xml
     1.7 +  Copyright 2006, The Android Open Source Project
     1.8 +
     1.9 +  Licensed under the Apache License, Version 2.0 (the "License");
    1.10 +  you may not use this file except in compliance with the License.
    1.11 +  You may obtain a copy of the License at
    1.12 +
    1.13 +  http://www.apache.org/licenses/LICENSE-2.0
    1.14 +
    1.15 +  Unless required by applicable law or agreed to in writing, software
    1.16 +  distributed under the License is distributed on an "AS IS" BASIS,
    1.17 +  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.18 +  See the License for the specific language governing permissions and
    1.19 +  limitations under the License.
    1.20 +-->
    1.21 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    1.22 +              android:gravity="center"
    1.23 +              android:orientation="vertical"
    1.24 +              android:layout_height="wrap_content"
    1.25 +              android:layout_width="match_parent"
    1.26 +              android:background="@drawable/icon_grid_item_bg"
    1.27 +              android:padding="16dp">
    1.28 +
    1.29 +    <!-- Extended activity info to distinguish between duplicate activity names -->
    1.30 +    <TextView android:id="@android:id/text2"
    1.31 +              android:textAppearance="?android:attr/textAppearance"
    1.32 +              android:layout_width="wrap_content"
    1.33 +              android:layout_height="wrap_content"
    1.34 +              android:gravity="center"
    1.35 +              android:minLines="2"
    1.36 +              android:maxLines="2"
    1.37 +              android:paddingTop="4dip"
    1.38 +              android:paddingBottom="4dip" />
    1.39 +
    1.40 +    <!-- Activity icon when presenting dialog
    1.41 +         Size will be filled in by ResolverActivity -->
    1.42 +    <ImageView android:id="@+id/icon"
    1.43 +               android:layout_width="0dp"
    1.44 +               android:layout_height="0dp"
    1.45 +               android:scaleType="fitCenter" />
    1.46 +
    1.47 +    <!-- Activity name -->
    1.48 +    <TextView android:id="@android:id/text1"
    1.49 +              android:textAppearance="?android:attr/textAppearanceSmall"
    1.50 +              android:layout_width="wrap_content"
    1.51 +              android:layout_height="wrap_content"
    1.52 +              android:gravity="center"
    1.53 +              android:minLines="2"
    1.54 +              android:maxLines="2"
    1.55 +              android:paddingTop="4dip"
    1.56 +              android:paddingBottom="4dip" />
    1.57 +</LinearLayout>
    1.58 +

mercurial