Android Open Source - prepGRE About Fragment






From Project

Back to project page prepGRE.

License

The source code is released under:

MIT License

If you think the Android project prepGRE listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.abhimanbhau.prepgre.ui;
//w  w  w  .ja v  a  2s .  c  om
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.abhimanbhau.prepgre.R;
import com.github.amlcurran.showcaseview.ShowcaseView;
import com.github.amlcurran.showcaseview.targets.ViewTarget;

public class AboutFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_about, container, false);
        //showShowcase();
        return view;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        showShowcase();
    }

    void showShowcase() {
        if (getView() == null) {
            return;
        }
        ViewTarget viewTarget = new ViewTarget(R.id.txtMainDataView, getActivity());
        new ShowcaseView.Builder(getActivity(), true)
                .setTarget(viewTarget)
                .setContentTitle("Fuck off bitch")
                .setContentText("Love ya Neha!")
                .singleShot(42)
                .build().show();
    }

}




Java Source Code List

com.abhimanbhau.prepgre.code.EtymologyRetriever.java
com.abhimanbhau.prepgre.code.MnemonicRetriever.java
com.abhimanbhau.prepgre.code.Utility.java
com.abhimanbhau.prepgre.ui.AboutFragment.java
com.abhimanbhau.prepgre.ui.HomeFragment.java
com.abhimanbhau.prepgre.ui.MainActivity.java
com.abhimanbhau.prepgre.ui.NavigationDrawerFragment.java
com.abhimanbhau.prepgre.ui.SettingsActivity.java
com.abhimanbhau.prepgre.ui.WordListFragment.java