Skip to content

Commit

Permalink
Add tips for autoScrollViewPagerDemo
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinea committed Apr 27, 2014
1 parent 51cd0eb commit 7bbcb70
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 147 deletions.
291 changes: 145 additions & 146 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,147 +1,146 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cn.trinea.android.demo"
android:versionCode="46"
android:versionName="3.1.4" >

<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="14" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />

<application
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<service android:name=".MyService" />
<service android:name=".MyIntentService" />
<service android:name=".MyAIDLService" >
<intent-filter>
<action android:name="cn.trinea.android.demo.remote.MyAIDLServiceAction" />
</intent-filter>
</service>

<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:host="demo.android"
android:scheme="trinea" />
</intent-filter>
</activity>
<activity
android:name=".DownloadManagerDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/download_manager_demo_activity_title"
android:theme="@style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="application/cn.trinea.download.file" />
</intent-filter>
</activity>
<activity
android:name=".ImageSDCardCacheDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/imagesdcardcache_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".HttpCacheDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/httpcache_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".ImageCacheDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/imagecache_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".DropDownListViewDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/dropdownlistview_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".AutoScrollViewPagerDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/auto_scroll_view_pager_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".AutoScrollViewPagerInnerDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/auto_scroll_view_pager_inner_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".BorderScrollViewDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/borderscrollview_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".SearchViewDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/search_view_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".ViewPagerMulTiFragmentDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/view_pager_multi_fragment_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".SlideOnePageGalleryDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/slide_one_page_gallery_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".ViewPagerDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/view_pager_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".BroadcastReceiverDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/broadcastreceiver_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".ServiceDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/service_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
</application>

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cn.trinea.android.demo"
android:versionCode="47"
android:versionName="3.1.5" >

<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="14" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />

<application
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<service android:name=".MyService" />
<service android:name=".MyIntentService" />
<service android:name=".MyAIDLService" >
<intent-filter>
<action android:name="cn.trinea.android.demo.remote.MyAIDLServiceAction" />
</intent-filter>
</service>

<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:host="demo.android"
android:scheme="trinea" />
</intent-filter>
</activity>
<activity
android:name=".DownloadManagerDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/download_manager_demo_activity_title"
android:theme="@style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="application/cn.trinea.download.file" />
</intent-filter>
</activity>
<activity
android:name=".ImageSDCardCacheDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/imagesdcardcache_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".HttpCacheDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/httpcache_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".ImageCacheDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/imagecache_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".DropDownListViewDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/dropdownlistview_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".AutoScrollViewPagerDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/auto_scroll_view_pager_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".AutoScrollViewPagerInnerDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/auto_scroll_view_pager_inner_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".BorderScrollViewDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/borderscrollview_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".SearchViewDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/search_view_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".ViewPagerMulTiFragmentDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/view_pager_multi_fragment_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".SlideOnePageGalleryDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/slide_one_page_gallery_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".ViewPagerDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/view_pager_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".BroadcastReceiverDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/broadcastreceiver_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name=".ServiceDemo"
android:configChanges="orientation|keyboardHidden"
android:label="@string/service_demo_activity_title"
android:theme="@style/AppTheme" >
</activity>
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
</application>

</manifest>
Expand Down
2 changes: 2 additions & 0 deletions res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@
<string name="desc_image_cache">ImageCache使用</string>
<string name="desc_image_sdcard_cache">ImageSDCardCache使用</string>
<string name="desc_http_cache">HttpCache使用</string>
<string name="desc_auto_scroll_view_pager_inner">自动滚动ViewPager嵌套使用</string>
<string name="desc_auto_scroll_view_pager">自动滚动ViewPager使用</string>
<string name="desc_default">Trinea</string>
</resources>
2 changes: 2 additions & 0 deletions res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@
<string name="desc_image_cache">ImageCache使用</string>
<string name="desc_image_sdcard_cache">ImageSDCardCache使用</string>
<string name="desc_http_cache">HttpCache使用</string>
<string name="desc_auto_scroll_view_pager_inner">自動滾動ViewPager嵌套使用</string>
<string name="desc_auto_scroll_view_pager">自動滾動ViewPager使用</string>
<string name="desc_default">Trinea</string>
</resources>
2 changes: 2 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
<string name="desc_image_cache">ImageCache Usage</string>
<string name="desc_image_sdcard_cache">ImageSDCardCache Usage</string>
<string name="desc_http_cache">HttpCache Usage</string>
<string name="desc_auto_scroll_view_pager_inner">Autoscroll ViewPager in ViewPager Usage</string>
<string name="desc_auto_scroll_view_pager">Autoscroll ViewPager Usage</string>
<string name="desc_default">Trinea</string>
</resources>
2 changes: 1 addition & 1 deletion src/cn/trinea/android/demo/ImagePagerFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void onStop() {
/**
* ScrollControlReceiver
*
* @author <a href="http://www.trinea.cn" target="_blank">Trinea</a> 2014年4月26日
* @author <a href="http://www.trinea.cn" target="_blank">Trinea</a> 2014-4-26
*/
private class ScrollControlReceiver extends BroadcastReceiver {

Expand Down
8 changes: 8 additions & 0 deletions src/cn/trinea/android/demo/utils/AppUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import cn.trinea.android.demo.AutoScrollViewPagerDemo;
import cn.trinea.android.demo.AutoScrollViewPagerInnerDemo;
import cn.trinea.android.demo.BorderScrollViewDemo;
import cn.trinea.android.demo.BroadcastReceiverDemo;
import cn.trinea.android.demo.DownloadManagerDemo;
Expand Down Expand Up @@ -125,6 +127,12 @@ private static String[] getText(Activity activity) {
} else if (sourClass == HttpCacheDemo.class) {
url = "http://www.trinea.cn/android/android-http-cache/";
contentSrcId = R.string.desc_http_cache;
} else if (sourClass == AutoScrollViewPagerInnerDemo.class) {
url = "http://www.trinea.cn/android/auto-scroll-view-pager/";
contentSrcId = R.string.desc_auto_scroll_view_pager_inner;
} else if (sourClass == AutoScrollViewPagerDemo.class) {
url = "http://www.trinea.cn/android/auto-scroll-view-pager/";
contentSrcId = R.string.desc_auto_scroll_view_pager;
} else {
prefixSrcId = R.string.profile;
url = "http://www.trinea.cn";
Expand Down

0 comments on commit 7bbcb70

Please sign in to comment.