Android Open Source - Dhamaschool About_ Us_ Fragment






From Project

Back to project page Dhamaschool.

License

The source code is released under:

Apache License

If you think the Android project Dhamaschool 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 group.ripple.dhamaschool;
//from  www. j a v  a2  s  .c o  m
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.ButterKnife;
import butterknife.InjectView;
import de.psdev.licensesdialog.LicensesDialog;

/**
 * Created by WaiLynnZaw on 12/14/14.
 */
public class About_Us_Fragment extends Fragment implements View.OnClickListener {


   @InjectView(R.id.facebook)
    ImageView ivFb;
    @InjectView(R.id.mail)
    ImageView ivEmail;
    @InjectView(R.id.osl)
    TextView osl;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.about_us_layout,container,false);
        ButterKnife.inject(this,v);
        ivFb.setOnClickListener(this);
        ivEmail.setOnClickListener(this);
        osl.setClickable(true);
        osl.setOnClickListener(this);


           // osl.setClickable(true);


        return v;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.facebook:
                startActivity(new Intent(getActivity(),WebViewActivity.class));
                break;
            case R.id.mail:


                Utils.SendEmail(getActivity(), Constant.e_mail);
                break;
            case R.id.osl:
                new LicensesDialog.Builder(getActivity()).setNotices(R.raw.notices).build().show();
                break;
        }
    }
}




Java Source Code List

group.ripple.dhamaschool.About_Us_Fragment.java
group.ripple.dhamaschool.ApplicationTest.java
group.ripple.dhamaschool.BaseDAO.java
group.ripple.dhamaschool.Constant.java
group.ripple.dhamaschool.Contact_fragment.java
group.ripple.dhamaschool.DatabaseManager.java
group.ripple.dhamaschool.DetailActivity.java
group.ripple.dhamaschool.DetailPagerFB.java
group.ripple.dhamaschool.FacebookPage.java
group.ripple.dhamaschool.Home.java
group.ripple.dhamaschool.MainActivity.java
group.ripple.dhamaschool.NetworkListener.java
group.ripple.dhamaschool.NewsDao.java
group.ripple.dhamaschool.NewsObjAdapter.java
group.ripple.dhamaschool.NewsObj.java
group.ripple.dhamaschool.SplashActivity.java
group.ripple.dhamaschool.Utils.java
group.ripple.dhamaschool.WebViewActivity.java