Android Guides | Samples

Android.Widget.TwoLineListItem Class

See Also: TwoLineListItem

Syntax

[Android.Runtime.Register("android/widget/TwoLineListItem", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public class TwoLineListItem : RelativeLayout

Remarks

A view group with two children, intended for use in ListViews. This item has two TextView elements (or subclasses) with the ID values NoType:android/R$id;Href=../../../reference/android/R.id.html#text1 and NoType:android/R$id;Href=../../../reference/android/R.id.html#text2. There is an optional third View element with the ID NoType:android/R$id;Href=../../../reference/android/R.id.html#selectedIcon, which can be any View subclass (though it is typically a graphic View, such as ImageView) that can be displayed when a TwoLineListItem has focus. Android supplies a NoType:android/R$layout;Href=../../../reference/android/R.layout.html#two_line_list_item (which does not include a selected item icon), but you can design your own custom XML layout for this object.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1Deprecated since API level 17

The members of Android.Widget.TwoLineListItem are listed below.

See Also: RelativeLayout

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
Text1TextView. Returns a handle to the item with ID text1.
[read-only]
Text2TextView. Returns a handle to the item with ID text2.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.