mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 23:03:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			947 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			947 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package fr.free.nrw.commons;
 | |
| 
 | |
| import android.os.Bundle;
 | |
| import android.support.v4.view.ViewPager;
 | |
| 
 | |
| import com.viewpagerindicator.CirclePageIndicator;
 | |
| 
 | |
| import butterknife.BindView;
 | |
| import butterknife.ButterKnife;
 | |
| import fr.free.nrw.commons.theme.BaseActivity;
 | |
| 
 | |
| public class WelcomeActivity extends BaseActivity {
 | |
| 
 | |
|     @BindView(R.id.welcomePager) ViewPager pager;
 | |
|     @BindView(R.id.welcomePagerIndicator) CirclePageIndicator indicator;
 | |
| 
 | |
|     @Override
 | |
|     public void onCreate(Bundle savedInstanceState) {
 | |
|         super.onCreate(savedInstanceState);
 | |
|         setContentView(R.layout.activity_welcome);
 | |
| 
 | |
|         if (getSupportActionBar() != null) {
 | |
|             getSupportActionBar().hide();
 | |
|         }
 | |
|         ButterKnife.bind(this);
 | |
| 
 | |
|         setUpAdapter();
 | |
|     }
 | |
| 
 | |
|     private void setUpAdapter() {
 | |
|         WelcomePagerAdapter adapter = new WelcomePagerAdapter(this);
 | |
|         pager.setAdapter(adapter);
 | |
|         indicator.setViewPager(pager);
 | |
|     }
 | |
| }
 | 
