Skip to content

Commit ab55392

Browse files
committed
Commentary added
1 parent 922af09 commit ab55392

File tree

8 files changed

+109
-1
lines changed

8 files changed

+109
-1
lines changed

dragger/src/main/java/com/github/ppamorim/dragger/BaseDraggerActivity.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (C) 2015 Pedro Paulo de Amorim
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.ppamorim.dragger;
217

318
import android.os.Bundle;

dragger/src/main/java/com/github/ppamorim/dragger/BaseDraggerPanel.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (C) 2015 Pedro Paulo de Amorim
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.ppamorim.dragger;
217

318
import android.content.Context;

dragger/src/main/java/com/github/ppamorim/dragger/DraggerCallback.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
*/
1616
package com.github.ppamorim.dragger;
1717

18+
/**
19+
* This class provide a callback to
20+
* every action at DraggerView classes.
21+
*
22+
* @author Pedro Paulo de Amorim
23+
*/
1824
public interface DraggerCallback {
1925
void onProgress(double progress);
2026
void notifyOpen();

dragger/src/main/java/com/github/ppamorim/dragger/DraggerPanel.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
import android.util.AttributeSet;
2020
import android.view.View;
2121

22+
/**
23+
* Class created to extends a BaseDraggerPanel,
24+
* this need to be used only with fragments
25+
* and do the same of DraggerView
26+
*
27+
* @author Pedro Paulo de Amorim
28+
*/
2229
public class DraggerPanel extends BaseDraggerPanel {
2330

2431
private DraggerView draggerView;

dragger/src/main/java/com/github/ppamorim/dragger/LazyDraggerActivity.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
1+
/*
2+
* Copyright (C) 2015 Pedro Paulo de Amorim
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.ppamorim.dragger;
217

18+
/**
19+
* Class created to provide dragger activity,
20+
* this is the most easy way to use library
21+
* with a delay or when call the show() method
22+
*
23+
* @author Pedro Paulo de Amorim
24+
*/
325
public class LazyDraggerActivity extends BaseDraggerActivity {
426

527
private LazyDraggerPanel lazyDraggerPanel;

dragger/src/main/java/com/github/ppamorim/dragger/LazyDraggerPanel.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
1+
/*
2+
* Copyright (C) 2015 Pedro Paulo de Amorim
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.ppamorim.dragger;
217

318
import android.content.Context;
419
import android.util.AttributeSet;
520

21+
/**
22+
* Class created to provide dragger panel,
23+
* this need to be used only with fragments
24+
* and do the same of LazyDraggerView
25+
*
26+
* @author Pedro Paulo de Amorim
27+
*/
628
public class LazyDraggerPanel extends BaseDraggerPanel {
729

830
private LazyDraggerView lazyDraggerView;

dragger/src/main/java/com/github/ppamorim/dragger/LazyDraggerView.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
1+
/*
2+
* Copyright (C) 2015 Pedro Paulo de Amorim
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.ppamorim.dragger;
217

318
import android.content.Context;
419
import android.util.AttributeSet;
520

21+
/**
22+
* Class created to provide a lazy expand
23+
* this will show the view when the method
24+
* show() is called
25+
*
26+
* @author Pedro Paulo de Amorim
27+
*/
628
public class LazyDraggerView extends DraggerView {
729

830
public LazyDraggerView(Context context) {

dragger/src/main/java/com/github/ppamorim/dragger/ViewDragHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.github.ppamorim.dragger;
22

3-
43
import android.content.Context;
54
import android.support.v4.view.MotionEventCompat;
65
import android.support.v4.view.VelocityTrackerCompat;

0 commit comments

Comments
 (0)