Search in sources :

Example 1 with PreviousAnswerIndicator

use of com.ichi2.anki.reviewer.PreviousAnswerIndicator in project Anki-Android by ankidroid.

the class AbstractFlashcardViewer method onCreate.

// ----------------------------------------------------------------------------
// ANDROID METHODS
// ----------------------------------------------------------------------------
@Override
protected void onCreate(Bundle savedInstanceState) {
    Timber.d("onCreate()");
    restorePreferences();
    mTagsDialogFactory = new TagsDialogFactory(this).attachToActivity(this);
    super.onCreate(savedInstanceState);
    setContentView(getContentViewAttr(mPrefFullscreenReview));
    // Make ACTION_PROCESS_TEXT for in-app searching possible on > Android 4.0
    getDelegate().setHandleNativeActionModesEnabled(true);
    View mainView = findViewById(android.R.id.content);
    initNavigationDrawer(mainView);
    mPreviousAnswerIndicator = new PreviousAnswerIndicator(findViewById(R.id.choosen_answer));
    mShortAnimDuration = getResources().getInteger(android.R.integer.config_shortAnimTime);
}
Also used : PreviousAnswerIndicator(com.ichi2.anki.reviewer.PreviousAnswerIndicator) TagsDialogFactory(com.ichi2.anki.dialogs.tags.TagsDialogFactory) View(android.view.View) WebView(android.webkit.WebView)

Aggregations

View (android.view.View)1 WebView (android.webkit.WebView)1 TagsDialogFactory (com.ichi2.anki.dialogs.tags.TagsDialogFactory)1 PreviousAnswerIndicator (com.ichi2.anki.reviewer.PreviousAnswerIndicator)1