Skip to content
This repository was archived by the owner on Mar 27, 2022. It is now read-only.

Commit 8973a27

Browse files
author
EGE
committed
v2.0.0
1 parent d8e8d40 commit 8973a27

File tree

13 files changed

+12
-65
lines changed

13 files changed

+12
-65
lines changed

.idea/misc.xml

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For more Android-like segmented control, check [Radio Real Button](https://githu
2323
###### You can also apply your custom drawable on button group
2424
![7](https://cloud.githubusercontent.com/assets/20969019/21565978/ec2fb698-cea6-11e6-8ae9-54326e3ebdf4.gif)
2525
<br />
26-
###### It is now possible to drag selector (not available for the last released version, but you can download the project to achieve that.)
26+
###### It is now possible to drag selector
2727
![8](https://cloud.githubusercontent.com/assets/20969019/24909871/6b0a8b10-1ece-11e7-8686-df8276f1ae15.gif)
2828

2929

@@ -43,13 +43,11 @@ and:
4343

4444
```gradle
4545
dependencies {
46-
compile 'com.github.ceryle:SegmentedButton:v1.2.2'
46+
compile 'com.github.ceryle:SegmentedButton:v2.0.0'
4747
}
4848
```
4949

5050
## Customization
51-
###### Transparent Background
52-
Sorry, you cannot set group's background transparent. Reason is, in group there are three layers on top of the other. One layer is for selection and two are for background and foreground. If you change one of them, you will see that segmented button will look abnormal, something will be missing. Not recommended.
5351

5452
### Some Attributes
5553

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.3.1'
8+
classpath 'com.android.tools.build:gradle:3.0.0-alpha9'
99
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Mar 03 09:15:59 EET 2017
1+
#Mon Aug 07 02:27:44 EET 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-rc-1-all.zip

library/proguard-rules.pro

Lines changed: 0 additions & 17 deletions
This file was deleted.

library/src/main/java/co/ceryle/segmentedbutton/BackgroundHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2016 Ege Aker <egeaker@gmail.com>
2+
* Copyright (C) 2016 ceryle
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

library/src/main/java/co/ceryle/segmentedbutton/BackgroundView.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package co.ceryle.segmentedbutton;
22

33
import android.content.Context;
4-
import android.os.Build;
54
import android.support.annotation.Nullable;
6-
import android.support.annotation.RequiresApi;
75
import android.util.AttributeSet;
86
import android.view.View;
97

@@ -20,11 +18,6 @@ public BackgroundView(Context context, @Nullable AttributeSet attrs, int defStyl
2018
super(context, attrs, defStyleAttr);
2119
}
2220

23-
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
24-
public BackgroundView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
25-
super(context, attrs, defStyleAttr, defStyleRes);
26-
}
27-
2821
@Override
2922
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
3023
int w = 0, h = 0;

library/src/main/java/co/ceryle/segmentedbutton/ConversionHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2016 Ege Aker <egeaker@gmail.com>
2+
* Copyright (C) 2016 ceryle
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

library/src/main/java/co/ceryle/segmentedbutton/RippleHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2016 Ege Aker <egeaker@gmail.com>
2+
* Copyright (C) 2016 ceryle
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

library/src/main/java/co/ceryle/segmentedbutton/RoundHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2016 Ege Aker <egeaker@gmail.com>
2+
* Copyright (C) 2016 ceryle
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)