Android Open Source - face_rec_android Help Item Fragment






From Project

Back to project page face_rec_android.

License

The source code is released under:

GNU General Public License

If you think the Android project face_rec_android 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 in.amolgupta.helpingfaceless.activities;
//from  w w  w  .  j a v  a 2s .  c o m
import in.amolgupta.helpingfaceless.R;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

public class HelpItemFragment extends Fragment {
  TextView txtTitle, txtContent;
  int position;
  Button btnFinish;

  HelpItemFragment(int position) {
    super();
    this.position = position+1;
  }

  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
    ViewGroup rootView = (ViewGroup) inflater.inflate(
        R.layout.fragment_screen_slide_page, container, false);
    txtTitle = (TextView) rootView.findViewById(R.id.help_txt_one);
    txtContent = (TextView) rootView.findViewById(R.id.help_txt_details);
    btnFinish = (Button) rootView.findViewById(R.id.help_btn_finish);
    txtTitle.setText("Step " + position);
    txtContent.setText("Do something blah blah");
    if (position == HelpActivity.NUM_PAGES) {
      btnFinish.setVisibility(View.VISIBLE);
      btnFinish.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
          HelpItemFragment.this.getActivity().finish();

        }
      });
    }
    return rootView;
  }
}




Java Source Code List

in.amolgupta.helpingfaceless.Views.Fragment.DashboardFragment.java
in.amolgupta.helpingfaceless.activities.HFBaseActivity.java
in.amolgupta.helpingfaceless.activities.HelpActivity.java
in.amolgupta.helpingfaceless.activities.HelpItemFragment.java
in.amolgupta.helpingfaceless.activities.HomeActivity.java
in.amolgupta.helpingfaceless.activities.ImageFragment.java
in.amolgupta.helpingfaceless.activities.PledgeFragment.java
in.amolgupta.helpingfaceless.activities.SetupActivity.java
in.amolgupta.helpingfaceless.activities.SigningActivity.java
in.amolgupta.helpingfaceless.activities.UploadForm.java
in.amolgupta.helpingfaceless.common.App.java
in.amolgupta.helpingfaceless.common.Constants.java
in.amolgupta.helpingfaceless.entities.ImageData.java
in.amolgupta.helpingfaceless.entities.NavItem.java
in.amolgupta.helpingfaceless.entities.TaskDetails.java
in.amolgupta.helpingfaceless.parser.CrowsourceDataParser.java
in.amolgupta.helpingfaceless.services.SendCSResponse.java
in.amolgupta.helpingfaceless.utils.ET.java
in.amolgupta.helpingfaceless.utils.LocationRequestData.java
in.amolgupta.helpingfaceless.utils.RequestUtils.java