-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- view rewritten from scratch - profile management - create view from xml - new profile chooser (inspired by YouTube app)
- Loading branch information
1 parent
195f1c8
commit 4f849d4
Showing
119 changed files
with
2,353 additions
and
1,983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
app/src/androidTest/java/rebus/header/view/sample/ApplicationTest.java
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
app/src/androidTest/java/rebus/header/view/sample/ExampleInstrumentedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package rebus.header.view.sample; | ||
|
||
public class ExampleInstrumentedTest { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
app/src/main/java/rebus/header/view/sample/CustomApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
110
app/src/main/java/rebus/header/view/sample/HeaderActivity.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.