Home | History | Annotate | Download | only in layout
      1 <!--
      2   Copyright 2013 The Android Open Source Project
      3 
      4   Licensed under the Apache License, Version 2.0 (the "License");
      5   you may not use this file except in compliance with the License.
      6   You may obtain a copy of the License at
      7 
      8       http://www.apache.org/licenses/LICENSE-2.0
      9 
     10   Unless required by applicable law or agreed to in writing, software
     11   distributed under the License is distributed on an "AS IS" BASIS,
     12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13   See the License for the specific language governing permissions and
     14   limitations under the License.
     15   -->
     16 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:orientation="vertical"
     18     android:layout_width="match_parent"
     19     android:layout_height="match_parent"
     20     android:id="@+id/sample_main_layout">
     21 
     22     <ViewAnimator
     23         android:id="@+id/sample_output"
     24         android:layout_width="match_parent"
     25         android:layout_height="0px"
     26         android:layout_weight="1">
     27 
     28         <ScrollView
     29             style="@style/Widget.SampleMessageTile"
     30             android:layout_width="match_parent"
     31             android:layout_height="match_parent">
     32 
     33             <TextView
     34                 style="@style/Widget.SampleMessage"
     35                 android:layout_width="match_parent"
     36                 android:layout_height="wrap_content"
     37                 android:paddingLeft="@dimen/horizontal_page_margin"
     38                 android:paddingRight="@dimen/horizontal_page_margin"
     39                 android:paddingTop="@dimen/vertical_page_margin"
     40                 android:paddingBottom="@dimen/vertical_page_margin"
     41                 android:text="@string/intro_message" />
     42         </ScrollView>
     43 
     44         <fragment
     45             android:name="com.example.android.common.logger.LogFragment"
     46             android:id="@+id/log_fragment"
     47             android:layout_width="match_parent"
     48             android:layout_height="match_parent" />
     49 
     50     </ViewAnimator>
     51 
     52     <View
     53         android:layout_width="match_parent"
     54         android:layout_height="1dp"
     55         android:background="@android:color/darker_gray" />
     56 
     57     <FrameLayout
     58         android:id="@+id/sample_content_fragment"
     59         android:layout_weight="2"
     60         android:layout_width="match_parent"
     61         android:layout_height="0px" />
     62 
     63 </LinearLayout>
     64 
     65