diff options
author | Parménides GV <parmegv@sdf.org> | 2015-06-12 17:01:35 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2015-06-12 17:01:35 +0200 |
commit | d1c6e3c1756cee8104a98718b70e2f3169d24a09 (patch) | |
tree | ec674f0fdb2ff14da80f7755202d5c0c354b87fd | |
parent | f5f2e7706867d7a0d45b139c18e64e0bfc96ffae (diff) |
Transparent background of the FabButton, yay!
-rw-r--r-- | app/build.gradle | 2 | ||||
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/userstatus/FabButton.java | 6 | ||||
-rw-r--r-- | app/src/main/res/layout/user_session_fragment.xml | 6 |
3 files changed, 5 insertions, 9 deletions
diff --git a/app/build.gradle b/app/build.gradle index 994f8b7b..9acd5ab1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -54,7 +54,7 @@ dependencies { compile 'com.intellij:annotations:12.0' compile 'com.google.code.gson:gson:2.3.1' compile 'org.thoughtcrime.ssl.pinning:AndroidPinning:1.0.0' - compile 'mbanje.kurt:fabbutton:1.1.1' + compile 'mbanje.kurt:fabbutton:1.1.4' } def processFileInplace(file, Closure processText) { diff --git a/app/src/main/java/se/leap/bitmaskclient/userstatus/FabButton.java b/app/src/main/java/se/leap/bitmaskclient/userstatus/FabButton.java index 1bf1847c..d1c56dee 100644 --- a/app/src/main/java/se/leap/bitmaskclient/userstatus/FabButton.java +++ b/app/src/main/java/se/leap/bitmaskclient/userstatus/FabButton.java @@ -22,12 +22,6 @@ public class FabButton extends mbanje.kurt.fabbutton.FabButton { super(context, attrs, defStyle); } - @Override - protected void init(Context context, AttributeSet attrs, int defStyle) { - super.init(context, attrs, defStyle); - super.init(context, attrs, defStyle); - } - private CircleImageView getImage() { return (CircleImageView) findViewById(R.id.fabbutton_circle); } diff --git a/app/src/main/res/layout/user_session_fragment.xml b/app/src/main/res/layout/user_session_fragment.xml index 30068381..fd5fc170 100644 --- a/app/src/main/res/layout/user_session_fragment.xml +++ b/app/src/main/res/layout/user_session_fragment.xml @@ -1,5 +1,6 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" @@ -36,8 +37,9 @@ android:color="@android:color/transparent" class="se.leap.bitmaskclient.userstatus.FabButton" android:indeterminate="true" - fbb_progressColor="@android:color/holo_blue_dark" - fbb_progressWidthRatio="0.1" + app:fbb_progressColor="@android:color/holo_blue_dark" + app:fbb_progressWidthRatio="0.1" + app:fbb_showShadow="false" /> </LinearLayout> |