Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SilenceDut/ExpandableLayout
[Deprecated]A expandable Layout to save space and reduce jump between Activity and Fragment
https://github.com/SilenceDut/ExpandableLayout
Last synced: 3 months ago
JSON representation
[Deprecated]A expandable Layout to save space and reduce jump between Activity and Fragment
- Host: GitHub
- URL: https://github.com/SilenceDut/ExpandableLayout
- Owner: SilenceDut
- Created: 2016-06-07T11:41:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T07:47:40.000Z (almost 6 years ago)
- Last Synced: 2024-08-31T00:36:08.165Z (5 months ago)
- Language: Java
- Homepage:
- Size: 18.4 MB
- Stars: 490
- Watchers: 16
- Forks: 86
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - ExpandableLayout - 节省空间的可扩展布局 (布局)
- awesome - ExpandableLayout - [Deprecated]A expandable Layout to save space and reduce jump between Activity and Fragment (etc)
- awesome - ExpandableLayout - [Deprecated]A expandable Layout to save space and reduce jump between Activity and Fragment (etc)
README
# ExpandableLayout
A expandable Layout to save space and reduce jump between Activity and Fragment
####[![](https://jitpack.io/v/SilenceDut/ExpandableLayout.svg)](https://jitpack.io/#SilenceDut/ExpandableLayout)USE
----------------------**Project**
It had been used in project [KnowWeather](https://github.com/SilenceDut/KnowWeather),you can learn more.
**SimpleUse**
![intro](media/simple_use.gif)
**Use in RecyclerView**
parent view scroll automatically if the view expand out of device screen,
(当展开时如果超过屏幕的高度时父控件自动上移)
![intro](media/recyclerview_withParentScroll_together.gif)
**Use in ListView**
parent view not scroll automatically if the view expand out of device screen
(当展开时如果超过屏幕的高度时父控件不自动上移)
![intro](media/listview_withoutParentScroll.gif)
(It runs smoothly, but gif is not appear well)
[**sample.apk**](https://github.com/SilenceDut/DayNightToggleButton/blob/master/apk/expandable.apk?raw=true)Attention
---------
**`scroll automatically `** function not perform well in listview so far.but
it perform well in RecyclerViewAdding to your project
----------------------
This library is available through JitPack.Step 1. Add the JitPack repository to your build file
**gradle**
```groovy
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
**maven**
```xml
jitpack.io
https://jitpack.io
```
Step 2. Add the dependency
**gradle**
```groovy
compile 'com.github.SilenceDut:ExpandableLayout:1.2.0'
```
**maven**```xml
com.github.SilenceDut
ExpandableLayout
{latest-version}```
Basic Usage
-----------
**Supported Attributes**| attr | default | mean |
|:------------------------- |:---------------- |:------------------------------------------------------- |
| expDuration | 300 | expand duration. |
| expWithParentScroll | false | parent view should scroll automatically if the view expand out of device screen(当展开时如果超过屏幕的高度是父控件否自动上移). |
| expExpandScrollTogether| false | parent view should scroll together with view expanding. |
**ExpandableLayout inherited from LinearLayout,and the default Orientation is VERTICAL**```xml
```
License
-------Copyright 2015-2016 SilenceDut
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.