├── example ├── res │ ├── drawable │ │ ├── shade_handlebar.9.png │ │ └── shade_handlebar_vertical.9.png │ ├── values │ │ └── strings.xml │ └── layout │ │ └── main.xml ├── AndroidManifest.xml ├── build.properties ├── proguard.cfg ├── src │ └── com │ │ └── fsck │ │ └── example │ │ └── splitview │ │ └── Home.java └── build.xml ├── lib ├── res │ ├── values │ │ ├── strings.xml │ │ └── attrs.xml │ └── layout │ │ └── main.xml ├── AndroidManifest.xml ├── build.properties ├── proguard.cfg ├── build.xml └── src │ └── com │ └── fsck │ └── splitview │ └── SplitView.java └── NOTICE /example/res/drawable/shade_handlebar.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k9mail/splitview/HEAD/example/res/drawable/shade_handlebar.9.png -------------------------------------------------------------------------------- /example/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Home 4 | 5 | -------------------------------------------------------------------------------- /example/res/drawable/shade_handlebar_vertical.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k9mail/splitview/HEAD/example/res/drawable/shade_handlebar_vertical.9.png -------------------------------------------------------------------------------- /lib/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ACTIVITY_ENTRY_NAME 4 | 5 | -------------------------------------------------------------------------------- /lib/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /example/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /lib/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /lib/build.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /example/build.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | android.library.reference.1=../lib 19 | 20 | -------------------------------------------------------------------------------- /lib/proguard.cfg: -------------------------------------------------------------------------------- 1 | -optimizationpasses 5 2 | -dontusemixedcaseclassnames 3 | -dontskipnonpubliclibraryclasses 4 | -dontpreverify 5 | -verbose 6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 7 | 8 | -keep public class * extends android.app.Activity 9 | -keep public class * extends android.app.Application 10 | -keep public class * extends android.app.Service 11 | -keep public class * extends android.content.BroadcastReceiver 12 | -keep public class * extends android.content.ContentProvider 13 | -keep public class * extends android.app.backup.BackupAgentHelper 14 | -keep public class * extends android.preference.Preference 15 | -keep public class com.android.vending.licensing.ILicensingService 16 | 17 | -keepclasseswithmembernames class * { 18 | native ; 19 | } 20 | 21 | -keepclasseswithmembernames class * { 22 | public (android.content.Context, android.util.AttributeSet); 23 | } 24 | 25 | -keepclasseswithmembernames class * { 26 | public (android.content.Context, android.util.AttributeSet, int); 27 | } 28 | 29 | -keepclassmembers enum * { 30 | public static **[] values(); 31 | public static ** valueOf(java.lang.String); 32 | } 33 | 34 | -keep class * implements android.os.Parcelable { 35 | public static final android.os.Parcelable$Creator *; 36 | } 37 | -------------------------------------------------------------------------------- /example/proguard.cfg: -------------------------------------------------------------------------------- 1 | -optimizationpasses 5 2 | -dontusemixedcaseclassnames 3 | -dontskipnonpubliclibraryclasses 4 | -dontpreverify 5 | -verbose 6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 7 | 8 | -keep public class * extends android.app.Activity 9 | -keep public class * extends android.app.Application 10 | -keep public class * extends android.app.Service 11 | -keep public class * extends android.content.BroadcastReceiver 12 | -keep public class * extends android.content.ContentProvider 13 | -keep public class * extends android.app.backup.BackupAgentHelper 14 | -keep public class * extends android.preference.Preference 15 | -keep public class com.android.vending.licensing.ILicensingService 16 | 17 | -keepclasseswithmembernames class * { 18 | native ; 19 | } 20 | 21 | -keepclasseswithmembernames class * { 22 | public (android.content.Context, android.util.AttributeSet); 23 | } 24 | 25 | -keepclasseswithmembernames class * { 26 | public (android.content.Context, android.util.AttributeSet, int); 27 | } 28 | 29 | -keepclassmembers enum * { 30 | public static **[] values(); 31 | public static ** valueOf(java.lang.String); 32 | } 33 | 34 | -keep class * implements android.os.Parcelable { 35 | public static final android.os.Parcelable$Creator *; 36 | } 37 | -------------------------------------------------------------------------------- /example/src/com/fsck/example/splitview/Home.java: -------------------------------------------------------------------------------- 1 | package com.fsck.example.splitview; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.view.View; 6 | import android.widget.Button; 7 | import android.view.View.OnClickListener; 8 | import com.fsck.splitview.SplitView; 9 | 10 | public class Home extends Activity 11 | { 12 | private Button mHalves; 13 | private Button mMaximizePrimaryContent; 14 | private Button mMaximizeSecondaryContent; 15 | 16 | /** Called when the activity is first created. */ 17 | @Override 18 | public void onCreate(Bundle savedInstanceState) 19 | { 20 | super.onCreate(savedInstanceState); 21 | setContentView(R.layout.main); 22 | 23 | mMaximizePrimaryContent = (Button)findViewById(R.id.maximize_primary); 24 | mMaximizePrimaryContent.setOnClickListener( new OnClickListener() { 25 | @Override public void onClick(View v) { 26 | ((SplitView)findViewById(R.id.split_view)).maximizePrimaryContent(); 27 | } 28 | 29 | }); 30 | 31 | mMaximizeSecondaryContent = (Button)findViewById(R.id.maximize_secondary); 32 | mMaximizeSecondaryContent.setOnClickListener( new OnClickListener() { 33 | @Override public void onClick(View v) { 34 | ((SplitView)findViewById(R.id.split_view)).maximizeSecondaryContent(); 35 | } 36 | 37 | }); 38 | 39 | mHalves = (Button)findViewById(R.id.halves); 40 | mHalves.setOnClickListener( new OnClickListener() { 41 | @Override public void onClick(View v) { 42 | ((SplitView)findViewById(R.id.split_view)).setPrimaryContentSize(200); 43 | } 44 | 45 | }); 46 | 47 | 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /example/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 19 |