├── ic_launcher-web.png ├── libs ├── android-support-v4.jar └── nineoldandroids-2.4.0.jar ├── res ├── drawable-xhdpi │ ├── graphic.png │ └── ic_launcher.png ├── drawable-hdpi │ ├── ic_launcher.png │ ├── above_shadow.xml │ └── below_shadow.xml ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xxhdpi │ └── ic_launcher.png ├── menu │ └── demo.xml ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml ├── values │ ├── strings.xml │ ├── attrs.xml │ └── styles.xml └── layout │ └── activity_demo.xml ├── settings.gradle ├── README.md ├── .gitattributes ├── project.properties ├── proguard-project.txt ├── AndroidManifest.xml ├── src └── com │ └── sothree │ └── slidinguppanel │ ├── ScrollerCompatIcs.java │ ├── ScrollerCompatGingerbread.java │ ├── demo │ └── DemoActivity.java │ ├── ScrollerCompat.java │ ├── SlidingUpPanelLayout.java │ └── ViewDragHelper.java └── .gitignore /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuchen1109/AndroidSlidingUpPanel/HEAD/ic_launcher-web.png -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuchen1109/AndroidSlidingUpPanel/HEAD/libs/android-support-v4.jar -------------------------------------------------------------------------------- /libs/nineoldandroids-2.4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuchen1109/AndroidSlidingUpPanel/HEAD/libs/nineoldandroids-2.4.0.jar -------------------------------------------------------------------------------- /res/drawable-xhdpi/graphic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuchen1109/AndroidSlidingUpPanel/HEAD/res/drawable-xhdpi/graphic.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuchen1109/AndroidSlidingUpPanel/HEAD/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuchen1109/AndroidSlidingUpPanel/HEAD/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuchen1109/AndroidSlidingUpPanel/HEAD/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuchen1109/AndroidSlidingUpPanel/HEAD/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':Tnt2' 2 | 3 | include 'androidslidingup' 4 | 5 | project(':androidslidingup').projectDir = new File(settingsDir, '../library/') 6 | -------------------------------------------------------------------------------- /res/menu/demo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /res/drawable-hdpi/above_shadow.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /res/drawable-hdpi/below_shadow.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Android Sliding Up Panel 之中文注释 2 | ========================= 3 | 4 | 此实现来之于umano的SlidingUpPanelLayout Open Source(https://github.com/umano/AndroidSlidingUpPanel) 5 | ,不是个人实现的。因个人觉得,此代码简洁明了,很值得学习,所以细细阅读,并在这里面增加了大部分代码的中文注释,便于学习 6 | 7 | As seen in [Umano](http://umanoapp.com) [Android app](https://play.google.com/store/apps/details?id=com.sothree.umano): 8 | 9 | ![SlidingUpPanelLayout](https://raw.github.com/umano/AndroidSlidingUpPanelDemo/master/slidinguppanel.png) 10 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | SlidingUpPanelDemo 4 | Settings 5 | The Awesome Sliding Up Panel
Brought to you by
http://umanoapp.com]]>
6 | on Twitter]]> 7 |
8 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-16 15 | -------------------------------------------------------------------------------- /res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/com/sothree/slidinguppanel/ScrollerCompatIcs.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 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 | */ 16 | 17 | package com.sothree.slidinguppanel; 18 | 19 | import android.widget.OverScroller; 20 | 21 | /** 22 | * ICS API access for ScrollerCompat 23 | */ 24 | class ScrollerCompatIcs { 25 | public static float getCurrVelocity(Object scroller) { 26 | return ((OverScroller) scroller).getCurrVelocity(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /res/layout/activity_demo.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 18 | 19 | 23 | 33 | 34 | 35 | 42 | 43 | 47 | 48 | 56 | 57 |