코드 목록 11-1 ViewPager 만들기

2574 단어
package com.bignerdranch.android.criminallntent;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class CrimePagerActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedinstanceState){
        super.onCreate(savedinstanceState);
        setContentView(R.layout.activity_crime_pager);
    }

}
xml version="1.0" encoding="utf-8"?>
<android.support.v4.view.ViewPager
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/crime_view_pager"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

android.support.v4.view.ViewPager>

좋은 웹페이지 즐겨찾기