mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
GameDetailsDialog: Show game ID and revision
This commit is contained in:
parent
84e616337d
commit
ec91674d07
@ -49,6 +49,8 @@ public final class GameDetailsDialog extends DialogFragment
|
|||||||
|
|
||||||
TextView textCountry = contents.findViewById(R.id.text_country);
|
TextView textCountry = contents.findViewById(R.id.text_country);
|
||||||
TextView textCompany = contents.findViewById(R.id.text_company);
|
TextView textCompany = contents.findViewById(R.id.text_company);
|
||||||
|
TextView textGameId = contents.findViewById(R.id.text_game_id);
|
||||||
|
TextView textRevision = contents.findViewById(R.id.text_revision);
|
||||||
|
|
||||||
FloatingActionButton buttonLaunch = contents.findViewById(R.id.button_launch);
|
FloatingActionButton buttonLaunch = contents.findViewById(R.id.button_launch);
|
||||||
|
|
||||||
@ -63,6 +65,8 @@ public final class GameDetailsDialog extends DialogFragment
|
|||||||
}
|
}
|
||||||
textCountry.setText(country);
|
textCountry.setText(country);
|
||||||
textCompany.setText(gameFile.getCompany());
|
textCompany.setText(gameFile.getCompany());
|
||||||
|
textGameId.setText(gameFile.getGameId());
|
||||||
|
textRevision.setText(Integer.toString(gameFile.getRevision()));
|
||||||
|
|
||||||
buttonLaunch.setOnClickListener(view ->
|
buttonLaunch.setOnClickListener(view ->
|
||||||
{
|
{
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:paddingStart="24dp"
|
android:paddingStart="24dp"
|
||||||
android:paddingEnd="24dp"
|
android:paddingEnd="24dp"
|
||||||
|
android:paddingBottom="24dp"
|
||||||
android:transitionName="card_game">
|
android:transitionName="card_game">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@ -69,8 +70,25 @@
|
|||||||
android:layout_below="@+id/icon_country"
|
android:layout_below="@+id/icon_country"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:padding="6dp"
|
android:padding="6dp"
|
||||||
android:src="@drawable/ic_company"
|
android:src="@drawable/ic_company"/>
|
||||||
android:layout_marginBottom="16dp"/>
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/icon_game_id"
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:layout_alignStart="@+id/icon_company"
|
||||||
|
android:layout_below="@+id/icon_company"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:padding="6dp"/>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/icon_revision"
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:layout_alignStart="@+id/icon_game_id"
|
||||||
|
android:layout_below="@+id/icon_game_id"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:padding="6dp"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/text_country"
|
android:id="@+id/text_country"
|
||||||
@ -93,6 +111,26 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
tools:text="Nintendo"/>
|
tools:text="Nintendo"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_game_id"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBottom="@+id/icon_game_id"
|
||||||
|
android:layout_alignStart="@+id/text_company"
|
||||||
|
android:layout_alignTop="@+id/icon_game_id"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
tools:text="SOME01"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_revision"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBottom="@+id/icon_revision"
|
||||||
|
android:layout_alignStart="@+id/text_game_id"
|
||||||
|
android:layout_alignTop="@+id/icon_revision"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
tools:text="0"/>
|
||||||
|
|
||||||
<android.support.design.widget.FloatingActionButton
|
<android.support.design.widget.FloatingActionButton
|
||||||
android:id="@+id/button_launch"
|
android:id="@+id/button_launch"
|
||||||
android:layout_width="56dp"
|
android:layout_width="56dp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user