res/layout/incall.xml
changeset 837 ea02c5b80cc0
parent 836 2f2f5e24ac6a
child 838 532fdf132146
equal deleted inserted replaced
836:2f2f5e24ac6a 837:ea02c5b80cc0
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <AbsoluteLayout
       
     3 android:id="@+id/top_lvl_layout"
       
     4 android:layout_width="fill_parent"
       
     5 android:layout_height="fill_parent"
       
     6 android:background="#000000"
       
     7 xmlns:android="http://schemas.android.com/apk/res/android"
       
     8 >
       
     9 
       
    10    <FrameLayout android:id="@+id/mainFrame"
       
    11         android:layout_width="fill_parent"
       
    12         android:layout_height="fill_parent"
       
    13         android:layout_weight="1"
       
    14         android:paddingTop="10dip"
       
    15         android:paddingLeft="6dip"
       
    16         android:paddingRight="6dip"
       
    17         >
       
    18 
       
    19         <!-- (1) inCallPanel: the main set of in-call UI elements -->
       
    20         <RelativeLayout android:id="@+id/inCallPanel"
       
    21                         android:layout_width="fill_parent"
       
    22                         android:layout_height="fill_parent"
       
    23                         >
       
    24 
       
    25             <!-- Slide hints: if the "sliding card" feature is enabled,
       
    26                  one or the other of these is visible at any given moment
       
    27                  (see updateCardSlideHints()). -->
       
    28 
       
    29             <!-- Slide hint and arrow *above* the main body of the card,
       
    30                  shown when the card is in the *bottom* position. -->
       
    31             <!-- This hint's position onscreen is static: the Y value is set
       
    32                  so that the hint will be visible just above the top edge of
       
    33                  the CallCard when the CallCard is in the "bottom" position.
       
    34                  The resources here describe the portrait mode layout; see
       
    35                  InCallScreen.ConfigurationHelper.applyConfigurationToLayout()
       
    36                  for the differences in landscape mode. -->
       
    37             <LinearLayout android:id="@+id/slideUp"
       
    38                           android:orientation="vertical"
       
    39                           android:layout_width="fill_parent"
       
    40                           android:layout_height="wrap_content"
       
    41                           android:layout_alignParentBottom="true"
       
    42                           android:background="@null"
       
    43                           android:visibility="gone"
       
    44                           >
       
    45                 <TextView android:id="@+id/slideUpHint"
       
    46                           android:layout_gravity="center_horizontal"
       
    47                           android:gravity="center_horizontal"
       
    48                           android:textAppearance="?android:attr/textAppearanceMedium"
       
    49                           android:textColor="?android:attr/textColorSecondary"
       
    50                           android:layout_width="wrap_content"
       
    51                           android:layout_height="wrap_content"
       
    52                           />
       
    53                 <ImageView
       
    54                     android:layout_width="wrap_content"
       
    55                     android:layout_height="wrap_content"
       
    56                     android:layout_gravity="center_horizontal"
       
    57                     android:src="@android:drawable/arrow_up_float"
       
    58                     />
       
    59             </LinearLayout>
       
    60 
       
    61             <!-- Slide hint and arrow *below* the main body of the card,
       
    62                  shown when the card is in the *top* position. -->
       
    63             <!-- This hint's position onscreen is static: the Y value is set
       
    64                  so that the hint will be visible just below the bottom edge of
       
    65                  the CallCard when the CallCard is in the "top" position.
       
    66                  The resources here describe the portrait mode layout; see
       
    67                  InCallScreen.ConfigurationHelper.applyConfigurationToLayout()
       
    68                  for the differences in landscape mode. -->
       
    69             <LinearLayout android:id="@+id/slideDown"
       
    70                           android:orientation="vertical"
       
    71                           android:layout_width="fill_parent"
       
    72                           android:layout_height="wrap_content"
       
    73                           android:layout_alignParentTop="true"
       
    74                            android:background="@null"
       
    75                           android:visibility="gone"
       
    76                           >
       
    77                 <ImageView
       
    78                     android:layout_width="wrap_content"
       
    79                     android:layout_height="wrap_content"
       
    80                     android:layout_gravity="center_horizontal"
       
    81                     android:src="@android:drawable/arrow_down_float"
       
    82                     />
       
    83                 <TextView
       
    84                     android:id="@+id/slideDownHint"
       
    85                     android:layout_gravity="center_horizontal"
       
    86                     android:gravity="center_horizontal"
       
    87                     android:textAppearance="?android:attr/textAppearanceMedium"
       
    88                     android:textColor="?android:attr/textColorSecondary"
       
    89                     android:layout_width="wrap_content"
       
    90                     android:layout_height="wrap_content"
       
    91                     />                
       
    92                 <TextView
       
    93                     android:id="@+id/stats"
       
    94                     android:layout_gravity="center_horizontal"
       
    95                     android:gravity="center_horizontal"
       
    96                     android:textAppearance="?android:attr/textAppearanceMedium"
       
    97                     android:textColor="?android:attr/textColorSecondary"
       
    98                     android:layout_width="wrap_content"
       
    99                     android:layout_height="wrap_content"
       
   100                     />
       
   101             </LinearLayout>
       
   102 
       
   103         </RelativeLayout>  <!-- End of inCallPanel -->
       
   104 
       
   105     </FrameLayout>  <!-- End of mainFrame -->
       
   106 </AbsoluteLayout>