forked from Trinea/android-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trinea android demo, u can visit www.trinea.cn. include DropDownListV…
…iewDemo DownloadManagerDemo ViewPagerMulTiFragmentDemo SlideOnePageGalleryDemo ServiceDemo BroadcastReceiverDemo
- Loading branch information
0 parents
commit 1538fb8
Showing
60 changed files
with
2,759 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="gen"/> | ||
<classpathentry kind="output" path="bin/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>TrineaAndroidDemo</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="cn.trinea.android.demo" | ||
android:installLocation="preferExternal" | ||
android:versionCode="28" | ||
android:versionName="2.9.4" > | ||
|
||
<uses-sdk android:minSdkVersion="14" /> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<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: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=".DemoList" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/app_name" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".DownloadManagerDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/download_manager_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
<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=".DropDownListViewDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/dropdownlistview_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
</activity> | ||
<activity | ||
android:name=".BorderScrollViewDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/borderscrollview_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
</activity> | ||
<activity | ||
android:name=".SearchViewDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/search_view_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
</activity> | ||
<activity | ||
android:name=".ViewPagerMulTiFragmentDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/view_pager_multi_fragment_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
</activity> | ||
<activity | ||
android:name=".SlideOnePageGalleryDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/slide_one_page_gallery_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
</activity> | ||
<activity | ||
android:name=".ViewPagerDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/view_pager_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
</activity> | ||
<activity | ||
android:name=".BroadcastReceiverDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/broadcastreceiver_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
</activity> | ||
<activity | ||
android:name=".ServiceDemo" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:label="@string/service_demo_activity_title" | ||
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge" > | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-optimizationpasses 5 | ||
-dontusemixedcaseclassnames | ||
-dontskipnonpubliclibraryclasses | ||
-dontpreverify | ||
-verbose | ||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | ||
|
||
-keep public class * extends android.app.Activity | ||
-keep public class * extends android.app.Application | ||
-keep public class * extends android.app.Service | ||
-keep public class * extends android.content.BroadcastReceiver | ||
-keep public class * extends android.content.ContentProvider | ||
-keep public class * extends android.app.backup.BackupAgentHelper | ||
-keep public class * extends android.preference.Preference | ||
-keep public class com.android.vending.licensing.ILicensingService | ||
|
||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
public <init>(android.content.Context, android.util.AttributeSet); | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
public <init>(android.content.Context, android.util.AttributeSet, int); | ||
} | ||
|
||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
-keep class * implements android.os.Parcelable { | ||
public static final android.os.Parcelable$Creator *; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This file is automatically generated by Android Tools. | ||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
# | ||
# This file must be checked in Version Control Systems. | ||
# | ||
# To customize properties used by the Ant build system edit | ||
# "ant.properties", and override values to adapt the script to your | ||
# project structure. | ||
# | ||
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): | ||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt | ||
|
||
# Project target. | ||
target=android-14 | ||
android.library.reference.1=../trinea-android-common |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<item android:drawable="@drawable/button_press" android:state_pressed="true"/> | ||
<item android:drawable="@android:color/transparent" android:state_focused="false" android:state_pressed="false"/> | ||
<item android:drawable="@drawable/button_press" android:state_focused="true"/> | ||
<item android:drawable="@android:color/transparent" android:state_focused="false"/> | ||
|
||
</selector> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
<cn.trinea.android.common.view.BorderScrollView | ||
android:id="@+id/scroll_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_marginBottom="@dimen/dp_40" | ||
android:orientation="vertical" > | ||
|
||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" > | ||
|
||
<TextView | ||
android:id="@+id/top_text" | ||
android:layout_width="match_parent" | ||
android:layout_height="20dp" | ||
android:gravity="center" | ||
android:text="top text" /> | ||
|
||
<TextView | ||
android:id="@+id/text1" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/top_text" | ||
android:gravity="center" | ||
android:text="text1" /> | ||
|
||
<TextView | ||
android:id="@+id/text2" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/text1" | ||
android:gravity="center" | ||
android:text="text2" /> | ||
|
||
<TextView | ||
android:id="@+id/bottom_text" | ||
android:layout_width="match_parent" | ||
android:layout_height="20dp" | ||
android:layout_below="@+id/text2" | ||
android:gravity="center" | ||
android:text="bottom text" /> | ||
</RelativeLayout> | ||
</cn.trinea.android.common.view.BorderScrollView> | ||
|
||
<include layout="@layout/trinea_info" /> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
<ScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_marginBottom="@dimen/dp_40" > | ||
|
||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" > | ||
|
||
<Button | ||
android:id="@+id/sendGeneralBroadcast" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/send_general_broadcast" /> | ||
|
||
<Button | ||
android:id="@+id/sendLocalBroadcast" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/sendGeneralBroadcast" | ||
android:text="@string/send_local_broadcast" /> | ||
|
||
<Button | ||
android:id="@+id/sendOrderedBroadcast" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/sendLocalBroadcast" | ||
android:text="@string/send_ordered_broadcast" /> | ||
|
||
<Button | ||
android:id="@+id/sendStickyBroadcast" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/sendOrderedBroadcast" | ||
android:text="@string/send_sticky_broadcast" /> | ||
</RelativeLayout> | ||
</ScrollView> | ||
|
||
<include layout="@layout/trinea_info" /> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
|
||
<ListView | ||
android:id="@+id/simpleListView" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_marginBottom="@dimen/dp_40" | ||
android:paddingLeft="@dimen/dp_8" | ||
android:paddingRight="@dimen/dp_8" | ||
android:scrollbarStyle="outsideOverlay" /> | ||
|
||
<include layout="@layout/trinea_info" /> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingTop="20dp" > | ||
|
||
<Button | ||
android:id="@+id/download_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" /> | ||
|
||
<TextView | ||
android:id="@+id/download_size" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="20dp" | ||
android:ellipsize="end" | ||
android:singleLine="true" | ||
android:visibility="gone" /> | ||
|
||
<TextView | ||
android:id="@+id/download_precent" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignTop="@+id/download_size" | ||
android:layout_marginRight="50dp" | ||
android:ellipsize="end" | ||
android:singleLine="true" | ||
android:visibility="gone" /> | ||
|
||
<ProgressBar | ||
android:id="@+id/download_progress" | ||
style="?android:attr/progressBarStyleHorizontal" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/download_size" | ||
android:layout_marginLeft="20dp" | ||
android:layout_marginRight="50dp" | ||
android:visibility="gone" /> | ||
|
||
<Button | ||
android:id="@+id/download_cancel" | ||
style="?android:attr/buttonBarButtonStyle" | ||
android:layout_width="40dp" | ||
android:layout_height="wrap_content" | ||
android:layout_alignBottom="@+id/download_progress" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignRight="@+id/download_progress" | ||
android:drawableBottom="@drawable/icon_stop" | ||
android:gravity="bottom" | ||
android:visibility="gone" /> | ||
|
||
<TextView | ||
android:id="@+id/download_tip" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:layout_marginLeft="20dp" | ||
android:layout_marginTop="70dp" | ||
android:gravity="left" /> | ||
|
||
<include layout="@layout/trinea_info" /> | ||
|
||
</RelativeLayout> |
Oops, something went wrong.