upload android base code part7
This commit is contained in:
parent
4e516ec6ed
commit
841ae54672
25229 changed files with 1709508 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
|||
<?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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<string name="app_name">ActionBarCompat-Styled</string>
|
||||
<string name="intro_message">
|
||||
<![CDATA[
|
||||
|
||||
|
||||
This sample shows you how to use ActionBarCompat with a customized theme. It utilizes a
|
||||
split action bar when running on a device with a narrow display, and show three tabs.
|
||||
|
||||
|
||||
]]>
|
||||
</string>
|
||||
</resources>
|
|
@ -0,0 +1,22 @@
|
|||
<?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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<color name="pressed_styled">#CC669900</color>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,26 @@
|
|||
<?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.
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<string name="menu_refresh">Refresh</string>
|
||||
<string name="menu_location">Location</string>
|
||||
<string name="menu_settings">Settings</string>
|
||||
<string name="main_description">This is a basic Activity showing an Action Bar which has been
|
||||
styled.
|
||||
</string>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,82 @@
|
|||
<?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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
This is the styled theme.
|
||||
|
||||
It extends from Theme.AppCompat.Light, but it could extend from any of
|
||||
the Theme.AppCompat themes depending on your color scheme. This theme can be applied to
|
||||
your application or individual activities in the AndroidManifest.xml. In this sample it is
|
||||
set on the application.
|
||||
|
||||
This differs from the version of this theme in 'res/values-v14', as not all of the
|
||||
necessary attributes are available in the android: namespace on older versions of Android.
|
||||
This means that for certain attributes we must set the attributes provided in
|
||||
ActionBarCompat's namespace instead.
|
||||
-->
|
||||
|
||||
<style name="Theme.Styled" parent="@style/Theme.AppCompat.Light">
|
||||
<item name="actionBarItemBackground">@drawable/selectable_background</item>
|
||||
<item name="actionBarTabStyle">@style/Widget.Styled.ActionBar.TabView</item>
|
||||
<item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
|
||||
<item name="actionDropDownStyle">@style/Widget.Styled.Spinner.DropDown.ActionBar</item>
|
||||
<item name="dropDownListViewStyle">@style/Widget.Styled.ListView.DropDown</item>
|
||||
<item name="popupMenuStyle">@style/Widget.Styled.PopupMenu</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Styled.ActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid">
|
||||
<item name="background">@drawable/ab_solid_styled</item>
|
||||
<item name="backgroundStacked">@drawable/ab_stacked_solid_styled</item>
|
||||
<item name="backgroundSplit">@drawable/ab_bottom_solid_styled</item>
|
||||
<item name="progressBarStyle">@style/Widget.Styled.ProgressBar.Horizontal</item>
|
||||
</style>
|
||||
|
||||
|
||||
<!--
|
||||
For the following styles, the attributes are available in the android namespace which
|
||||
means that we can set them here for all platforms (v7 through to the latest).
|
||||
-->
|
||||
|
||||
<style name="Widget.Styled.ActionBar.TabView"
|
||||
parent="@style/Widget.AppCompat.Light.ActionBar.TabView">
|
||||
<item name="android:background">@drawable/tab_indicator_ab</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Styled.Spinner.DropDown.ActionBar"
|
||||
parent="@style/Widget.AppCompat.Light.Spinner.DropDown.ActionBar">
|
||||
<item name="android:background">@drawable/spinner_background_ab</item>
|
||||
<item name="android:popupBackground">@drawable/menu_dropdown_panel_styled</item>
|
||||
<item name="android:dropDownSelector">@drawable/selectable_background</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Styled.ProgressBar.Horizontal"
|
||||
parent="@style/Widget.AppCompat.ProgressBar.Horizontal">
|
||||
<item name="android:progressDrawable">@drawable/progress_horizontal</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Styled.PopupMenu" parent="@style/Widget.AppCompat.Light.PopupMenu">
|
||||
<item name="android:popupBackground">@drawable/menu_dropdown_panel_styled</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Styled.ListView.DropDown"
|
||||
parent="@style/Widget.AppCompat.Light.ListView.DropDown">
|
||||
<item name="android:listSelector">@drawable/selectable_background</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,32 @@
|
|||
<!--
|
||||
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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Define standard dimensions to comply with Holo-style grids and rhythm. -->
|
||||
|
||||
<dimen name="margin_tiny">4dp</dimen>
|
||||
<dimen name="margin_small">8dp</dimen>
|
||||
<dimen name="margin_medium">16dp</dimen>
|
||||
<dimen name="margin_large">32dp</dimen>
|
||||
<dimen name="margin_huge">64dp</dimen>
|
||||
|
||||
<!-- Semantic definitions -->
|
||||
|
||||
<dimen name="horizontal_page_margin">@dimen/margin_medium</dimen>
|
||||
<dimen name="vertical_page_margin">@dimen/margin_medium</dimen>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,42 @@
|
|||
<!--
|
||||
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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Activity themes -->
|
||||
|
||||
<style name="Theme.Base" parent="android:Theme.Light" />
|
||||
|
||||
<style name="Theme.Sample" parent="Theme.Base" />
|
||||
|
||||
<style name="AppTheme" parent="Theme.Sample" />
|
||||
<!-- Widget styling -->
|
||||
|
||||
<style name="Widget" />
|
||||
|
||||
<style name="Widget.SampleMessage">
|
||||
<item name="android:textAppearance">?android:textAppearanceMedium</item>
|
||||
<item name="android:lineSpacingMultiplier">1.1</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.SampleMessageTile">
|
||||
<item name="android:background">@drawable/tile</item>
|
||||
<item name="android:shadowColor">#7F000000</item>
|
||||
<item name="android:shadowDy">-3.5</item>
|
||||
<item name="android:shadowRadius">2</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue