Search in sources :

Example 1 with InlineTranslationView

use of com.quran.labs.androidquran.widgets.InlineTranslationView in project quran_android by quran.

the class AyahTranslationFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    final View view = inflater.inflate(R.layout.translation_panel, container, false);
    translator = (QuranSpinner) view.findViewById(R.id.translator);
    translationView = (InlineTranslationView) view.findViewById(R.id.translation_view);
    progressBar = (ProgressBar) view.findViewById(R.id.progress);
    emptyState = view.findViewById(R.id.empty_state);
    translationControls = view.findViewById(R.id.controls);
    final View next = translationControls.findViewById(R.id.next_ayah);
    next.setOnClickListener(onClickListener);
    final View prev = translationControls.findViewById(R.id.previous_ayah);
    prev.setOnClickListener(onClickListener);
    final Button getTranslations = (Button) view.findViewById(R.id.get_translations_button);
    getTranslations.setOnClickListener(onClickListener);
    return view;
}
Also used : Button(android.widget.Button) InlineTranslationView(com.quran.labs.androidquran.widgets.InlineTranslationView) View(android.view.View)

Aggregations

View (android.view.View)1 Button (android.widget.Button)1 InlineTranslationView (com.quran.labs.androidquran.widgets.InlineTranslationView)1