use of com.instructure.speedgrader.views.HelveticaTextView in project instructure-android by instructure.
the class GradingDrawerFragment method updateAssignmentDetails.
@Override
public void updateAssignmentDetails(Assignment assignment) {
HelveticaTextView assignmentNameTextView;
assignmentNameTextView = (HelveticaTextView) mRootView.findViewById(R.id.assignmentName);
assignmentNameTextView.setText(assignment.getName());
rubricFragment.updateAssignmentDetails(assignment);
}
use of com.instructure.speedgrader.views.HelveticaTextView in project instructure-android by instructure.
the class GradingDrawerFragment method setupViews.
public void setupViews() {
viewPager = (StaticViewPager) mRootView.findViewById(R.id.pager);
viewPager.setOffscreenPageLimit(1);
HelveticaTextView assignmentNameTextView;
assignmentNameTextView = (HelveticaTextView) mRootView.findViewById(R.id.assignmentName);
assignmentNameTextView.setText(assignment.getName());
setupViewSwitcher();
}
use of com.instructure.speedgrader.views.HelveticaTextView in project instructure-android by instructure.
the class OnlineURLFragment method setupViews.
private void setupViews(View rootView) {
previewImageHolder = (ImageView) rootView.findViewById(R.id.previewImage);
urlButton = (Button) rootView.findViewById(R.id.urlButton);
urlLabel = (HelveticaTextView) rootView.findViewById(R.id.urlLabel);
loadingView = rootView.findViewById(R.id.loadingLayout);
loadingView.setVisibility(View.VISIBLE);
// allow long presses to show context menu
previewImageHolder.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
openMedia(submission.getAttachments().get(0).getMimeType(), submission.getAttachments().get(0).getUrl(), submission.getAttachments().get(0).getDisplayName());
}
});
CircularProgressBar progressBar = (CircularProgressBar) rootView.findViewById(R.id.progressBar);
progressBar.setColor(CanvasContextColor.getCachedColor(getContext(), getCanvasContext().getContextId()));
}
use of com.instructure.speedgrader.views.HelveticaTextView in project instructure-android by instructure.
the class DocumentActivity method createTextSwitcherViewFactory.
private ViewSwitcher.ViewFactory createTextSwitcherViewFactory() {
return new ViewSwitcher.ViewFactory() {
@Override
public View makeView() {
final HelveticaTextView textView = new HelveticaTextView(DocumentActivity.this);
textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL);
final FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT);
params.gravity = Gravity.CENTER;
textView.setLayoutParams(params);
textView.setTextColor(ContextCompat.getColor(getContext(), R.color.white));
textView.setTextSize(20);
return textView;
}
};
}
use of com.instructure.speedgrader.views.HelveticaTextView in project instructure-android by instructure.
the class SubmissionWebViewFragment method initLoadingView.
/**
* For Crocodoc files, we use javascript to override some CSS styles. Since Javascript is so slow, it's a bit ugly since the user can see
* the style changes taking place, and the view isn't scrollable until the changes take place. For Crocodoc files, we display a loading image
* over the webview, then use a javascript interface to remove this loadingview when changes complete.
* @param rootView
*/
private void initLoadingView(View rootView) {
loadingView = (RelativeLayout) rootView.findViewById(R.id.webViewLoading);
((HelveticaTextView) loadingView.findViewById(R.id.emptyViewText)).setText(getString(R.string.loadingIndeterminate));
CircularProgressBar progressBar = (CircularProgressBar) loadingView.findViewById(R.id.circularProgressBar);
progressBar.setColor(CanvasContextColor.getCachedColor(getContext(), getCanvasContext().getContextId()));
}
Aggregations