Home | History | Annotate | Download | only in DoneBar
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3  Copyright 2013 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 
     18 <sample>
     19     <name>DoneBar</name>
     20     <group>UI</group>
     21     <package>com.example.android.donebar</package>
     22 
     23     <!-- change minSdk if needed-->
     24     <minSdk>14</minSdk>
     25 
     26     <strings>
     27         <intro>
     28             <![CDATA[
     29                 This sample demonstrates two alternative presentations of the
     30                 action bar that are well-suited for simple data entry scenarios.
     31 
     32                 In this presentation, a done bar replaces the action
     33                 bar entirely, providing two direct actions to persist or dismiss changes. This is
     34                 suitable for cases where no additional view details or actions are needed in the
     35                 action bar.
     36             ]]>
     37         </intro>
     38     </strings>
     39 
     40     <activity>
     41         <class>DoneBarActivity</class>
     42         <title>Done Bar</title>
     43         <description>In this presentation, a done bar replaces the action bar entirely, providing
     44             two direct actions to persist or dismiss changes. This is suitable for cases where no
     45             additional view details or actions are needed in the action bar.</description>
     46     </activity>
     47 
     48     <activity>
     49         <class>DoneButtonActivity</class>
     50         <title>Done Button</title>
     51         <description>In this presentation, a done button replaces the action bar\'s "Up" affordance
     52             and app icon, while the cancel action is made available in the action overflow. This is
     53             well-suited to scenarios where additional view details or
     54             actions may be needed in the action bar.</description>
     55     </activity>
     56 
     57     <template src="base"/>
     58     <template src="ActivityCards"/>
     59 </sample>
     60