Improve UI Pin Page
This commit is contained in:
		
							parent
							
								
									f1228db89a
								
							
						
					
					
						commit
						290f3015d9
					
				@ -33,7 +33,7 @@ public class PinActivity extends AppCompatActivity {
 | 
				
			|||||||
    private Button confirmButton;
 | 
					    private Button confirmButton;
 | 
				
			||||||
    private LinearLayout backNavigation;
 | 
					    private LinearLayout backNavigation;
 | 
				
			||||||
    private ImageView backArrow;
 | 
					    private ImageView backArrow;
 | 
				
			||||||
    private TextView backText;
 | 
					    private TextView toolbarTitle;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    // Numpad buttons
 | 
					    // Numpad buttons
 | 
				
			||||||
    private TextView btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, btn0, btn000;
 | 
					    private TextView btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, btn0, btn000;
 | 
				
			||||||
@ -96,7 +96,7 @@ public class PinActivity extends AppCompatActivity {
 | 
				
			|||||||
        confirmButton = findViewById(R.id.confirmButton);
 | 
					        confirmButton = findViewById(R.id.confirmButton);
 | 
				
			||||||
        backNavigation = findViewById(R.id.back_navigation);
 | 
					        backNavigation = findViewById(R.id.back_navigation);
 | 
				
			||||||
        backArrow = findViewById(R.id.backArrow);
 | 
					        backArrow = findViewById(R.id.backArrow);
 | 
				
			||||||
        backText = findViewById(R.id.back_text);
 | 
					        toolbarTitle = findViewById(R.id.toolbarTitle);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Numpad buttons
 | 
					        // Numpad buttons
 | 
				
			||||||
        btn1 = findViewById(R.id.btn1);
 | 
					        btn1 = findViewById(R.id.btn1);
 | 
				
			||||||
@ -126,8 +126,8 @@ public class PinActivity extends AppCompatActivity {
 | 
				
			|||||||
            navigateBack();
 | 
					            navigateBack();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Back text (also clickable for back navigation)
 | 
					        // Toolbar title (also clickable for back navigation)
 | 
				
			||||||
        backText.setOnClickListener(v -> {
 | 
					        toolbarTitle.setOnClickListener(v -> {
 | 
				
			||||||
            addClickAnimation(v);
 | 
					            addClickAnimation(v);
 | 
				
			||||||
            navigateBack();
 | 
					            navigateBack();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
				
			|||||||
@ -92,7 +92,7 @@
 | 
				
			|||||||
                    android:layout_height="wrap_content"
 | 
					                    android:layout_height="wrap_content"
 | 
				
			||||||
                    android:text="TOTAL PEMBAYARAN"
 | 
					                    android:text="TOTAL PEMBAYARAN"
 | 
				
			||||||
                    android:textColor="@android:color/white"
 | 
					                    android:textColor="@android:color/white"
 | 
				
			||||||
                    android:textSize="16sp"
 | 
					                    android:textSize="18sp"
 | 
				
			||||||
                    android:textStyle="bold"
 | 
					                    android:textStyle="bold"
 | 
				
			||||||
                    android:fontFamily="@font/inter"
 | 
					                    android:fontFamily="@font/inter"
 | 
				
			||||||
                    android:layout_marginBottom="24dp" />
 | 
					                    android:layout_marginBottom="24dp" />
 | 
				
			||||||
 | 
				
			|||||||
@ -13,122 +13,139 @@
 | 
				
			|||||||
    <androidx.constraintlayout.widget.ConstraintLayout
 | 
					    <androidx.constraintlayout.widget.ConstraintLayout
 | 
				
			||||||
        android:layout_width="match_parent"
 | 
					        android:layout_width="match_parent"
 | 
				
			||||||
        android:layout_height="match_parent"
 | 
					        android:layout_height="match_parent"
 | 
				
			||||||
        android:background="#F5F5F5"
 | 
					        android:background="#FFFFFF"
 | 
				
			||||||
        tools:context=".PinActivity">
 | 
					        tools:context=".PinActivity">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- Status Bar Area -->
 | 
					        <!-- Red Status Bar (Override purple) -->
 | 
				
			||||||
        <View
 | 
					        <View
 | 
				
			||||||
            android:id="@+id/status_bar_background"
 | 
					            android:id="@+id/red_status_bar"
 | 
				
			||||||
            android:layout_width="match_parent"
 | 
					            android:layout_width="match_parent"
 | 
				
			||||||
            android:layout_height="24dp"
 | 
					            android:layout_height="24dp"
 | 
				
			||||||
            android:background="#E31937"
 | 
					            android:background="#E31937"
 | 
				
			||||||
            app:layout_constraintTop_toTopOf="parent"/>
 | 
					            app:layout_constraintTop_toTopOf="parent"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <!-- Red Background Header (Extended height untuk back navigation) -->
 | 
				
			||||||
 | 
					        <View
 | 
				
			||||||
 | 
					            android:id="@+id/red_header_background"
 | 
				
			||||||
 | 
					            android:layout_width="match_parent"
 | 
				
			||||||
 | 
					            android:layout_height="160dp"
 | 
				
			||||||
 | 
					            android:background="#E31937"
 | 
				
			||||||
 | 
					            app:layout_constraintTop_toBottomOf="@id/red_status_bar"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- Header with Back Navigation -->
 | 
					        <!-- Header with Back Navigation -->
 | 
				
			||||||
        <LinearLayout
 | 
					        <LinearLayout
 | 
				
			||||||
            android:id="@+id/header_container"
 | 
					            android:id="@+id/back_navigation"
 | 
				
			||||||
            android:layout_width="match_parent"
 | 
					            android:layout_width="wrap_content"
 | 
				
			||||||
            android:layout_height="56dp"
 | 
					            android:layout_height="wrap_content"
 | 
				
			||||||
            android:background="#E31937"
 | 
					 | 
				
			||||||
            android:orientation="horizontal"
 | 
					            android:orientation="horizontal"
 | 
				
			||||||
            android:gravity="center_vertical"
 | 
					            android:gravity="center_vertical"
 | 
				
			||||||
            android:paddingStart="16dp"
 | 
					            android:layout_marginStart="16dp"
 | 
				
			||||||
            android:paddingEnd="16dp"
 | 
					            android:layout_marginBottom="5dp"
 | 
				
			||||||
            app:layout_constraintTop_toBottomOf="@id/status_bar_background">
 | 
					            android:background="?attr/selectableItemBackgroundBorderless"
 | 
				
			||||||
 | 
					            android:padding="8dp"
 | 
				
			||||||
 | 
					            app:layout_constraintStart_toStartOf="parent"
 | 
				
			||||||
 | 
					            app:layout_constraintTop_toBottomOf="@id/red_status_bar">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <LinearLayout
 | 
					            <!-- Back Arrow -->
 | 
				
			||||||
                android:id="@+id/back_navigation"
 | 
					            <ImageView
 | 
				
			||||||
 | 
					                android:id="@+id/backArrow"
 | 
				
			||||||
 | 
					                android:layout_width="16dp"
 | 
				
			||||||
 | 
					                android:layout_height="16dp"
 | 
				
			||||||
 | 
					                android:src="@drawable/ic_arrow_back"
 | 
				
			||||||
 | 
					                android:contentDescription="Back" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <!-- Title Text -->
 | 
				
			||||||
 | 
					            <TextView
 | 
				
			||||||
 | 
					                android:id="@+id/toolbarTitle"
 | 
				
			||||||
                android:layout_width="wrap_content"
 | 
					                android:layout_width="wrap_content"
 | 
				
			||||||
                android:layout_height="match_parent"
 | 
					                android:layout_height="wrap_content"
 | 
				
			||||||
                android:orientation="horizontal"
 | 
					                android:layout_marginStart="8dp"
 | 
				
			||||||
                android:gravity="center_vertical"
 | 
					                android:text="Kembali"
 | 
				
			||||||
                android:paddingEnd="8dp"
 | 
					                android:textColor="@android:color/white"
 | 
				
			||||||
                android:background="?android:attr/selectableItemBackground">
 | 
					                android:textSize="12sp"
 | 
				
			||||||
 | 
					                android:fontFamily="@font/inter"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                <ImageView
 | 
					 | 
				
			||||||
                    android:id="@+id/backArrow"
 | 
					 | 
				
			||||||
                    android:layout_width="24dp"
 | 
					 | 
				
			||||||
                    android:layout_height="24dp"
 | 
					 | 
				
			||||||
                    android:src="@drawable/ic_arrow_back"
 | 
					 | 
				
			||||||
                    android:tint="@android:color/white"
 | 
					 | 
				
			||||||
                    android:layout_marginEnd="8dp"/>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                <TextView
 | 
					 | 
				
			||||||
                    android:id="@+id/back_text"
 | 
					 | 
				
			||||||
                    android:layout_width="wrap_content"
 | 
					 | 
				
			||||||
                    android:layout_height="wrap_content"
 | 
					 | 
				
			||||||
                    android:text="Kembali"
 | 
					 | 
				
			||||||
                    android:textColor="@android:color/white"
 | 
					 | 
				
			||||||
                    android:textSize="16sp"/>
 | 
					 | 
				
			||||||
            </LinearLayout>
 | 
					 | 
				
			||||||
        </LinearLayout>
 | 
					        </LinearLayout>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- PIN Card -->
 | 
					        <!-- PIN Card -->
 | 
				
			||||||
        <androidx.cardview.widget.CardView
 | 
					        <androidx.cardview.widget.CardView
 | 
				
			||||||
            android:id="@+id/pin_card"
 | 
					            android:id="@+id/pin_card"
 | 
				
			||||||
            android:layout_width="match_parent"
 | 
					            android:layout_width="match_parent"
 | 
				
			||||||
            android:layout_height="wrap_content"
 | 
					            android:layout_height="191dp"
 | 
				
			||||||
            android:layout_margin="16dp"
 | 
					            android:layout_margin="16dp"
 | 
				
			||||||
 | 
					            android:layout_marginTop="5dp"
 | 
				
			||||||
 | 
					            app:cardBackgroundColor="#3498DB"
 | 
				
			||||||
            app:cardCornerRadius="12dp"
 | 
					            app:cardCornerRadius="12dp"
 | 
				
			||||||
            app:cardElevation="4dp"
 | 
					            app:cardElevation="8dp"
 | 
				
			||||||
            app:cardBackgroundColor="#4A90E2"
 | 
					            app:layout_constraintTop_toBottomOf="@id/back_navigation">
 | 
				
			||||||
            app:layout_constraintTop_toBottomOf="@id/header_container">
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <LinearLayout
 | 
					            <LinearLayout
 | 
				
			||||||
                android:layout_width="match_parent"
 | 
					                android:layout_width="match_parent"
 | 
				
			||||||
                android:layout_height="wrap_content"
 | 
					                android:layout_height="match_parent"
 | 
				
			||||||
                android:orientation="vertical"
 | 
					                android:orientation="vertical"
 | 
				
			||||||
                android:padding="24dp"
 | 
					                android:padding="20dp">
 | 
				
			||||||
                android:gravity="center">
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                <!-- Title Text -->
 | 
				
			||||||
                <TextView
 | 
					                <TextView
 | 
				
			||||||
                    android:layout_width="wrap_content"
 | 
					                    android:layout_width="match_parent"
 | 
				
			||||||
                    android:layout_height="wrap_content"
 | 
					                    android:layout_height="wrap_content"
 | 
				
			||||||
                    android:text="SILAKAN MASUKAN PIN"
 | 
					                    android:text="SILAKAN MASUKAN PIN"
 | 
				
			||||||
                    android:textColor="@android:color/white"
 | 
					                    android:textColor="@android:color/white"
 | 
				
			||||||
                    android:textSize="18sp"
 | 
					                    android:textSize="18sp"
 | 
				
			||||||
                    android:textStyle="bold"
 | 
					                    android:textStyle="bold"
 | 
				
			||||||
                    android:layout_marginBottom="24dp"/>
 | 
					                    android:fontFamily="@font/inter"
 | 
				
			||||||
 | 
					                    android:layout_marginBottom="24dp"
 | 
				
			||||||
 | 
					                    android:gravity="center"
 | 
				
			||||||
 | 
					                    android:textAlignment="center"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                <!-- PIN Input Display -->
 | 
					                <!-- PIN Input Display -->
 | 
				
			||||||
                <LinearLayout
 | 
					                <LinearLayout
 | 
				
			||||||
                    android:layout_width="match_parent"
 | 
					                    android:layout_width="match_parent"
 | 
				
			||||||
                    android:layout_height="wrap_content"
 | 
					                    android:layout_height="wrap_content"
 | 
				
			||||||
                    android:gravity="center"
 | 
					                    android:orientation="horizontal"
 | 
				
			||||||
                    android:layout_marginBottom="16dp">
 | 
					                    android:layout_marginBottom="8dp"
 | 
				
			||||||
 | 
					                    android:gravity="center">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    <View
 | 
					                    <TextView
 | 
				
			||||||
                        android:layout_width="0dp"
 | 
					                        android:layout_width="wrap_content"
 | 
				
			||||||
                        android:layout_height="2dp"
 | 
					                        android:layout_height="wrap_content"
 | 
				
			||||||
                        android:layout_weight="1"
 | 
					                        android:textColor="@android:color/white"
 | 
				
			||||||
                        android:background="@android:color/white"
 | 
					                        android:textSize="20sp"
 | 
				
			||||||
                        android:layout_marginEnd="8dp"/>
 | 
					                        android:textStyle="bold"
 | 
				
			||||||
 | 
					                        android:fontFamily="@font/inter"
 | 
				
			||||||
 | 
					                        android:layout_marginEnd="8dp"
 | 
				
			||||||
 | 
					                        android:layout_gravity="center_vertical" />                    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    <EditText
 | 
					                    <EditText
 | 
				
			||||||
                        android:id="@+id/editTextPin"
 | 
					                        android:id="@+id/editTextPin"
 | 
				
			||||||
                        android:layout_width="0dp"
 | 
					                        android:layout_width="0dp"
 | 
				
			||||||
                        android:layout_height="48dp"
 | 
					                        android:layout_height="wrap_content"
 | 
				
			||||||
                        android:layout_weight="3"
 | 
					                        android:layout_weight="1"
 | 
				
			||||||
                        android:background="@android:color/transparent"
 | 
					                        android:background="@android:color/transparent"
 | 
				
			||||||
                        android:textColor="@android:color/white"
 | 
					                        android:textColor="@android:color/white"
 | 
				
			||||||
                        android:textColorHint="#CCFFFFFF"
 | 
					                        android:textColorHint="#80FFFFFF"
 | 
				
			||||||
                        android:textSize="24sp"
 | 
					                        android:textSize="20sp"
 | 
				
			||||||
                        android:textStyle="bold"
 | 
					                        android:textStyle="bold"
 | 
				
			||||||
                        android:gravity="center"
 | 
					                        android:fontFamily="@font/inter"
 | 
				
			||||||
                        android:inputType="numberPassword"
 | 
					                        android:hint=""
 | 
				
			||||||
                        android:maxLength="6"
 | 
					                        android:inputType="none"
 | 
				
			||||||
                        android:focusable="false"
 | 
					                        android:focusable="false"
 | 
				
			||||||
                        android:clickable="false"
 | 
					                        android:clickable="false"
 | 
				
			||||||
                        android:cursorVisible="false"
 | 
					                        android:cursorVisible="false"
 | 
				
			||||||
                        android:letterSpacing="0.5"/>
 | 
					                        android:text=""
 | 
				
			||||||
 | 
					                        android:gravity="center"
 | 
				
			||||||
 | 
					                        android:textAlignment="center"
 | 
				
			||||||
 | 
					                        android:paddingBottom="4dp" />
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
                    <View
 | 
					 | 
				
			||||||
                        android:layout_width="0dp"
 | 
					 | 
				
			||||||
                        android:layout_height="2dp"
 | 
					 | 
				
			||||||
                        android:layout_weight="1"
 | 
					 | 
				
			||||||
                        android:background="@android:color/white"
 | 
					 | 
				
			||||||
                        android:layout_marginStart="8dp"/>
 | 
					 | 
				
			||||||
                </LinearLayout>
 | 
					                </LinearLayout>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                <!-- White Underline -->
 | 
				
			||||||
 | 
					                <View
 | 
				
			||||||
 | 
					                    android:layout_width="match_parent"
 | 
				
			||||||
 | 
					                    android:layout_height="2dp"
 | 
				
			||||||
 | 
					                    android:background="@android:color/white"
 | 
				
			||||||
 | 
					                    android:layout_marginBottom="16dp" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            </LinearLayout>
 | 
					            </LinearLayout>
 | 
				
			||||||
        </androidx.cardview.widget.CardView>
 | 
					        </androidx.cardview.widget.CardView>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user