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<sample> 18 <name>BorderlessButtons</name> 19 <group>UI</group> 20 <package>com.example.android.borderlessbuttons</package> 21 22 <!-- change minSdk if needed--> 23 <minSdk>14</minSdk> 24 25 <strings> 26 <intro> 27 <![CDATA[ 28 This sample demonstrates the use of borderless buttons, bottom button bars 29 (OK and Cancel) and dividers to establish visual structure. 30 ]]> 31 </intro> 32 </strings> 33 34 <template src="base"/> 35 <common src="logger"/> 36 37<metadata> 38 <status>PUBLISHED</status> 39 <categories>Design, UI</categories> 40 <technologies>Android</technologies> 41 <languages>Java</languages> 42 <solutions>Mobile</solutions> 43 <level>INTERMEDIATE</level> 44 <icon>screenshots/big_icon.png</icon> 45 <screenshots> 46 <img>screenshots/1-activity.png</img> 47 </screenshots> 48 <api_refs> 49 <android>android.widget.Button</android> 50 <android>android.widget.ListView</android> 51 <android>android.app.ListActivity</android> 52 </api_refs> 53 54 <description> 55<![CDATA[ 56This sample demonstrates the borderless button styling from the Holo visual language. 57Styling is applied in the XML resource layout definitions, referecing the styling attributes 58from the Holo theme. 59]]> 60 </description> 61 <intro> 62<![CDATA[ 63This sample shows how to style widgets in an Activity using [borderless elements][1]. 64This includes a ListView with custom rows and buttons, using dividing lines to create 65visual separatation. 66 67Style definitions are provided by the Holo theme, which includes references to the 68'?android:buttonBarButtonStyle' for buttons and references to the appropriate divider 69attribute and style 'android:dividerVertical'. 70 71Styles are directly applied to widgets in their XML layout definitions. 72 73[1]: http://developer.android.com/design/building-blocks/buttons.html#borderless 74]]> 75 </intro> 76</metadata> 77</sample> 78