| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Copyright 2013 The Android Open Source Project | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <sample> | |
| <name>BorderlessButtons</name> | |
| <group>UI</group> | |
| <package>com.example.android.borderlessbuttons</package> | |
| <!-- change minSdk if needed--> | |
| <minSdk>14</minSdk> | |
| <strings> | |
| <intro> | |
| <![CDATA[ | |
| This sample demonstrates the use of borderless buttons, bottom button bars | |
| (OK and Cancel) and dividers to establish visual structure. | |
| ]]> | |
| </intro> | |
| </strings> | |
| <template src="base"/> | |
| <common src="logger"/> | |
| <metadata> | |
| <status>PUBLISHED</status> | |
| <categories>Design, UI</categories> | |
| <technologies>Android</technologies> | |
| <languages>Java</languages> | |
| <solutions>Mobile</solutions> | |
| <level>INTERMEDIATE</level> | |
| <icon>screenshots/big_icon.png</icon> | |
| <screenshots> | |
| <img>screenshots/1-activity.png</img> | |
| </screenshots> | |
| <api_refs> | |
| <android>android.widget.Button</android> | |
| <android>android.widget.ListView</android> | |
| <android>android.app.ListActivity</android> | |
| </api_refs> | |
| <description> | |
| <![CDATA[ | |
| This sample demonstrates the borderless button styling from the Holo visual language. | |
| Styling is applied in the XML resource layout definitions, referecing the styling attributes | |
| from the Holo theme. | |
| ]]> | |
| </description> | |
| <intro> | |
| <![CDATA[ | |
| This sample shows how to style widgets in an Activity using [borderless elements][1]. | |
| This includes a ListView with custom rows and buttons, using dividing lines to create | |
| visual separatation. | |
| Style definitions are provided by the Holo theme, which includes references to the | |
| '?android:buttonBarButtonStyle' for buttons and references to the appropriate divider | |
| attribute and style 'android:dividerVertical'. | |
| Styles are directly applied to widgets in their XML layout definitions. | |
| [1]: http://developer.android.com/design/building-blocks/buttons.html#borderless | |
| ]]> | |
| </intro> | |
| </metadata> | |
| </sample> |