-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() {
|
private fun enableCreate() {
|
||||||
runOnUiThread(Runnable {
|
runOnUiThread(Runnable {
|
||||||
btnCreate?.setBackgroundColor(resources.getColor(R.color.colorPrimary))
|
//btnCreate?.setBackgroundColor(resources.getColor(R.color.colorPrimary))
|
||||||
btnCreate?.setEnabled(true)
|
btnCreate?.setEnabled(true)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -331,7 +331,7 @@ class CreateSeedActivity : CustomActivity() {
|
||||||
private fun disableCreate() {
|
private fun disableCreate() {
|
||||||
runOnUiThread(Runnable {
|
runOnUiThread(Runnable {
|
||||||
btnCreate?.setEnabled(false)
|
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_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/btnCancel"
|
app:layout_constraintBottom_toTopOf="@+id/layoutBtns"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tilPinConfirmation"
|
app:layout_constraintTop_toBottomOf="@+id/tilPinConfirmation"
|
||||||
app:layout_constraintStart_toStartOf="@id/tilPinConfirmation"
|
app:layout_constraintStart_toStartOf="@id/tilPinConfirmation"
|
||||||
app:layout_constraintEnd_toEndOf="@id/tilPinConfirmation">
|
app:layout_constraintEnd_toEndOf="@id/tilPinConfirmation">
|
||||||
|
@ -85,38 +85,48 @@
|
||||||
|
|
||||||
</android.support.design.widget.TextInputLayout>
|
</android.support.design.widget.TextInputLayout>
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/btnCancel"
|
|
||||||
android:layout_width="140dp"
|
<LinearLayout
|
||||||
android:layout_height="57dp"
|
android:id="@+id/layoutBtns"
|
||||||
android:layout_gravity="center"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginStart="4dp"
|
android:layout_height="65dp"
|
||||||
android:layout_marginTop="28dp"
|
android:background="@android:color/white"
|
||||||
android:theme="@style/RedButton"
|
android:padding="4dp"
|
||||||
android:text="@string/cancel"
|
android:orientation="horizontal"
|
||||||
android:textColor="@color/white"
|
app:layout_constraintTop_toBottomOf="@+id/tilAccountName"
|
||||||
android:textStyle="bold"
|
android:layout_marginTop="60dp">
|
||||||
app:layout_constraintBottom_toTopOf="@+id/bottomStatusBar"
|
|
||||||
app:layout_constraintStart_toStartOf="@id/tilAccountName"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tilAccountName" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnCreate"
|
android:id="@+id/btnCancel"
|
||||||
android:layout_width="140dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginEnd="4dp"
|
android:layout_weight="0.50"
|
||||||
android:padding="10dp"
|
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:theme="@style/BlueButton"
|
||||||
android:text="@string/create_wallet"
|
android:text="@string/create_wallet"
|
||||||
android:textColor="@color/white"
|
android:textSize="14sp"
|
||||||
android:textStyle="bold"
|
android:textColor="@color/white" />
|
||||||
app:layout_constraintEnd_toEndOf="@id/tilAccountName"
|
|
||||||
app:layout_constraintTop_toTopOf="@id/btnCancel" />
|
</LinearLayout>
|
||||||
|
|
||||||
<cy.agorise.crystalwallet.util.BottomStatusBar
|
<cy.agorise.crystalwallet.util.BottomStatusBar
|
||||||
android:id="@+id/bottomStatusBar"
|
android:id="@+id/bottomStatusBar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||||
|
|
||||||
</android.support.constraint.ConstraintLayout>
|
</android.support.constraint.ConstraintLayout>
|
||||||
|
|
Loading…
Reference in a new issue