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
     17       xmlns:android="http://schemas.android.com/apk/res/android"
     18       android:orientation="vertical"
     19       android:layout_width="match_parent"
     20       android:layout_height="match_parent"
     21       android:id="@+id/sample_main_layout">
     22 
     23     <ViewAnimator
     24           android:id="@+id/sample_output"
     25           android:layout_width="match_parent"
     26           android:layout_height="0px"
     27           android:layout_weight="1">
     28 
     29         <ScrollView
     30               style="@style/Widget.SampleMessageTile"
     31               android:layout_width="match_parent"
     32               android:layout_height="match_parent">
     33 
     34             <TextView
     35                   style="@style/Widget.SampleMessage"
     36                   android:layout_width="match_parent"
     37                   android:layout_height="wrap_content"
     38                   android:paddingLeft="@dimen/horizontal_page_margin"
     39                   android:paddingRight="@dimen/horizontal_page_margin"
     40                   android:paddingTop="@dimen/vertical_page_margin"
     41                   android:paddingBottom="@dimen/vertical_page_margin"
     42                   android:text="@string/intro_message" />
     43         </ScrollView>
     44 
     45         <fragment
     46               android:name="com.example.android.common.logger.LogFragment"
     47               android:id="@+id/log_fragment"
     48               android:layout_width="match_parent"
     49               android:layout_height="match_parent" />
     50 
     51     </ViewAnimator>
     52 
     53     <View
     54           android:layout_width="match_parent"
     55           android:layout_height="1dp"
     56           android:background="@android:color/darker_gray" />
     57 
     58     <FrameLayout
     59           android:id="@+id/sample_content_fragment"
     60           android:layout_weight="2"
     61           android:layout_width="match_parent"
     62           android:layout_height="0px" />
     63 
     64 </LinearLayout>
     65 
     66