--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* //device/apps/common/assets/res/any/layout/simple_spinner_item.xml
+**
+** Copyright 2006, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+ style="@style/spinnerStyle"
+-->
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/spinnerStyle"
+ android:id="@android:id/text1"
+ android:singleLine="true"
+ android:layout_width="match_parent"
+ android:ellipsize="marquee" />
<item name="android:textColor">@color/actionbar_title_color</item>
</style>
+ <style name="spinnerStyle" parent="@android:style/Widget.Holo.TextView.SpinnerItem">
+ <item name="android:textSize">22dp</item>
+ <item name="android:layout_height">wrap_content</item>
+ </style>
+
</resources>
\ No newline at end of file
<style name="labelTextStyle" parent="@android:style/TextAppearance.Medium" />
- <style name="valueTextStyle" parent="@android:style/TextAppearance.Large" />
+ <style name="valueTextStyle" parent="@android:style/TextAppearance.Large">
+ <item name="android:gravity">right</item>
+ </style>
<style name="AppTheme.NoTitleBar" parent="@style/AppTheme">
<item name="android:windowNoTitle">true</item>
</style>
+ <style name="spinnerStyle" parent="@android:style/Widget.TextView.SpinnerItem">
+ <item name="android:textSize">22dp</item>
+ <item name="android:textColor">#000000</item>
+ <item name="android:layout_height">30dp</item>
+ </style>
+
</resources>
\ No newline at end of file
Rocket rocket = rocketDocument.getRocket();\r
\r
String[] motorConfigs = rocket.getMotorConfigurationIDs();\r
- ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<String>(getActivity(),android.R.layout.simple_spinner_item);\r
+ ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<String>(getActivity(),R.layout.simple_spinner_item);\r
for( String config: motorConfigs ) {\r
spinnerAdapter.add(rocket.getMotorConfigurationNameOrDescription(config));\r
}\r
selectableSeries.add(fdt);\r
}\r
}\r
- ArrayAdapter<FlightDataType> serieses = new ArrayAdapter<FlightDataType>(getActivity(),android.R.layout.simple_spinner_item,selectableSeries) {\r
+ ArrayAdapter<FlightDataType> serieses = new ArrayAdapter<FlightDataType>(getActivity(),R.layout.simple_spinner_item,selectableSeries) {\r
\r
@Override\r
public View getView(int position, View convertView, ViewGroup parent) {\r
View v = convertView;\r
if ( v == null ) {\r
LayoutInflater li = inflater;\r
- v = li.inflate(android.R.layout.simple_spinner_item,null);\r
+ v = li.inflate(R.layout.simple_spinner_item,null);\r
}\r
FlightDataType fdt = this.getItem(position);\r
((TextView)v.findViewById(android.R.id.text1)).setText( fdt.toString() );\r