Show downloads & ratings, size no longer available on web apis
This commit is contained in:
committed by
Aayush Gupta
parent
bdf5658acf
commit
c6850b176e
@@ -74,7 +74,7 @@ class AppListView : RelativeLayout {
|
|||||||
B.txtLine2.text = app.developerName
|
B.txtLine2.text = app.developerName
|
||||||
|
|
||||||
val extras: MutableList<String> = mutableListOf()
|
val extras: MutableList<String> = mutableListOf()
|
||||||
extras.add(CommonUtil.addSiPrefix(app.size))
|
extras.add(app.downloadString)
|
||||||
extras.add("${app.labeledRating}★")
|
extras.add("${app.labeledRating}★")
|
||||||
extras.add(
|
extras.add(
|
||||||
if (app.isFree)
|
if (app.isFree)
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package com.aurora.store.view.epoxy.views.app
|
package com.aurora.store.view.epoxy.views.app
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
@@ -71,6 +72,10 @@ class AppView : RelativeLayout {
|
|||||||
transformations(RoundedCornersTransformation(32F))
|
transformations(RoundedCornersTransformation(32F))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
B.txtSize.text = context
|
||||||
|
.getString(R.string.app_view_rating)
|
||||||
|
.format(app.downloadString, app.rating.abbreviatedLabel)
|
||||||
|
|
||||||
if (app.size > 0)
|
if (app.size > 0)
|
||||||
B.txtSize.text = CommonUtil.addSiPrefix(app.size)
|
B.txtSize.text = CommonUtil.addSiPrefix(app.size)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
<string name="app_name">"Aurora Store"</string>
|
<string name="app_name">"Aurora Store"</string>
|
||||||
|
|
||||||
<string name="app_list_rating">"%1$s • %2$s★ • %3$s"</string>
|
<string name="app_list_rating">"%1$s • %2$s★ • %3$s"</string>
|
||||||
|
<string name="app_view_rating">"%1$s • %2$s★"</string>
|
||||||
<string name="download_speed_bytes" translatable="false">%1$d B/s</string>
|
<string name="download_speed_bytes" translatable="false">%1$d B/s</string>
|
||||||
<string name="download_speed_kb" translatable="false">%1$s KB/s</string>
|
<string name="download_speed_kb" translatable="false">%1$s KB/s</string>
|
||||||
<string name="download_speed_mb" translatable="false">%1$s MB/s</string>
|
<string name="download_speed_mb" translatable="false">%1$s MB/s</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user