Search in sources :

Example 6 with HelveticaTextView

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);
}
Also used : HelveticaTextView(com.instructure.speedgrader.views.HelveticaTextView)

Example 7 with HelveticaTextView

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();
}
Also used : HelveticaTextView(com.instructure.speedgrader.views.HelveticaTextView)

Example 8 with HelveticaTextView

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()));
}
Also used : CircularProgressBar(com.instructure.speedgrader.views.CircularProgressBar) HelveticaTextView(com.instructure.speedgrader.views.HelveticaTextView) ImageView(android.widget.ImageView) View(android.view.View)

Example 9 with HelveticaTextView

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;
        }
    };
}
Also used : FrameLayout(android.widget.FrameLayout) HelveticaTextView(com.instructure.speedgrader.views.HelveticaTextView)

Example 10 with HelveticaTextView

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()));
}
Also used : CircularProgressBar(com.instructure.speedgrader.views.CircularProgressBar) HelveticaTextView(com.instructure.speedgrader.views.HelveticaTextView)

Aggregations

HelveticaTextView (com.instructure.speedgrader.views.HelveticaTextView)10 View (android.view.View)6 ImageView (android.widget.ImageView)5 CircleImageView (de.hdodenhof.circleimageview.CircleImageView)4 ScrollView (android.widget.ScrollView)3 TextView (android.widget.TextView)3 CircularProgressBar (com.instructure.speedgrader.views.CircularProgressBar)2 Drawable (android.graphics.drawable.Drawable)1 SwitchCompat (android.support.v7.widget.SwitchCompat)1 CompoundButton (android.widget.CompoundButton)1 FrameLayout (android.widget.FrameLayout)1 ViewSwitcher (android.widget.ViewSwitcher)1 Attachment (com.instructure.canvasapi.model.Attachment)1 MediaComment (com.instructure.canvasapi.model.MediaComment)1 ZendeskDialogStyled (com.instructure.loginapi.login.api.zendesk.utilities.ZendeskDialogStyled)1 TutorialUtils (com.instructure.pandautils.utils.TutorialUtils)1 OnSettingsChangedListener (com.instructure.speedgrader.interfaces.OnSettingsChangedListener)1 App (com.instructure.speedgrader.util.App)1 Callback (com.squareup.picasso.Callback)1 Calendar (java.util.Calendar)1