다음을 통해 공유


Fragment.GetString Method

Definition

Overloads

GetString(Int32)

Return a localized string from the application's package's default string table.

GetString(Int32, Object[])

Return a localized string from the application's package's default string table.

GetString(Int32)

Return a localized string from the application's package's default string table.

[Android.Runtime.Register("getString", "(I)Ljava/lang/String;", "")]
public string? GetString (int resId);
[<Android.Runtime.Register("getString", "(I)Ljava/lang/String;", "")>]
member this.GetString : int -> string

Parameters

resId
Int32

Resource id for the string

Returns

Attributes

Remarks

Return a localized string from the application's package's default string table.

Java documentation for android.app.Fragment.getString(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetString(Int32, Object[])

Return a localized string from the application's package's default string table.

[Android.Runtime.Register("getString", "(I[Ljava/lang/Object;)Ljava/lang/String;", "")]
public string? GetString (int resId, params Java.Lang.Object[]? formatArgs);
[<Android.Runtime.Register("getString", "(I[Ljava/lang/Object;)Ljava/lang/String;", "")>]
member this.GetString : int * Java.Lang.Object[] -> string

Parameters

resId
Int32

Resource id for the string

formatArgs
Object[]

Returns

Attributes

Remarks

Java documentation for android.app.Fragment.getString(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to