Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #2

Merged
merged 23 commits into from
Apr 14, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ce30eaf
codebase for prototype with simple example
oleg-vasiliev Feb 8, 2017
5f456ff
Update README.md
oleg-vasiliev Feb 8, 2017
22a0e32
thinking about code design and possibility of changing slider vertica…
oleg-vasiliev Feb 23, 2017
e303948
code redesign
oleg-vasiliev Mar 6, 2017
af4ae16
redesign finished
oleg-vasiliev Mar 6, 2017
8d69bd5
build tools and gradle version updated
oleg-vasiliev Mar 6, 2017
0304a9c
Merge branch 'development' into fragmentation_to_parts
oleg-vasiliev Mar 6, 2017
53fcd1a
trying to insert listview to card body
oleg-vasiliev Mar 13, 2017
daae27c
listview card implemented
oleg-vasiliev Mar 16, 2017
bf3631e
working on example
oleg-vasiliev Mar 17, 2017
9dcacb3
implemented background image caching
oleg-vasiliev Mar 27, 2017
70e1362
code clean. example implemented.
oleg-vasiliev Mar 31, 2017
3daf1f7
Working on simple example & documentation.
oleg-vasiliev Apr 4, 2017
3ac830d
Fixed bug with nullable resource id in library. Removed bitmap drawab…
oleg-vasiliev Apr 5, 2017
195dffd
Examples updated.
oleg-vasiliev Apr 5, 2017
5d639ff
Minor API changes. Readme added.
oleg-vasiliev Apr 7, 2017
53cfd98
Readme adjustments. Module versions updated.
oleg-vasiliev Apr 7, 2017
990c9a8
Update README.md
RamotionRussell Apr 7, 2017
cbbc89d
Some javadoc explanations added to classes.
oleg-vasiliev Apr 10, 2017
329b388
More javadocs added.
oleg-vasiliev Apr 11, 2017
73a311e
Add files via upload
Juriv Apr 14, 2017
a631d7c
Update README.md
Juriv Apr 14, 2017
9e7a049
Update README.md
Juriv Apr 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Readme adjustments. Module versions updated.
  • Loading branch information
oleg-vasiliev committed Apr 7, 2017
commit 53cfd98a3436a0169cd91b408c0c567f66a4b2af
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Maven:

## Basic usage
1. Add background switcher `ECBackgroundSwitcherView` and main pager `ECPagerView` to your layout. `ECPagerView` always should have `match_parent` width and `wrap_content` height. Vertical position you can adjust by yourself using **alignment/gravity** or **top margin**. `ECBackgroundSwitcherView` it's just dynamic background switcher, so you probably want it to be as big as his parent.
1. Add background switcher element `ECBackgroundSwitcherView` and main pager element `ECPagerView` to your layout. `ECPagerView` always should have `match_parent` width and `wrap_content` height. Vertical position you can adjust by yourself using **alignment/gravity** or **top margin**. `ECBackgroundSwitcherView` it's dynamic background switcher, so you probably want it to be as big as his parent.

```xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down Expand Up @@ -69,7 +69,7 @@ Maven:
ec:cardWidth="250dp" />
```

3. Expanded card contains two parts : header part with background(initially visible when card is collapsed) and a ListView element as content(visible only when card is expanded), so you need a xml layout for list items.
3. Expanded card contains two parts: header part with background(initially visible when card is collapsed) and a ListView element as content(visible only when card is expanded), so you need a xml layout for list items.

```xml
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down Expand Up @@ -152,7 +152,7 @@ public class CardDataImpl implements ECCardData<String> {
}
```

6. Almost done! Last thing we need is provide our dataset to pager element through a pager adapter. It's just a implementation of abstract class `com.ramotion.expandingcollection.ECPagerViewAdapter.java` with one abstract method, so it can be easily implemented inside your activity.
6. Almost done! Last thing we need to do - is provide our dataset to pager element through a pager adapter. It's just a implementation of abstract class `com.ramotion.expandingcollection.ECPagerViewAdapter.java` with one abstract method, so it can be easily implemented inside your activity.

```java
public class MainActivity extends Activity {
Expand Down
7 changes: 4 additions & 3 deletions expanding-collection-full-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
applicationId "com.ramotion.expandingcollection.examples.full"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionName '1.0'

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand All @@ -20,10 +19,12 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
Expand Down
5 changes: 3 additions & 2 deletions expanding-collection/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion '25.0.0'

defaultConfig {
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionName '0.9.0'

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand All @@ -23,6 +22,8 @@ android {
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_7
}
productFlavors {
}
}

dependencies {
Expand Down