Now App supports Multiple Screens
This commit is contained in:
		
							parent
							
								
									e6ad5ad8f8
								
							
						
					
					
						commit
						64c70ce271
					
				@ -1,5 +1,5 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    xmlns:app="http://schemas.android.com/apk/res-auto"
 | 
			
		||||
    xmlns:tools="http://schemas.android.com/tools"
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
@ -7,15 +7,21 @@
 | 
			
		||||
    android:background="@color/background"
 | 
			
		||||
    tools:context=".MainActivity">
 | 
			
		||||
 | 
			
		||||
    <androidx.constraintlayout.widget.ConstraintLayout
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="wrap_content">
 | 
			
		||||
 | 
			
		||||
        <androidx.cardview.widget.CardView
 | 
			
		||||
            android:id="@+id/cardView_male"
 | 
			
		||||
        android:layout_width="185dp"
 | 
			
		||||
            android:layout_width="0dp"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:layout_marginStart="16dp"
 | 
			
		||||
            android:layout_marginTop="32dp"
 | 
			
		||||
            android:layout_marginEnd="8dp"
 | 
			
		||||
        app:cardBackgroundColor="@color/card_background"
 | 
			
		||||
            app:cardCornerRadius="10dp"
 | 
			
		||||
            app:layout_constraintHorizontal_weight="1"
 | 
			
		||||
            app:cardBackgroundColor="@color/card_background"
 | 
			
		||||
            app:layout_constraintBottom_toTopOf="@+id/cardView5"
 | 
			
		||||
            app:layout_constraintEnd_toStartOf="@+id/cardView_female"
 | 
			
		||||
            app:layout_constraintHorizontal_chainStyle="spread"
 | 
			
		||||
            app:layout_constraintStart_toStartOf="parent"
 | 
			
		||||
@ -39,15 +45,16 @@
 | 
			
		||||
 | 
			
		||||
        <androidx.cardview.widget.CardView
 | 
			
		||||
            android:id="@+id/cardView_female"
 | 
			
		||||
        android:layout_width="185dp"
 | 
			
		||||
            android:layout_width="0dp"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_marginTop="32dp"
 | 
			
		||||
            android:layout_marginEnd="16dp"
 | 
			
		||||
            app:layout_constraintHorizontal_weight="1"
 | 
			
		||||
            app:cardBackgroundColor="@color/card_background"
 | 
			
		||||
            app:cardCornerRadius="10dp"
 | 
			
		||||
            app:layout_constraintBottom_toBottomOf="@+id/cardView_male"
 | 
			
		||||
            app:layout_constraintEnd_toEndOf="parent"
 | 
			
		||||
            app:layout_constraintStart_toEndOf="@+id/cardView_male"
 | 
			
		||||
        app:layout_constraintTop_toTopOf="parent">
 | 
			
		||||
            app:layout_constraintTop_toTopOf="@+id/cardView_male">
 | 
			
		||||
 | 
			
		||||
            <TextView
 | 
			
		||||
                android:id="@+id/female"
 | 
			
		||||
@ -72,6 +79,8 @@
 | 
			
		||||
            android:layout_margin="16dp"
 | 
			
		||||
            app:cardBackgroundColor="@color/card_background"
 | 
			
		||||
            app:cardCornerRadius="10dp"
 | 
			
		||||
            app:layout_constraintBottom_toTopOf="@+id/cardView3"
 | 
			
		||||
            app:layout_constraintHorizontal_chainStyle="spread"
 | 
			
		||||
            app:layout_constraintLeft_toLeftOf="parent"
 | 
			
		||||
            app:layout_constraintRight_toRightOf="parent"
 | 
			
		||||
            app:layout_constraintTop_toBottomOf="@+id/cardView_male">
 | 
			
		||||
@ -108,7 +117,8 @@
 | 
			
		||||
                    android:layout_marginTop="10dp"
 | 
			
		||||
                    android:max="200"
 | 
			
		||||
                    android:progressBackgroundTint="#888994"
 | 
			
		||||
                android:progressTint="@android:color/white" />
 | 
			
		||||
                    android:progressTint="@android:color/white"
 | 
			
		||||
                    tools:targetApi="lollipop" />
 | 
			
		||||
 | 
			
		||||
            </LinearLayout>
 | 
			
		||||
 | 
			
		||||
