mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-09 22:01:02 +00:00
# formatting
This commit is contained in:
1 parent
07f0c021b3
commit
8ddb472a3f
1 file changed
+19
-19
+19
-19
@@ -14,29 +14,29 @@ import com.sap.sailing.racecommittee.app.R;
|
||||
|
||||
/**
|
||||
* @author D053502
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class NamedArrayAdapter<T extends Named> extends ArrayAdapter<T> {
|
||||
|
||||
public NamedArrayAdapter(Context context, int textViewResourceId, List<T> namedList) {
|
||||
super(context, textViewResourceId, namedList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getView(int position, View convertView, ViewGroup parent) {
|
||||
View view = convertView;
|
||||
if (convertView == null) {
|
||||
|
||||
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||
view = inflater.inflate(R.layout.welter_one_row_no_image, /* view group */ null);
|
||||
}
|
||||
public NamedArrayAdapter(Context context, int textViewResourceId, List<T> namedList) {
|
||||
super(context, textViewResourceId, namedList);
|
||||
}
|
||||
|
||||
T item = getItem(position);
|
||||
TextView title = (TextView) view.findViewById(R.id.Welter_Cell_OneRowNoImage_txtTitle);
|
||||
title.setText(item.getName());
|
||||
title.setAlpha(isEnabled(position) ? 1.0f : 0.2f);
|
||||
@Override
|
||||
public View getView(int position, View convertView, ViewGroup parent) {
|
||||
View view = convertView;
|
||||
if (convertView == null) {
|
||||
|
||||
return view;
|
||||
}
|
||||
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||
view = inflater.inflate(R.layout.welter_one_row_no_image, /* view group */null);
|
||||
}
|
||||
|
||||
T item = getItem(position);
|
||||
TextView title = (TextView) view.findViewById(R.id.Welter_Cell_OneRowNoImage_txtTitle);
|
||||
title.setText(item.getName());
|
||||
title.setAlpha(isEnabled(position) ? 1.0f : 0.2f);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user