use standard button and avoid another maven dependency

This commit is contained in:
B. Petersen
2019-01-23 02:03:18 +01:00
parent 6afcf1b4bb
commit 1d483f78bf
5 changed files with 6 additions and 53 deletions
-5
View File
@@ -27,9 +27,6 @@ repositories {
maven {
url "https://jitpack.io"
}
maven {
url "https://raw.github.com/signalapp/maven/master/circular-progress-button/releases/"
}
maven {
url "https://maven.google.com"
}
@@ -93,7 +90,6 @@ dependencies {
exclude group: 'com.android.support', module: 'recyclerview-v7'
}
compile 'com.codewaves.stickyheadergrid:stickyheadergrid:0.9.4'
compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3-S2'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1'
@@ -140,7 +136,6 @@ dependencyVerification {
'cn.carbswang.android:NumberPickerView:18b3c316d62c7c277978a8d4ed57a5b8f4e943762264960f579a8a549c756729',
'com.annimon:stream:5da6e2e3e0551d61a3ea7014f04312276549e3dd739cf637996e4cf43c5535b9',
'com.takisoft.fix:colorpicker:f5d0dbabe406a1800498ca9c1faf34db36e021d8488bf10360f29961fe3ab0d1',
'com.github.dmytrodanylyk.circular-progress-button:library:8dc6a29a5a8db7b2ad5a9a7fda1dc9ae0893f4c8f0545732b2c63854ea693e8e',
'com.google.android.gms:play-services-iid:54e919f9957b8b7820da7ee9b83471d00d0cac1cf08ddea8b5b41aea80bb1a70',
'com.google.android.gms:play-services-base:0ca636a8fc9a5af45e607cdcd61783bf5d561cbbb0f862021ce69606eee5ad49',
'com.google.android.gms:play-services-tasks:69ec265168e601d0203d04cd42e34bb019b2f029aa1e16fabd38a5153eea2086',
+4 -12
View File
@@ -73,7 +73,7 @@
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.dd.CircularProgressButton
<Button
android:id="@+id/add_member_button"
android:layout_width="wrap_content"
android:layout_height="40dp"
@@ -84,13 +84,9 @@
android:paddingEnd="12dp"
android:paddingStart="12dp"
android:textColor="@color/white"
app:cpb_colorIndicator="@color/white"
app:cpb_colorProgress="@color/textsecure_primary"
app:cpb_cornerRadius="20dp"
app:cpb_selectorIdle="@drawable/progress_button_state"
app:cpb_textIdle="@string/group_add_members"/>
android:text="@string/group_add_members"/>
<com.dd.CircularProgressButton
<Button
android:id="@+id/verify_button"
android:layout_width="wrap_content"
android:layout_height="40dp"
@@ -101,11 +97,7 @@
android:paddingEnd="12dp"
android:paddingStart="12dp"
android:textColor="@color/white"
app:cpb_colorIndicator="@color/white"
app:cpb_colorProgress="@color/textsecure_primary"
app:cpb_cornerRadius="20dp"
app:cpb_selectorIdle="@drawable/progress_button_state"
app:cpb_textIdle="@string/qrshow_title"/>
android:text="@string/qrshow_title"/>
</LinearLayout>
-28
View File
@@ -324,34 +324,6 @@
app:layout_constraintStart_toStartOf="@id/guideline_root_start"
app:layout_constraintTop_toBottomOf="@id/smtp_security_label" />
<!--<android.support.v4.widget.Space-->
<!--android:id="@+id/register_button_spacer_top"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="16dp"-->
<!--app:layout_constraintTop_toBottomOf="@id/smtp_security" />-->
<!--<com.dd.CircularProgressButton-->
<!--android:id="@+id/register_button"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="50dp"-->
<!--android:layout_marginEnd="16dp"-->
<!--android:layout_marginStart="16dp"-->
<!--android:background="@color/signal_primary"-->
<!--android:textColor="@color/white"-->
<!--app:cpb_colorIndicator="@color/white"-->
<!--app:cpb_colorProgress="@color/textsecure_primary"-->
<!--app:cpb_cornerRadius="50dp"-->
<!--app:cpb_selectorIdle="@drawable/progress_button_state"-->
<!--app:cpb_textIdle="@string/login_title"-->
<!--app:layout_constraintEnd_toEndOf="@id/guideline_root_end"-->
<!--app:layout_constraintStart_toStartOf="@id/guideline_root_start"-->
<!--app:layout_constraintTop_toBottomOf="@id/register_button_spacer_top" />-->
<!--<android.support.v4.widget.Space-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="16dp"-->
<!--app:layout_constraintTop_toBottomOf="@id/register_button" />-->
</android.support.constraint.ConstraintLayout>
</ScrollView>
+2 -6
View File
@@ -29,7 +29,7 @@
android:layout_height="32dp"
app:layout_constraintBottom_toTopOf="@id/skip_button"/>
<com.dd.CircularProgressButton
<Button
android:id="@+id/skip_button"
android:layout_width="wrap_content"
android:layout_height="40dp"
@@ -37,11 +37,7 @@
android:paddingEnd="8dp"
android:paddingStart="8dp"
android:textColor="@color/white"
app:cpb_colorIndicator="@color/white"
app:cpb_colorProgress="@color/textsecure_primary"
app:cpb_cornerRadius="20dp"
app:cpb_selectorIdle="@drawable/progress_button_state"
app:cpb_textIdle="@string/welcome_start_messaging"
android:text="@string/welcome_start_messaging"
app:layout_constraintBottom_toTopOf="@id/skip_button_bottom_spacer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
@@ -22,7 +22,6 @@ import android.widget.Toast;
import com.b44t.messenger.DcContext;
import com.b44t.messenger.DcEventCenter;
import com.dd.CircularProgressButton;
import org.thoughtcrime.securesms.connect.ApplicationDcContext;
import org.thoughtcrime.securesms.connect.DcHelper;
@@ -114,7 +113,6 @@ public class RegistrationActivity extends BaseActionBarActivity implements DcEve
passwordInput = findViewById(R.id.password_text);
advancedGroup = findViewById(R.id.advanced_group);
advancedIcon = findViewById(R.id.advanced_icon);
// CircularProgressButton loginButton = findViewById(R.id.register_button);
TextView advancedTextView = findViewById(R.id.advanced_text);
TextInputEditText imapServerInput = findViewById(R.id.imap_server_text);
TextInputEditText imapPortInput = findViewById(R.id.imap_port_text);