mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-27 21:03:54 +01:00 
			
		
		
		
	 6c97d3e01b
			
		
	
	
		6c97d3e01b
		
	
	
	
	
		
			
			Initial port of the acceptable use tutorial from iOS app. This version uses static images and is not yet animated. Indicator circles on the pager are done using Apache-licensed https://github.com/JakeWharton/Android-ViewPagerIndicator -- imported via maven. Currently the tutorial launches when we reach the login screen (as when first installing the app or creating a new account from system settings). You can either 'back' out of it or page through and hit the 'yes' button. GitHub: https://github.com/wikimedia/apps-android-commons/pull/20 Change-Id: Ibc444102e28a55bfa7bbae601ff0c56268a0c7dd
		
			
				
	
	
		
			68 lines
		
	
	
		
			No EOL
		
	
	
		
			2.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			No EOL
		
	
	
		
			2.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| 
 | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|               android:orientation="horizontal"
 | |
|               android:layout_width="match_parent"
 | |
|               android:layout_height="match_parent"
 | |
|               android:background="#0c609c"
 | |
|               android:gravity="center"
 | |
|         >
 | |
| 
 | |
|     <!-- Sorry about the hardcoded sizes here. They're image-related. -->
 | |
|     <LinearLayout
 | |
|             android:layout_width="wrap_content"
 | |
|             android:layout_height="180dp"
 | |
|             android:gravity="center_horizontal">
 | |
| 
 | |
|         <ImageView
 | |
|                 android:layout_width="150dp"
 | |
|                 android:layout_height="180dp"
 | |
|                 android:src="@drawable/welcome_wikipedia"/>
 | |
| 
 | |
|         <ImageView
 | |
|                 android:layout_width="160dp"
 | |
|                 android:layout_height="120dp"
 | |
|                 android:layout_gravity="center"
 | |
|                 android:src="@drawable/welcome_copyright"/>
 | |
| 
 | |
|     </LinearLayout>
 | |
| 
 | |
|     <LinearLayout android:orientation="vertical"
 | |
|                   android:layout_width="wrap_content"
 | |
|                   android:layout_height="match_parent"
 | |
|                   android:gravity="center_vertical"
 | |
|             >
 | |
|         <TextView
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:maxWidth="240dp"
 | |
|                 android:text="@string/welcome_final_text"
 | |
|                 android:layout_gravity="center"
 | |
|                 android:textStyle="bold"
 | |
|                 android:textAlignment="center"
 | |
|                 android:gravity="center_horizontal"
 | |
|                 android:textColor="@android:color/white"
 | |
|                 android:singleLine="false"/>
 | |
| 
 | |
|         <TextView
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:maxWidth="240dp"
 | |
|                 android:layout_gravity="center"
 | |
|                 android:textAlignment="center"
 | |
|                 android:paddingTop="16dp"
 | |
|                 android:gravity="center_horizontal"/>
 | |
| 
 | |
|         <Button
 | |
|                 android:layout_width="120dp"
 | |
|                 android:layout_height="40dp"
 | |
|                 android:text="@string/welcome_final_button_text"
 | |
|                 android:id="@+id/welcomeYesButton"
 | |
|                 android:layout_gravity="center"
 | |
|                 android:background="@android:color/white"
 | |
|                 android:textColor="#0c609c"
 | |
|                 android:textStyle="bold"
 | |
|                 />
 | |
|     </LinearLayout>
 | |
| 
 | |
| </LinearLayout> |