Android Split Pane Layout

An Android layout which splits the available space between child views

License

License

Categories

Categories

IDE Development Tools
GroupId

GroupId

com.mobidevelop.spl
ArtifactId

ArtifactId

split-pane-layout
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

Android Split Pane Layout
An Android layout which splits the available space between child views
Project URL

Project URL

https://github.com/MobiDevelop/android-split-pane-layout
Source Code Management

Source Code Management

https://github.com/MobiDevelop/android-split-pane-layout

Download split-pane-layout

How to add to project

<!-- https://jarcasting.com/artifacts/com.mobidevelop.spl/split-pane-layout/ -->
<dependency>
    <groupId>com.mobidevelop.spl</groupId>
    <artifactId>split-pane-layout</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.mobidevelop.spl/split-pane-layout/
implementation 'com.mobidevelop.spl:split-pane-layout:1.0.0'
// https://jarcasting.com/artifacts/com.mobidevelop.spl/split-pane-layout/
implementation ("com.mobidevelop.spl:split-pane-layout:1.0.0")
'com.mobidevelop.spl:split-pane-layout:aar:1.0.0'
<dependency org="com.mobidevelop.spl" name="split-pane-layout" rev="1.0.0">
  <artifact name="split-pane-layout" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.mobidevelop.spl', module='split-pane-layout', version='1.0.0')
)
libraryDependencies += "com.mobidevelop.spl" % "split-pane-layout" % "1.0.0"
[com.mobidevelop.spl/split-pane-layout "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Android Split Pane Layout

An Android layout which splits the available space between two child views. An optionally movable bar exists between the children which allows the user to redistribute the space allocated to each view.

Usage

Add a reference to the split-pane-layout library project, or copy the necessary files into your project. Add a SplitPaneLayout as follows:

<com.mobidevelop.spl.widget.SplitPaneLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:spl="http://schemas.android.com/apk/res-auto"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    spl:orientation="vertical"
    spl:splitterSize="12dip"
    spl:splitterPosition="33%"
    spl:splitterBackground="@drawable/splitter_bg_v"
    >
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="Child1" />
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="Child2" />
</com.mobidevelop.spl.widget.SplitPaneLayout>

NOTE: A SplitPaneLayout MUST have exactly two children.

Using with Gradle

SplitPaneLayout is published to Maven Central so can be easily added to your Gradle-based Android projects by adding the following entry to your dependencies:

dependencies {
    compile 'com.mobidevelop.spl:split-pane-layout:1.0.0'
}

Precompiled Demo APK

https://www.box.com/s/6yw9kekmq558wgbwan91

QR

Versions

Version
1.0.0