feat: 适龄提示等级补充 https://jira.shanqu.cc/browse/GHZS-4384
Signed-off-by: chenjuntao <chenjuntao@ghzhushou.com>
@ -1224,9 +1224,12 @@ class GameDetailFragment : ToolbarFragment(), IScrollable {
|
||||
mBodyBinding.recommendAgeIv.goneIf(recommendAge.isNullOrEmpty())
|
||||
if (!recommendAge.isNullOrEmpty()) {
|
||||
val recommendAgeRes = when (recommendAge) {
|
||||
"6+" -> R.drawable.ic_recommend_age6
|
||||
"8+" -> R.drawable.ic_recommend_age8
|
||||
"12+" -> R.drawable.ic_recommend_age12
|
||||
"16+" -> R.drawable.ic_recommend_age16
|
||||
"18+" -> R.drawable.ic_recommend_age18
|
||||
"21+" -> R.drawable.ic_recommend_age21
|
||||
else -> -1
|
||||
}
|
||||
if (recommendAgeRes > 0) {
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.6 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_recommend_age18.webp
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_recommend_age21.webp
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_recommend_age6.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.6 KiB |
@ -143,7 +143,7 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/recommendAgeIv"
|
||||
android:layout_width="76dp"
|
||||
android:layout_width="58dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:visibility="gone"
|
||||
|
||||