2014-01-14 06:45:59 +01:00
|
|
|
package com.mhalka.qurantranslationdisplay;
|
|
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
|
|
import android.os.Bundle;
|
2014-01-17 06:59:52 +01:00
|
|
|
import android.text.method.ScrollingMovementMethod;
|
2014-01-14 06:45:59 +01:00
|
|
|
import android.view.View;
|
2014-01-17 06:59:52 +01:00
|
|
|
import android.widget.TextView;
|
2014-01-14 06:45:59 +01:00
|
|
|
|
|
|
|
|
import com.mhalka.qurantranslationdisplay.util.SystemUiHider;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* An example full-screen activity that shows and hides the system UI (i.e.
|
|
|
|
|
* status bar and navigation/system bar) with user interaction.
|
|
|
|
|
*
|
|
|
|
|
* @see SystemUiHider
|
|
|
|
|
*/
|
|
|
|
|
public class ShowAyah extends Activity {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
|
|
setContentView(R.layout.activity_show_ayah);
|
2014-01-17 06:59:52 +01:00
|
|
|
final TextView ayah = (TextView) findViewById(R.id.ayah);
|
|
|
|
|
ayah.setMovementMethod(new ScrollingMovementMethod());
|
2014-01-14 06:45:59 +01:00
|
|
|
|
2014-01-17 08:44:17 +01:00
|
|
|
// Example of use of QuranReader
|
|
|
|
|
// AssetManager assetManager = getAssets();
|
|
|
|
|
// QuranReader reader = new QuranReader(assetManager, "quran_content");
|
|
|
|
|
// reader.setChapter(2);
|
|
|
|
|
// String verseText = reader.getVerse(16);
|
2014-01-14 06:45:59 +01:00
|
|
|
}
|
|
|
|
|
}
|