Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/UserInterface/List/EntryItem.java
Show All 39 Lines | 39 | public EntryItem(String title, String subtitle) { | |||
---|---|---|---|---|---|
40 | this.title = title; | 40 | this.title = title; | ||
41 | this.subtitle = subtitle; | 41 | this.subtitle = subtitle; | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | @Override | 44 | @Override | ||
45 | public View inflateView(LayoutInflater layoutInflater) { | 45 | public View inflateView(LayoutInflater layoutInflater) { | ||
46 | View v = layoutInflater.inflate(R.layout.list_item_entry, null); | 46 | View v = layoutInflater.inflate(R.layout.list_item_entry, null); | ||
47 | 47 | | |||
48 | TextView titleView = (TextView)v.findViewById(R.id.list_item_entry_title); | 48 | TextView titleView = (TextView) v.findViewById(R.id.list_item_entry_title); | ||
49 | if (titleView != null) titleView.setText(title); | 49 | if (titleView != null) titleView.setText(title); | ||
50 | 50 | | |||
51 | if (subtitle != null) { | 51 | if (subtitle != null) { | ||
52 | TextView subtitleView = (TextView) v.findViewById(R.id.list_item_entry_summary); | 52 | TextView subtitleView = (TextView) v.findViewById(R.id.list_item_entry_summary); | ||
53 | if (subtitleView != null) { | 53 | if (subtitleView != null) { | ||
54 | subtitleView.setVisibility(View.VISIBLE); | 54 | subtitleView.setVisibility(View.VISIBLE); | ||
55 | subtitleView.setText(subtitle); | 55 | subtitleView.setText(subtitle); | ||
56 | } | 56 | } | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | return v; | 59 | return v; | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | } | 62 | } |