code: Сделан экран результата в XML
This commit is contained in:
		
							parent
							
								
									9d89f1417d
								
							
						
					
					
						commit
						21fbedfdf0
					
				| @ -1,25 +1,66 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | <androidx.constraintlayout.widget.ConstraintLayout 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" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="match_parent" |     android:layout_height="match_parent"> | ||||||
|     android:gravity="center" | 
 | ||||||
|     android:orientation="vertical" | 
 | ||||||
|     android:padding="16dp"> |     <androidx.constraintlayout.widget.Guideline | ||||||
|  |         android:id="@+id/guideline_top" | ||||||
|  |         android:layout_width="wrap_content" | ||||||
|  |         android:layout_height="wrap_content" | ||||||
|  |         android:orientation="horizontal" | ||||||
|  |         app:layout_constraintGuide_percent="0.25" /> | ||||||
|  | 
 | ||||||
|  |     <androidx.constraintlayout.widget.Guideline | ||||||
|  |         android:id="@+id/guideline_bottom" | ||||||
|  |         android:layout_width="wrap_content" | ||||||
|  |         android:layout_height="wrap_content" | ||||||
|  |         android:orientation="horizontal" | ||||||
|  |         app:layout_constraintGuide_percent= "0.7" /> | ||||||
|  | 
 | ||||||
|  |     <View | ||||||
|  |         android:id="@+id/close" | ||||||
|  |         android:layout_width="45dp" | ||||||
|  |         android:layout_height="45dp" | ||||||
|  |         android:layout_marginStart="20dp" | ||||||
|  |         android:layout_marginTop="20dp" | ||||||
|  |         android:background="@drawable/back_button" | ||||||
|  |         app:layout_constraintStart_toStartOf="parent" | ||||||
|  |         app:layout_constraintTop_toTopOf="parent" /> | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |     <View | ||||||
|  |         android:id="@+id/success_icon" | ||||||
|  |         android:layout_width="150dp" | ||||||
|  |         android:layout_height="150dp" | ||||||
|  |         android:background="@drawable/success_icon" | ||||||
|  |         app:layout_constraintEnd_toEndOf="parent" | ||||||
|  |         app:layout_constraintStart_toStartOf="parent" | ||||||
|  |         app:layout_constraintTop_toTopOf="@+id/guideline_top" /> | ||||||
| 
 | 
 | ||||||
|     <TextView |     <TextView | ||||||
|         android:id="@+id/result" |         android:id="@+id/result" | ||||||
|         android:layout_width="wrap_content" |         android:layout_width="wrap_content" | ||||||
|         android:layout_height="wrap_content" |         android:layout_height="wrap_content" | ||||||
|         android:layout_gravity="center_horizontal" |         android:layout_marginBottom="5dp" | ||||||
|         android:text="@string/resulText" |         android:text="@string/resulText" | ||||||
|         android:textColor="@android:color/black" |         android:textColor="@color/black" | ||||||
|         android:textSize="18sp" /> |         android:textSize="25sp" | ||||||
|  |         android:textStyle="bold" | ||||||
|  |         app:layout_constraintBottom_toTopOf="@+id/text_lastenter" | ||||||
|  |         app:layout_constraintEnd_toEndOf="parent" | ||||||
|  |         app:layout_constraintStart_toStartOf="parent" /> | ||||||
| 
 | 
 | ||||||
|     <Button |     <TextView | ||||||
|         android:id="@+id/close" |         android:id="@+id/text_lastenter" | ||||||
|         android:layout_width="wrap_content" |         android:layout_width="wrap_content" | ||||||
|         android:layout_height="wrap_content" |         android:layout_height="wrap_content" | ||||||
|         android:layout_marginTop="16dp" |         android:text="@string/text_last_enter" | ||||||
|         android:text="@string/closeText" /> |         app:layout_constraintBottom_toTopOf="@+id/guideline_bottom" | ||||||
|  |         app:layout_constraintEnd_toEndOf="parent" | ||||||
|  |         app:layout_constraintStart_toStartOf="parent" /> | ||||||
| 
 | 
 | ||||||
| </LinearLayout> | 
 | ||||||
|  | </androidx.constraintlayout.widget.ConstraintLayout> | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user