| android:id="@+id/spinner_view" | android:id="@+id/spinner_view" | ||||
| android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:ellipsize="end" | |||||
| android:gravity="bottom|left" | android:gravity="bottom|left" | ||||
| android:lines="1" | android:lines="1" | ||||
| android:paddingLeft="2dp" | android:paddingLeft="2dp" | ||||
| android:scrollHorizontally="true" | |||||
| android:text="FontTextView" | android:text="FontTextView" | ||||
| android:textColor="@color/white" | android:textColor="@color/white" | ||||
| android:textSize="18sp" | android:textSize="18sp" |
| if (getItem(position).getId() != -999) { | if (getItem(position).getId() != -999) { | ||||
| textViewMain.setText(getItem(position).getName()); | textViewMain.setText(getItem(position).getName()); | ||||
| textViewSub.setText(getItem(position).getRiser().toString() + " / " + getItem(position).getSight().toString()); | |||||
| textViewSub.setText(getItem(position).getRiser().toString() + " ● " + getItem(position).getSight().toString()); | |||||
| } else { | } else { | ||||
| textViewMain.setText("[ ]"); | textViewMain.setText("[ ]"); | ||||
| textViewSub.setText(getContext().getString(R.string.caption_NoSelection)); | textViewSub.setText(getContext().getString(R.string.caption_NoSelection)); |
| if (this.id == -999) { | if (this.id == -999) { | ||||
| return getManufacturer(); | return getManufacturer(); | ||||
| } | } | ||||
| return getManufacturer() + " ● " + getModel() + " ● " + DF.format(getSize()) + "\""; | |||||
| return getManufacturer() + " " + getModel() + " " + DF.format(getSize()) + "\""; | |||||
| } | } | ||||
| } | } |
| if (this.id == -999) { | if (this.id == -999) { | ||||
| return getManufacturer(); | return getManufacturer(); | ||||
| } | } | ||||
| return getManufacturer() + " ● " + getModel(); | |||||
| return getManufacturer() + " " + getModel(); | |||||
| } | } | ||||
| } | } |