Back to project page NerdZoo.
The source code is released under:
Apache License
If you think the Android project NerdZoo 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.bignerdranch.android.nerdzoo.controller; /*from ww w. j a v a 2s . c om*/ import android.annotation.TargetApi; import android.os.Build; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.bignerdranch.android.nerdzoo.BaseApplication; import com.bignerdranch.android.nerdzoo.R; import com.bignerdranch.android.nerdzoo.anim.RevealAnimator; import butterknife.ButterKnife; import butterknife.InjectView; public class AboutFragment extends Fragment { @InjectView(R.id.fragment_about_description) TextView mAboutTextView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); BaseApplication.get(getActivity()).inject(this); setHasOptionsMenu(true); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_about, container, false); ButterKnife.inject(this, view); view.addOnLayoutChangeListener(new View.OnLayoutChangeListener() { @TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) { v.removeOnLayoutChangeListener(this); RevealAnimator.show(mAboutTextView); } }); return view; } }