File tree Expand file tree Collapse file tree 8 files changed +109
-1
lines changed
dragger/src/main/java/com/github/ppamorim/dragger Expand file tree Collapse file tree 8 files changed +109
-1
lines changed Original file line number Diff line number Diff line change
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
+ */
1
16
package com .github .ppamorim .dragger ;
2
17
3
18
import android .os .Bundle ;
Original file line number Diff line number Diff line change
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
+ */
1
16
package com .github .ppamorim .dragger ;
2
17
3
18
import android .content .Context ;
Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .github .ppamorim .dragger ;
17
17
18
+ /**
19
+ * This class provide a callback to
20
+ * every action at DraggerView classes.
21
+ *
22
+ * @author Pedro Paulo de Amorim
23
+ */
18
24
public interface DraggerCallback {
19
25
void onProgress (double progress );
20
26
void notifyOpen ();
Original file line number Diff line number Diff line change 19
19
import android .util .AttributeSet ;
20
20
import android .view .View ;
21
21
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
+ */
22
29
public class DraggerPanel extends BaseDraggerPanel {
23
30
24
31
private DraggerView draggerView ;
Original file line number Diff line number Diff line change
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
+ */
1
16
package com .github .ppamorim .dragger ;
2
17
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
+ */
3
25
public class LazyDraggerActivity extends BaseDraggerActivity {
4
26
5
27
private LazyDraggerPanel lazyDraggerPanel ;
Original file line number Diff line number Diff line change
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
+ */
1
16
package com .github .ppamorim .dragger ;
2
17
3
18
import android .content .Context ;
4
19
import android .util .AttributeSet ;
5
20
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
+ */
6
28
public class LazyDraggerPanel extends BaseDraggerPanel {
7
29
8
30
private LazyDraggerView lazyDraggerView ;
Original file line number Diff line number Diff line change
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
+ */
1
16
package com .github .ppamorim .dragger ;
2
17
3
18
import android .content .Context ;
4
19
import android .util .AttributeSet ;
5
20
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
+ */
6
28
public class LazyDraggerView extends DraggerView {
7
29
8
30
public LazyDraggerView (Context context ) {
Original file line number Diff line number Diff line change 1
1
package com .github .ppamorim .dragger ;
2
2
3
-
4
3
import android .content .Context ;
5
4
import android .support .v4 .view .MotionEventCompat ;
6
5
import android .support .v4 .view .VelocityTrackerCompat ;
You can’t perform that action at this time.
0 commit comments