bullheadandplato / quranVerses

Show random Quran verse in android app
18 stars 8 forks source link

Quran Ayahs #1

Closed FarisFarley closed 4 years ago

FarisFarley commented 4 years ago

Assalamo Alaikum. Brother hopefully you are doing good In Sha Allah, brother I want to show the hadith and quranic ayahs in the google card view and want to change the fonts of the text. how is that possible? hadith and its references are combined.. i want to show them in a seperate text in the card. please advise me how to do that or the options are limited ?

bullheadandplato commented 4 years ago

Wa-alikum-aslam, To get Quran ayah you can use QuranQuote.getInstance(context).getRandomVerse() To get Hadith you can use HadithQuote.getInstance(context).getRandomHadith()

FarisFarley commented 4 years ago

Wa-alikum-aslam, To get Quran ayah you can use QuranQuote.getInstance(context).getRandomVerse() To get Hadith you can use HadithQuote.getInstance(context).getRandomHadith()

Sorry i dint get that... for example if i want to get two seperate text view (the ayah) ( reference) in two different text and display it in cardview hows that possible ? please kindly show with example e.g textview = findviewbyid(R.id. ayah) textview = findviewbyid(R.id. reference)

now how to get them in each textview and the reference ?

bullheadandplato commented 4 years ago

When you will call QuranQuote.getInstance(context).getRandomVerse() it will return object of Verse it will have all the required properties like ayah text reference etc