Back to project page Android-App-Project___Partner-Finder.
The source code is released under:
Apache License
If you think the Android project Android-App-Project___Partner-Finder listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.google.cloud.backend.sample.guestbook; //w w w . j a v a 2 s .com import com.google.cloud.backend.R; import android.app.Activity; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.ImageView; /** * This Fragment shows the first screen of the Guestbook introduction. */ public class IntroFirstFragment extends Fragment implements OnClickListener { public static final String TAG = "FIRST"; private OnIntroNavListener mCallback; private ImageView mNextBtn; @Override public void onAttach(Activity activity) { super.onAttach(activity); // Set the callback activity to use try { mCallback = (OnIntroNavListener) activity; } catch (ClassCastException e) { throw new ClassCastException( activity.toString() + " must implement OnIntroNavListener"); } } @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_intro_first, container, false); mNextBtn = (ImageView) v.findViewById(R.id.intro_1_next_btn); mNextBtn.setOnClickListener(this); return v; } @Override public void onClick(View v) { switch (v.getId()) { case R.id.intro_1_next_btn: mCallback.toSecond(TAG); break; } } }