├── example ├── lint.xml ├── ic_launcher-web.png ├── libs │ └── android-support-v4.jar ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ ├── values │ │ ├── strings.xml │ │ └── styles.xml │ ├── menu │ │ └── example_activity.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ └── layout │ │ ├── example_activity.xml │ │ └── example_fragment.xml ├── gen │ └── com │ │ ├── mapsaurus │ │ ├── panesexample │ │ │ └── BuildConfig.java │ │ └── panelayout │ │ │ └── R.java │ │ └── actionbarsherlock │ │ └── R.java ├── project.properties ├── proguard-project.txt ├── AndroidManifest.xml └── src │ └── com │ └── mapsaurus │ └── panesexample │ ├── ExampleActivity.java │ └── ExampleFragment.java ├── library ├── lint.xml ├── ic_launcher-web.png ├── libs │ └── android-support-v4.jar ├── res │ ├── drawable-hdpi │ │ ├── ic_drawer.png │ │ ├── ic_launcher.png │ │ ├── action_search.png │ │ └── drawer_shadow.9.png │ ├── drawable-mdpi │ │ ├── ic_drawer.png │ │ ├── ic_launcher.png │ │ ├── action_search.png │ │ └── drawer_shadow.9.png │ ├── drawable-xhdpi │ │ ├── ic_drawer.png │ │ ├── action_search.png │ │ ├── ic_launcher.png │ │ └── drawer_shadow.9.png │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ ├── values │ │ ├── dimen.xml │ │ ├── strings.xml │ │ └── styles.xml │ ├── layout │ │ ├── menu_frame.xml │ │ ├── panes_layout.xml │ │ └── phone_layout.xml │ ├── menu │ │ └── activity_pane_layout_example.xml │ ├── drawable │ │ ├── shadow_left.xml │ │ └── shadow_right.xml │ ├── values-v11 │ │ └── styles.xml │ └── values-v14 │ │ └── styles.xml ├── gen │ └── com │ │ └── mapsaurus │ │ └── panelayout │ │ └── BuildConfig.java ├── src │ └── com │ │ └── mapsaurus │ │ └── paneslayout │ │ ├── FragmentLauncher.java │ │ ├── PanesSizer.java │ │ ├── ActivityDelegate.java │ │ ├── PanesActivity.java │ │ ├── SimpleScrollView.java │ │ ├── MenuItemWrapper.java │ │ ├── PhoneDelegate.java │ │ ├── TabletDelegate.java │ │ └── PanesLayout.java ├── project.properties ├── proguard-project.txt └── AndroidManifest.xml ├── .gitignore └── README.md /example/lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /library/lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | */.* 2 | *#*# 3 | *.#* 4 | *~ 5 | *.class 6 | */bin/* 7 | */bin/* 8 | -------------------------------------------------------------------------------- /example/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/example/ic_launcher-web.png -------------------------------------------------------------------------------- /library/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/ic_launcher-web.png -------------------------------------------------------------------------------- /example/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/example/libs/android-support-v4.jar -------------------------------------------------------------------------------- /library/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/libs/android-support-v4.jar -------------------------------------------------------------------------------- /library/res/drawable-hdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-hdpi/ic_drawer.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-mdpi/ic_drawer.png -------------------------------------------------------------------------------- /example/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/example/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/example/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/res/drawable-xhdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-xhdpi/ic_drawer.png -------------------------------------------------------------------------------- /example/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/example/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/example/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-hdpi/action_search.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-mdpi/action_search.png -------------------------------------------------------------------------------- /library/res/drawable-xhdpi/action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-xhdpi/action_search.png -------------------------------------------------------------------------------- /library/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-hdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-mdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /library/res/drawable-xhdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cricklet/Android-PanesLibrary/HEAD/library/res/drawable-xhdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /example/gen/com/mapsaurus/panesexample/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.mapsaurus.panesexample; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /library/gen/com/mapsaurus/panelayout/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.mapsaurus.panelayout; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /library/res/values/dimen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14dp 5 | 4dp 6 | 96dp 7 | 8 | -------------------------------------------------------------------------------- /example/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PanesExample 5 | Settings 6 | Hello world! 7 | 8 | -------------------------------------------------------------------------------- /library/res/layout/menu_frame.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /library/src/com/mapsaurus/paneslayout/FragmentLauncher.java: -------------------------------------------------------------------------------- 1 | package com.mapsaurus.paneslayout; 2 | 3 | import android.support.v4.app.Fragment; 4 | 5 | public interface FragmentLauncher { 6 | 7 | public void addFragment(Fragment prevFragment, Fragment newFragment); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /library/res/layout/panes_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | -------------------------------------------------------------------------------- /example/res/menu/example_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /library/res/menu/activity_pane_layout_example.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /library/res/drawable/shadow_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /library/res/drawable/shadow_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /library/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /library/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PaneLayoutLibrary 5 | Settings 6 | Hello world! 7 | 8 | Open navigation drawer 9 | Close navigation drawer 10 | -------------------------------------------------------------------------------- /example/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /library/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /example/res/layout/example_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /example/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-17 15 | android.library.reference.1=../library 16 | -------------------------------------------------------------------------------- /library/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-17 15 | android.library=true 16 | android.library.reference.1=../../ActionBarSherlock/actionbarsherlock 17 | -------------------------------------------------------------------------------- /example/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /library/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /library/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 | -------------------------------------------------------------------------------- /library/src/com/mapsaurus/paneslayout/PanesSizer.java: -------------------------------------------------------------------------------- 1 | package com.mapsaurus.paneslayout; 2 | 3 | public interface PanesSizer { 4 | 5 | /** 6 | * Used to specify the sizes of each pane. 7 | */ 8 | public interface PaneSizer { 9 | /** 10 | * @param index = the index of this pane 11 | * @param type = the type of this pane (the possible types are arbitrary) 12 | * @param parentWidth = the width of the panes layout 13 | * @param parentHeight = the height of the panes layout 14 | */ 15 | public int getWidth(int index, int type, int parentWidth, int parentHeight); 16 | 17 | /** 18 | * @param o = fragment/view 19 | * @return the type associated with this object 20 | */ 21 | public int getType(Object o); 22 | 23 | /** 24 | * @param o = fragment/view 25 | * @return whether this fragment/view should be focused 26 | */ 27 | public boolean getFocused(Object o); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /library/res/layout/phone_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 19 | 20 | -------------------------------------------------------------------------------- /example/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /library/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/res/layout/example_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 12 | 13 | 20 | 21 |