Skip to content

Commit

Permalink
version 2.0.0-BETA-1
Browse files Browse the repository at this point in the history
- view rewritten from scratch
- profile management
- create view from xml
- new profile chooser (inspired by YouTube app)
  • Loading branch information
raphaelbussa committed Jan 22, 2017
1 parent 195f1c8 commit 4f849d4
Show file tree
Hide file tree
Showing 119 changed files with 2,353 additions and 1,983 deletions.
26 changes: 15 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
.gradle
gradle*
/gradle
/local.properties
.idea/*
.DS_Store
*.iml
*.apk
*.DS_Store

/*.png

/.gradle
/.idea
/build
/captures
app/build/
/libraries/
/gen/
/release
*.iml
/gradle
/gradlew
/gradlew.bat
/local.properties

/app/build
/library/build
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Raphaël Bussa
Copyright (c) 2017 Raphaël Bussa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

Binary file removed app/app-release.apk
Binary file not shown.
47 changes: 37 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,42 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Raphaël Bussa
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion '23.0.3'

compileSdkVersion var.compileSdk
buildToolsVersion var.buildTools

defaultConfig {
applicationId "rebus.header.view.sample"
minSdkVersion 8
targetSdkVersion 23
versionCode 3
versionName "1.1.1"
minSdkVersion var.minSdk
targetSdkVersion var.targetSdk
versionCode 1
versionName "${var.version}"
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -20,8 +46,9 @@ android {
}

dependencies {
compile project(':headerview')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile project(':library')
compile "com.android.support:appcompat-v7:${var.supportLib}"
compile "com.android.support:design:${var.supportLib}"

compile 'com.github.bumptech.glide:glide:3.7.0'
}
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\Raphaël\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
# in /Users/raphaelbussa/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package rebus.header.view.sample;

public class ExampleInstrumentedTest {

}
24 changes: 7 additions & 17 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--
~ The MIT License (MIT)
~
~ Copyright (c) 2015 Raphaël Bussa
~ Copyright (c) 2017 Raphaël Bussa
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
Expand All @@ -26,31 +26,21 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="rebus.header.view.sample">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET"/>

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:name=".CustomApplication"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:screenOrientation="portrait">
android:supportsRtl="true"
android:theme="@style/AppTheme.Drawer">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".HeaderActivity"
android:theme="@style/AppTheme.Drawer" />
<activity
android:name=".HeaderCompactActivity"
android:theme="@style/AppTheme.Drawer" />
<activity
android:name=".HeaderCompactBelowToolbarActivity" />
<activity
android:name=".HeaderBelowToolbarActivity" />
</application>

</manifest>
</manifest>
70 changes: 70 additions & 0 deletions app/src/main/java/rebus/header/view/sample/CustomApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Raphaël Bussa
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

package rebus.header.view.sample;

import android.app.Application;
import android.net.Uri;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

import rebus.header.view.ImageLoader;

/**
* Created by raphaelbussa on 13/01/17.
*/

public class CustomApplication extends Application {

@Override
public void onCreate() {
super.onCreate();
ImageLoader.init(new ImageLoader.ImageLoaderInterface() {
@Override
public void loadImage(Uri url, ImageView imageView, @ImageLoader.Type int type) {
switch (type) {
case ImageLoader.AVATAR:
Glide.with(imageView.getContext())
.load(url)
.asBitmap()
.placeholder(R.drawable.ic_placeholder)
.error(R.drawable.ic_placeholder)
.into(imageView);
break;
case ImageLoader.HEADER:
Glide.with(imageView.getContext())
.load(url)
.asBitmap()
.placeholder(R.drawable.ic_placeholder_bg)
.error(R.drawable.ic_placeholder_bg)
.into(imageView);
break;
}
}

});

}
}
110 changes: 0 additions & 110 deletions app/src/main/java/rebus/header/view/sample/HeaderActivity.java

This file was deleted.

Loading

0 comments on commit 4f849d4

Please sign in to comment.