Skip to content

Commit 04ea3a9

Browse files
author
Issac
committed
initial commit
Signed-off-by: Issac <[email protected]>
0 parents  commit 04ea3a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3958
-0
lines changed

Diff for: .gitignore

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#Android generated
2+
bin
3+
gen
4+
gen*
5+
6+
#Eclipse
7+
.project
8+
.classpath
9+
.settings
10+
11+
#IntelliJ IDEA
12+
.idea
13+
*.iml
14+
*.ipr
15+
*.iws
16+
out
17+
build
18+
19+
#Maven
20+
target
21+
release.properties
22+
pom.xml.*
23+
24+
#Ant
25+
build.xml
26+
local.properties
27+
proguard.cfg
28+
29+
#OSX
30+
.DS_Store

Diff for: .gradle/1.6/taskArtifacts/cache.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Sun Aug 11 22:27:11 CST 2013

Diff for: .gradle/1.6/taskArtifacts/cache.properties.lock

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


Diff for: .gradle/1.6/taskArtifacts/fileHashes.bin

36.3 KB
Binary file not shown.

Diff for: .gradle/1.6/taskArtifacts/fileSnapshots.bin

463 KB
Binary file not shown.

Diff for: .gradle/1.6/taskArtifacts/outputFileStates.bin

25.5 KB
Binary file not shown.

Diff for: .gradle/1.6/taskArtifacts/taskArtifacts.bin

102 KB
Binary file not shown.

Diff for: SwipeBackDemo/build.gradle

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'com.android.tools.build:gradle:0.5.+'
7+
}
8+
}
9+
apply plugin: 'android'
10+
11+
repositories {
12+
mavenCentral()
13+
}
14+
15+
dependencies {
16+
compile 'com.android.support:support-v4:13.0.+'
17+
compile project(':SwipeBackLayout')
18+
}
19+
20+
android {
21+
compileSdkVersion 17
22+
buildToolsVersion "17.0.0"
23+
24+
defaultConfig {
25+
minSdkVersion 14
26+
targetSdkVersion 14
27+
}
28+
}

Diff for: SwipeBackDemo/libs/android-support-v4.jar

543 KB
Binary file not shown.

Diff for: SwipeBackDemo/src/main/AndroidManifest.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="me.imid.swipebacklayout.demo"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="14"
9+
android:targetSdkVersion="14" />
10+
11+
<application
12+
android:allowBackup="true"
13+
android:icon="@drawable/ic_launcher"
14+
android:label="@string/app_name"
15+
android:theme="@style/AppTheme" >
16+
<activity
17+
android:name="me.imid.swipebacklayout.demo.MainActivity"
18+
android:label="@string/app_name" >
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN" />
21+
22+
<category android:name="android.intent.category.LAUNCHER" />
23+
</intent-filter>
24+
</activity>
25+
<activity
26+
android:name="me.imid.swipebacklayout.demo.TestActivity"
27+
android:label="@string/app_name" />
28+
</application>
29+
30+
</manifest>

Diff for: SwipeBackDemo/src/main/ic_launcher-web.png

