Skip to content

Instantly share code, notes, and snippets.

@hi-manshu
Created October 10, 2017 15:52
Show Gist options
  • Save hi-manshu/be38ab248f8b6a5092c79e82bf623b31 to your computer and use it in GitHub Desktop.
Save hi-manshu/be38ab248f8b6a5092c79e82bf623b31 to your computer and use it in GitHub Desktop.
public class DayActivity extends Fragment {
public DayActivity() {
// Required empty public constructor
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public void onResume() {
super.onResume();
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// Inflate the layout for this fragment
mIsRestoredFromBackstack = false;
View view = inflater.inflate(R.layout.fragment_day_activty, container, false);
SharedPreference.init(getContext());
bindView(view);
//Initiated Broadcast receiver
return view;
}
private void bindView(View view) {
dayProgressBarActivity = (ProgressBar) view.findViewById(R.id.dayProgressBarActivity);
steps = (CustomFontTextView) view.findViewById(R.id.Steps);
caloriesburnt = (CustomFontTextView) view.findViewById(R.id.caloriesburnt);
distanceTravelled = (CustomFontTextView) view.findViewById(R.id.distanceTravelled);
activetime = (CustomFontTextView) view.findViewById(R.id.activetime);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment