mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-10-30 22:36:46 +08:00 
			
		
		
		
	android: Use material slider in settings dialog
This commit is contained in:
		
							parent
							
								
									fa38c7be4f
								
							
						
					
					
						commit
						7cd72a7c6d
					
				| @ -1,37 +1,37 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|     xmlns:tools="http://schemas.android.com/tools" |     xmlns:tools="http://schemas.android.com/tools" | ||||||
|     android:orientation="vertical" |  | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content"> |     android:layout_height="wrap_content" | ||||||
|  |     android:orientation="vertical"> | ||||||
| 
 | 
 | ||||||
|     <SeekBar |     <TextView | ||||||
|         android:id="@+id/seekbar" |         android:id="@+id/text_value" | ||||||
|  |         android:layout_width="wrap_content" | ||||||
|  |         android:layout_height="wrap_content" | ||||||
|  |         android:layout_alignParentTop="true" | ||||||
|  |         android:layout_centerHorizontal="true" | ||||||
|  |         android:layout_marginBottom="@dimen/spacing_medlarge" | ||||||
|  |         android:layout_marginTop="@dimen/spacing_medlarge" | ||||||
|  |         tools:text="75" /> | ||||||
|  | 
 | ||||||
|  |     <TextView | ||||||
|  |         android:id="@+id/text_units" | ||||||
|  |         android:layout_width="wrap_content" | ||||||
|  |         android:layout_height="wrap_content" | ||||||
|  |         android:layout_alignTop="@+id/text_value" | ||||||
|  |         android:layout_toEndOf="@+id/text_value" | ||||||
|  |         tools:text="%" /> | ||||||
|  | 
 | ||||||
|  |     <com.google.android.material.slider.Slider | ||||||
|  |         android:id="@+id/slider" | ||||||
|         android:layout_width="match_parent" |         android:layout_width="match_parent" | ||||||
|         android:layout_height="wrap_content" |         android:layout_height="wrap_content" | ||||||
|         android:layout_marginLeft="@dimen/spacing_large" |  | ||||||
|         android:layout_marginRight="@dimen/spacing_large" |  | ||||||
|         android:layout_alignParentEnd="true" |         android:layout_alignParentEnd="true" | ||||||
|         android:layout_alignParentStart="true" |         android:layout_alignParentStart="true" | ||||||
|         android:layout_below="@+id/text_value" |         android:layout_below="@+id/text_value" | ||||||
|         android:layout_marginBottom="@dimen/spacing_medlarge" /> |         android:layout_marginBottom="@dimen/spacing_medlarge" | ||||||
| 
 |         android:layout_marginLeft="@dimen/spacing_large" | ||||||
|     <TextView |         android:layout_marginRight="@dimen/spacing_large" /> | ||||||
|         android:layout_width="wrap_content" |  | ||||||
|         android:layout_height="wrap_content" |  | ||||||
|         tools:text="75" |  | ||||||
|         android:id="@+id/text_value" |  | ||||||
|         android:layout_alignParentTop="true" |  | ||||||
|         android:layout_centerHorizontal="true" |  | ||||||
|         android:layout_marginTop="@dimen/spacing_medlarge" |  | ||||||
|         android:layout_marginBottom="@dimen/spacing_medlarge" /> |  | ||||||
| 
 |  | ||||||
|     <TextView |  | ||||||
|         android:layout_width="wrap_content" |  | ||||||
|         android:layout_height="wrap_content" |  | ||||||
|         tools:text="%" |  | ||||||
|         android:id="@+id/text_units" |  | ||||||
|         android:layout_alignTop="@+id/text_value" |  | ||||||
|         android:layout_toEndOf="@+id/text_value" /> |  | ||||||
| 
 | 
 | ||||||
| </RelativeLayout> | </RelativeLayout> | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user