46 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
package me.imid.swipebacklayout.demo;
3+
4+
import android.app.Activity;
5+
import android.content.Intent;
6+
import android.os.Bundle;
7+
import android.view.Menu;
8+
import android.view.View;
9+
10+
public class MainActivity extends Activity {
11+
12+
@Override
13+
protected void onCreate(Bundle savedInstanceState) {
14+
super.onCreate(savedInstanceState);
15+
setContentView(R.layout.activity_main);
16+
findViewById(R.id.btn).setOnClickListener(new View.OnClickListener() {
17+
@Override
18+
public void onClick(View v) {
19+
startActivity(new Intent(MainActivity.this, TestActivity.class));
20+
}
21+
});
22+
}
23+
24+
@Override
25+
public boolean onCreateOptionsMenu(Menu menu) {
26+
// Inflate the menu; this adds items to the action bar if it is present.
27+
getMenuInflater().inflate(R.menu.main, menu);
28+
return true;
29+
}
30+
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
package me.imid.swipebacklayout.demo;
3+
4+
import android.content.Intent;
5+
import android.os.Bundle;
6+
import android.view.View;
7+
8+
import me.imid.swipebacklayout.lib.app.SwipeBackActivity;
9+
10+
/**
11+
* Created by Issac on 8/11/13.
12+
*/
13+
public class TestActivity extends SwipeBackActivity {
14+
@Override
15+
protected void onCreate(Bundle savedInstanceState) {
16+
super.onCreate(savedInstanceState);
17+
setContentView(R.layout.activity_test);
18+
findViewById(R.id.btn).setOnClickListener(new View.OnClickListener() {
19+
@Override
20+
public void onClick(View v) {
21+
startActivity(new Intent(TestActivity.this, TestActivity.class));
22+
}
23+
});
24+
}
25+
}
7.6 KB
Loading
3.67 KB
Loading
12.1 KB
Loading
24.2 KB
Loading

Diff for: SwipeBackDemo/src/main/res/layout/activity_main.xml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:paddingLeft="@dimen/activity_horizontal_margin"
6+
android:paddingRight="@dimen/activity_horizontal_margin"
7+
android:paddingTop="@dimen/activity_vertical_margin"
8+
android:paddingBottom="@dimen/activity_vertical_margin"
9+
tools:context=".MainActivity">
10+
11+
<Button
12+
android:id="@+id/btn"
13+
android:layout_width="wrap_content"
14+
android:layout_height="wrap_content"
15+
android:text="@string/start_activity" />
16+
17+
</RelativeLayout>

Diff for: SwipeBackDemo/src/main/res/layout/activity_test.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:layout_width="match_parent"
3+
android:layout_height="match_parent"
4+
android:paddingLeft="@dimen/activity_horizontal_margin"
5+
android:paddingRight="@dimen/activity_horizontal_margin"
6+
android:paddingTop="@dimen/activity_vertical_margin"
7+
android:paddingBottom="@dimen/activity_vertical_margin"
8+
>
9+
10+
<Button
11+
android:id="@+id/btn"
12+
android:layout_width="wrap_content"
13+
android:layout_height="wrap_content"
14+
android:text="@string/start_activity"/>
15+
16+
</RelativeLayout>

Diff for: SwipeBackDemo/src/main/res/menu/main.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<menu xmlns:android="http://schemas.android.com/apk/res/android">
2+
<item android:id="@+id/action_settings"
3+
android:title="@string/action_settings"
4+
android:orderInCategory="100"
5+
android:showAsAction="never" />
6+
</menu>

Diff for: SwipeBackDemo/src/main/res/values-sw600dp/dimens.xml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<resources>
2+
<!-- Customize dimensions originally defined in res/values/dimens.xml (such as
3+
screen margins) for sw600dp devices (e.g. 7" tablets) here. -->
4+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<resources>
2+
<!-- Customize dimensions originally defined in res/values/dimens.xml (such as
3+
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. -->
4+
<dimen name="activity_horizontal_margin">128dp</dimen>
5+
</resources>

Diff for: SwipeBackDemo/src/main/res/values-v11/styles.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 11+. This theme completely replaces
5+
AppBaseTheme from res/values/styles.xml on API 11+ devices.
6+
-->
7+
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
8+
<!-- API 11 theme customizations can go here. -->
9+
<item name="android:windowIsTranslucent">true</item>
10+
</style>
11+
12+
</resources>

Diff for: SwipeBackDemo/src/main/res/values-v14/styles.xml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 14+. This theme completely replaces
5+
AppBaseTheme from BOTH res/values/styles.xml and
6+
res/values-v11/styles.xml on API 14+ devices.
7+
-->
8+
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
9+
<!-- API 14 theme customizations can go here. -->
10+
<item name="android:windowIsTranslucent">true</item>
11+
</style>
12+
13+
</resources>

Diff for: SwipeBackDemo/src/main/res/values/dimens.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<resources>
2+
<!-- Default screen margins, per the Android Design guidelines. -->
3+
<dimen name="activity_horizontal_margin">16dp</dimen>
4+
<dimen name="activity_vertical_margin">16dp</dimen>
5+
</resources>

Diff for: SwipeBackDemo/src/main/res/values/strings.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">SwipeBackDemo</string>
5+
<string name="action_settings">Settings</string>
6+
<string name="hello_world">Hello world!</string>
7+
<string name="start_activity">Start new activity!</string>
8+
9+
</resources>

Diff for: SwipeBackDemo/src/main/res/values/styles.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme, dependent on API level. This theme is replaced
5+
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6+
-->
7+
<style name="AppBaseTheme" parent="android:Theme.Light">
8+
<!--
9+
Theme customizations available in newer API levels can go in
10+
res/values-vXX/styles.xml, while customizations related to
11+
backward-compatibility can go here.
12+
-->
13+
</style>
14+
15+
<!-- Application theme. -->
16+
<style name="AppTheme" parent="AppBaseTheme">
17+
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
18+
</style>
19+
20+
</resources>

Diff for: SwipeBackLayout/build.gradle

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'com.android.tools.build:gradle:0.5.+'
7+
}
8+
}
9+
apply plugin: 'android-library'
10+
11+
repositories {
12+
mavenCentral()
13+
}
14+
15+
dependencies {
16+
compile 'com.android.support:support-v4:13.0.+'
17+
}
18+
19+
android {
20+
compileSdkVersion 17
21+
buildToolsVersion "17.0.0"
22+
23+
defaultConfig {
24+
minSdkVersion 14
25+
targetSdkVersion 14
26+
}
27+
}

Diff for: SwipeBackLayout/libs/android-support-v4.jar

543 KB
Binary file not shown.

Diff for: SwipeBackLayout/src/main/AndroidManifest.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="me.imid.swipebacklayout.lib"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="14" />
10+
11+
<application
12+
android:allowBackup="true"
13+
android:icon="@drawable/ic_launcher"
14+
android:label="@string/app_name"
15+
android:theme="@style/AppTheme" >
16+
</application>
17+
18+
</manifest>

Diff for: SwipeBackLayout/src/main/ic_launcher-web.png

46 KB
Loading

0 commit comments

Comments
 (0)