upload android base code part8
This commit is contained in:
parent
841ae54672
commit
5425409085
57075 changed files with 9846578 additions and 0 deletions
90
android/packages/apps/Protips/res/values/arrays.xml
Normal file
90
android/packages/apps/Protips/res/values/arrays.xml
Normal file
|
@ -0,0 +1,90 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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>
|
||||
<!-- Set of tips to show the user.
|
||||
|
||||
First line is the tip title, which is shown in bold on its own line.
|
||||
|
||||
All subsequent text is placed into the tip body.
|
||||
|
||||
The occurrence of @drawable/foo causes the bitmap drawable named "foo"
|
||||
to be displayed to the right of the tip text.
|
||||
|
||||
Example for tip #1:
|
||||
_____________________________________________ \_/
|
||||
| | /._.\
|
||||
| See all your apps. [all_apps.png] > U| |U
|
||||
| Touch the Launcher icon. | |___|
|
||||
|_____________________________________________| U U
|
||||
-->
|
||||
<string-array name="tips">
|
||||
<!-- Tip: Where the launcher icon is and what it does. With icon. -->
|
||||
<item>See all your apps.\n
|
||||
Touch the Launcher icon. @drawable/all_apps</item>
|
||||
|
||||
<!-- Tip: Longpress in Launcher (all apps) to drag apps to the home screen. -->
|
||||
<item>Drag apps to your Home screen.\n
|
||||
Touch & hold an app in the Launcher until it vibrates.</item>
|
||||
|
||||
<!-- Tip: Longpress to move icons/widgets around. -->
|
||||
<item>Rearrange your Home screen.\n
|
||||
Touch & hold an item and when it vibrates, drag it where you want.</item>
|
||||
|
||||
<!-- Tip: Longpress icons/widgets and drag to trash to remove them. -->
|
||||
<item>Remove items.\n
|
||||
Touch & hold an item and when it vibrates, drag it to the Trash icon. @drawable/trash</item>
|
||||
|
||||
<!-- Tip: Swipe to switch workspaces; drag items to move them to other
|
||||
workspaces. -->
|
||||
<item>Multiple Home screens.\n
|
||||
Swipe left or right to switch. Drag items to other screens.</item>
|
||||
|
||||
<!-- Tip: Reminder about how to delete widgets, reinforcing that this
|
||||
technique can be used to remove the tips widget iteself. -->
|
||||
<item>Done with this widget?\n
|
||||
Touch & hold it and when it vibrates, drag it to the Trash icon.</item>
|
||||
</string-array>
|
||||
|
||||
<!-- dial *#*#TIPS#*#* -->
|
||||
<!-- do not translate -->
|
||||
<string-array name="tips2">
|
||||
<item>Home is a garden
|
||||
\nTouch & hold an empty spot
|
||||
\nTo grow new icons</item>
|
||||
<item>Phone isn’t waterproof
|
||||
\nDo not immerse in water
|
||||
\nor other fluids</item>
|
||||
<item>Want some more home screens?
|
||||
\nSwipe left and right to find them
|
||||
\n(No theft required)</item>
|
||||
<item>Little Home screen dots
|
||||
\nWhat could they possibly do?
|
||||
\nTouch & hold to learn.</item>
|
||||
<item>Status bar icons
|
||||
\nTo discover their secrets
|
||||
\nPull the windowshade</item>
|
||||
<item>There is a trick to
|
||||
\nDragging items twixt Home screens
|
||||
\nPause at the edges</item>
|
||||
<item>Touch Market for apps
|
||||
\nLike a box of chocolates
|
||||
\nEach one a surprise</item>
|
||||
<item>Oh, and by the way:
|
||||
\nCeci n’est pas une trombone
|
||||
\nI am an Android</item>
|
||||
</string-array>
|
||||
</resources>
|
28
android/packages/apps/Protips/res/values/strings.xml
Normal file
28
android/packages/apps/Protips/res/values/strings.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2009 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Name of tips widget (shown in Launcher "add widget" list) -->
|
||||
<string name="widget_name">Home screen tips</string>
|
||||
<!-- Format string for the footer of the tip bubble. Substitutions:
|
||||
%1$d - the number of the current tip
|
||||
%2$d - the total number of tips
|
||||
-->
|
||||
<string name="pager_footer"><xliff:g id="curPage" example="1">%1$d</xliff:g> of <xliff:g id="numPages" example="2">%2$d</xliff:g></string>
|
||||
<!-- String to cause a TTS pause after reading @string/widget_name.
|
||||
Do not translate. -->
|
||||
<string name="tts_pause">.</string>
|
||||
</resources>
|
19
android/packages/apps/Protips/res/values/styles.xml
Normal file
19
android/packages/apps/Protips/res/values/styles.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="TipText">
|
||||
<item name="android:textSize">13sp</item>
|
||||
<item name="android:textColor">@android:color/white</item>
|
||||
<item name="android:textStyle">normal</item>
|
||||
</style>
|
||||
<style name="TipText.Header">
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
<style name="TipText.Message">
|
||||
<item name="android:lineSpacingExtra">0sp</item>
|
||||
</style>
|
||||
<style name="TipText.Footer">
|
||||
<item name="android:textSize">10sp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="android:textColor">#AAAAAA</item>
|
||||
</style>
|
||||
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue