-Include layout in the buttons to fix orientación and correct size with the new properties
This commit is contained in:
parent
b4cc708970
commit
046e21d725
2 changed files with 40 additions and 30 deletions
|
@ -320,7 +320,7 @@ class CreateSeedActivity : CustomActivity() {
|
|||
* */
|
||||
private fun enableCreate() {
|
||||
runOnUiThread(Runnable {
|
||||
btnCreate?.setBackgroundColor(resources.getColor(R.color.colorPrimary))
|
||||
//btnCreate?.setBackgroundColor(resources.getColor(R.color.colorPrimary))
|
||||
btnCreate?.setEnabled(true)
|
||||
})
|
||||
}
|
||||
|
@ -331,7 +331,7 @@ class CreateSeedActivity : CustomActivity() {
|
|||
private fun disableCreate() {
|
||||
runOnUiThread(Runnable {
|
||||
btnCreate?.setEnabled(false)
|
||||
btnCreate?.setBackground(resources.getDrawable(R.drawable.disable_style))
|
||||
//btnCreate?.setBackground(resources.getDrawable(R.drawable.disable_style))
|
||||
})
|
||||
}
|
||||
}
|
|
@ -68,7 +68,7 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/btnCancel"
|
||||
app:layout_constraintBottom_toTopOf="@+id/layoutBtns"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tilPinConfirmation"
|
||||
app:layout_constraintStart_toStartOf="@id/tilPinConfirmation"
|
||||
app:layout_constraintEnd_toEndOf="@id/tilPinConfirmation">
|
||||
|
@ -85,38 +85,48 @@
|
|||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnCancel"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="57dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:theme="@style/RedButton"
|
||||
android:text="@string/cancel"
|
||||
android:textColor="@color/white"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toTopOf="@+id/bottomStatusBar"
|
||||
app:layout_constraintStart_toStartOf="@id/tilAccountName"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tilAccountName" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnCreate"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:padding="10dp"
|
||||
android:theme="@style/BlueButton"
|
||||
android:text="@string/create_wallet"
|
||||
android:textColor="@color/white"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="@id/tilAccountName"
|
||||
app:layout_constraintTop_toTopOf="@id/btnCancel" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutBtns"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:background="@android:color/white"
|
||||
android:padding="4dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tilAccountName"
|
||||
android:layout_marginTop="60dp">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnCancel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0.50"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:theme="@style/RedButton"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/cancel" />
|
||||
<Button
|
||||
android:id="@+id/btnCreate"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.5"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:theme="@style/BlueButton"
|
||||
android:text="@string/create_wallet"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<cy.agorise.crystalwallet.util.BottomStatusBar
|
||||
android:id="@+id/bottomStatusBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
|
|
Loading…
Reference in a new issue