mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-08 03:40:05 +00:00
Android: restore the company name on the game card.
This commit is contained in:
parent
316b4348ea
commit
b8bb2e647c
2 changed files with 23 additions and 2 deletions
|
@ -148,6 +148,11 @@ class GameAdapter(private val activity: AppCompatActivity) :
|
|||
} else {
|
||||
View.VISIBLE
|
||||
}
|
||||
binding.textCompany.visibility = if (game.company.isEmpty()) {
|
||||
View.GONE
|
||||
} else {
|
||||
View.VISIBLE
|
||||
}
|
||||
binding.textGameId.visibility = if (game.titleId == 0L) {
|
||||
View.GONE
|
||||
} else {
|
||||
|
@ -155,6 +160,7 @@ class GameAdapter(private val activity: AppCompatActivity) :
|
|||
}
|
||||
|
||||
binding.textGameTitle.text = game.title
|
||||
binding.textCompany.text = game.company
|
||||
binding.textGameId.text = String.format("ID: %016X", game.titleId)
|
||||
binding.textFilename.text = game.filename
|
||||
|
||||
|
@ -178,6 +184,9 @@ class GameAdapter(private val activity: AppCompatActivity) :
|
|||
binding.textGameTitle.ellipsize = TextUtils.TruncateAt.MARQUEE
|
||||
binding.textGameTitle.isSelected = true
|
||||
|
||||
binding.textCompany.ellipsize = TextUtils.TruncateAt.MARQUEE
|
||||
binding.textCompany.isSelected = true
|
||||
|
||||
binding.textGameId.ellipsize = TextUtils.TruncateAt.MARQUEE
|
||||
binding.textGameId.isSelected = true
|
||||
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
|
||||
<ImageView
|
||||
android:id="@+id/image_game_screen"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_width="75dp"
|
||||
android:layout_height="75dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
@ -51,6 +51,18 @@
|
|||
android:requiresFadingEdge="horizontal"
|
||||
tools:text="The Legend of Zelda\nOcarina of Time 3D" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_company"
|
||||
style="@style/TextAppearance.Material3.BodySmall"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAlignment="viewStart"
|
||||
android:singleLine="true"
|
||||
android:marqueeRepeatLimit="marquee_forever"
|
||||
android:ellipsize="none"
|
||||
android:requiresFadingEdge="horizontal"
|
||||
tools:text="Nintendo" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_game_id"
|
||||
style="@style/TextAppearance.Material3.BodySmall"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue