Browse Source

Drawer icons changes

pull/24/head
Ezerous 7 years ago
parent
commit
2660e9958e
  1. 1
      app/build.gradle
  2. 2
      app/src/main/assets/apache_libraries.html
  3. 25
      app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java

1
app/build.gradle

@ -44,6 +44,7 @@ dependencies {
transitive = true
}
compile 'com.mikepenz:fontawesome-typeface:4.7.0.0@aar'
compile 'com.mikepenz:google-material-typeface:3.0.1.2.original@aar'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
compile 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1' //TODO: Deprecated - needs replacement!
compile 'me.zhanghai.android.materialprogressbar:library:1.4.2'

2
app/src/main/assets/apache_libraries.html

@ -54,7 +54,7 @@
<h5><a href="https://github.com/mikepenz/MaterialDrawer">MaterialDrawer</a>&nbsp;v5.9.3 (Copyright ©2016 Mike Penz)</h5>
</li>
<li>
<h5><a href="https://github.com/mikepenz/Android-Iconics/tree/develop/fontawesome-typeface-library">Fontawesome Typeface Library</a>&nbsp;v4.7.0.0 (Copyright ©2016 Mike Penz)</h5>
<h5><a href="https://github.com/mikepenz/Android-Iconics">Android-Iconics</a>&nbsp;v2.9.5 (Copyright ©2016 Mike Penz)</h5>
</li>
<li>
<h5><a href="https://github.com/DreaminginCodeZH/MaterialProgressBar">MaterialProgressBar</a>&nbsp;v1.4.2 (Copyright ©2015 Zhang Hai)</h5>

25
app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java

@ -20,6 +20,7 @@ import android.widget.ImageButton;
import android.widget.Toast;
import com.mikepenz.fontawesome_typeface_library.FontAwesome;
import com.mikepenz.google_material_typeface_library.GoogleMaterial;
import com.mikepenz.iconics.IconicsDrawable;
import com.mikepenz.materialdrawer.AccountHeader;
import com.mikepenz.materialdrawer.AccountHeaderBuilder;
@ -156,27 +157,27 @@ public abstract class BaseActivity extends AppCompatActivity {
//Drawer Icons
homeIcon = new IconicsDrawable(this)
.icon(FontAwesome.Icon.faw_home)
.icon(GoogleMaterial.Icon.gmd_home)
.color(primaryColor);
homeIconSelected = new IconicsDrawable(this)
.icon(FontAwesome.Icon.faw_home)
.icon(GoogleMaterial.Icon.gmd_home)
.color(selectedSecondaryColor);
downloadsIcon = new IconicsDrawable(this)
.icon(FontAwesome.Icon.faw_download)
bookmarksIcon = new IconicsDrawable(this)
.icon(GoogleMaterial.Icon.gmd_bookmark)
.color(primaryColor);
downloadsIconSelected = new IconicsDrawable(this)
.icon(FontAwesome.Icon.faw_download)
bookmarksIconSelected = new IconicsDrawable(this)
.icon(GoogleMaterial.Icon.gmd_bookmark)
.color(selectedSecondaryColor);
bookmarksIcon = new IconicsDrawable(this)
.icon(FontAwesome.Icon.faw_bookmark)
downloadsIcon = new IconicsDrawable(this)
.icon(GoogleMaterial.Icon.gmd_file_download)
.color(primaryColor);
bookmarksIconSelected = new IconicsDrawable(this)
.icon(FontAwesome.Icon.faw_bookmark)
downloadsIconSelected = new IconicsDrawable(this)
.icon(GoogleMaterial.Icon.gmd_file_download)
.color(selectedSecondaryColor);
loginIcon = new IconicsDrawable(this)
@ -188,11 +189,11 @@ public abstract class BaseActivity extends AppCompatActivity {
.color(primaryColor);
aboutIcon = new IconicsDrawable(this)
.icon(FontAwesome.Icon.faw_info_circle)
.icon(GoogleMaterial.Icon.gmd_info)
.color(primaryColor);
aboutIconSelected = new IconicsDrawable(this)
.icon(FontAwesome.Icon.faw_info_circle)
.icon(GoogleMaterial.Icon.gmd_info)
.color(selectedSecondaryColor);
//Drawer Items

Loading…
Cancel
Save