@ -116,13 +126,14 @@
 | 
			
		||||
 | 
			
		||||
        <androidx.cardview.widget.CardView
 | 
			
		||||
            android:id="@+id/cardView3"
 | 
			
		||||
        android:layout_width="185dp"
 | 
			
		||||
            android:layout_width="0dp"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:layout_marginStart="16dp"
 | 
			
		||||
        android:layout_marginTop="16dp"
 | 
			
		||||
            android:layout_marginEnd="8dp"
 | 
			
		||||
            app:layout_constraintHorizontal_weight="1"
 | 
			
		||||
            app:cardBackgroundColor="@color/card_background"
 | 
			
		||||
            app:cardCornerRadius="10dp"
 | 
			
		||||
        android:layout_marginEnd="8dp"
 | 
			
		||||
            app:layout_constraintBottom_toTopOf="@+id/calculate"
 | 
			
		||||
            app:layout_constraintEnd_toStartOf="@+id/cardView4"
 | 
			
		||||
            app:layout_constraintStart_toStartOf="parent"
 | 
			
		||||
            app:layout_constraintTop_toBottomOf="@+id/cardView5">
 | 
			
		||||
@ -203,16 +214,16 @@
 | 
			
		||||
 | 
			
		||||
        <androidx.cardview.widget.CardView
 | 
			
		||||
            android:id="@+id/cardView4"
 | 
			
		||||
        android:layout_width="185dp"
 | 
			
		||||
            android:layout_width="0dp"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_marginTop="16dp"
 | 
			
		||||
            android:layout_marginEnd="16dp"
 | 
			
		||||
            app:cardBackgroundColor="@color/card_background"
 | 
			
		||||
            app:cardCornerRadius="10dp"
 | 
			
		||||
            app:layout_constraintHorizontal_weight="1"
 | 
			
		||||
            app:layout_constraintBottom_toBottomOf="@+id/cardView3"
 | 
			
		||||
            app:layout_constraintEnd_toEndOf="parent"
 | 
			
		||||
        app:layout_constraintHorizontal_bias="0.5"
 | 
			
		||||
            app:layout_constraintStart_toEndOf="@+id/cardView3"
 | 
			
		||||
        app:layout_constraintTop_toBottomOf="@+id/cardView5">
 | 
			
		||||
            app:layout_constraintTop_toTopOf="@+id/cardView3">
 | 
			
		||||
 | 
			
		||||
            <LinearLayout
 | 
			
		||||
                android:layout_width="match_parent"
 | 
			
		||||
@ -295,6 +306,7 @@
 | 
			
		||||
            android:layout_marginLeft="16dp"
 | 
			
		||||
            android:layout_marginTop="16dp"
 | 
			
		||||
            android:layout_marginRight="16dp"
 | 
			
		||||
            android:layout_marginBottom="24dp"
 | 
			
		||||
            android:background="@drawable/calculate_btn"
 | 
			
		||||
            android:text="@string/calculate"
 | 
			
		||||
            android:textColor="@android:color/white"
 | 
			
		||||
@ -302,7 +314,10 @@
 | 
			
		||||
            android:textStyle="bold"
 | 
			
		||||
            app:layout_constraintBottom_toBottomOf="parent"
 | 
			
		||||
            app:layout_constraintEnd_toEndOf="parent"
 | 
			
		||||
            app:layout_constraintHorizontal_bias="0.5"
 | 
			
		||||
            app:layout_constraintStart_toStartOf="parent"
 | 
			
		||||
            app:layout_constraintTop_toBottomOf="@+id/cardView3" />
 | 
			
		||||
 | 
			
		||||
</androidx.constraintlayout.widget.ConstraintLayout>
 | 
			
		||||
    </androidx.constraintlayout.widget.ConstraintLayout>
 | 
			
		||||
 | 
			
		||||
</ScrollView>
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user