Switched back to using SimonVT's number picker
This commit is contained in:
parent
c310a00a55
commit
ca60cf54c8
@ -9,6 +9,5 @@
|
||||
|
||||
# Project target.
|
||||
target=android-16
|
||||
android.library.reference.1=..\\..\\..\\Documents\\GitHub\\NineOldAndroids\\library
|
||||
android.library.reference.1=..\\..\\..\\Documents\\GitHub\\android-numberpicker\\library
|
||||
android.library.reference.2=..\\..\\..\\Documents\\GitHub\\HoloEverywhere\\contrib\\ActionBarSherlock\\library
|
||||
android.library.reference.3=..\\..\\..\\Documents\\GitHub\\HoloEverywhere\\library
|
||||
|
@ -5,12 +5,12 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<NumberPicker
|
||||
<net.simonvt.widget.NumberPicker
|
||||
android:id="@+id/numberPicker"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" >
|
||||
</NumberPicker>
|
||||
</net.simonvt.widget.NumberPicker>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
|
@ -3,7 +3,12 @@
|
||||
|
||||
<!-- Base application theme is the default theme. -->
|
||||
|
||||
<style name="AppTheme" parent="@style/Holo.Theme.Sherlock"></style>
|
||||
<style name="AppTheme" parent="@style/Holo.Theme.Sherlock">
|
||||
<item name="numberPickerUpButtonStyle">@style/NPWidget.Holo.ImageButton.NumberPickerUpButton</item>
|
||||
<item name="numberPickerDownButtonStyle">@style/NPWidget.Holo.ImageButton.NumberPickerDownButton</item>
|
||||
<item name="numberPickerInputTextStyle">@style/NPWidget.Holo.EditText.NumberPickerInputText</item>
|
||||
<item name="numberPickerStyle">@style/NPWidget.Holo.NumberPicker</item>
|
||||
</style>
|
||||
|
||||
<style name="ButtonBar">
|
||||
<item name="android:layout_width">fill_parent</item>
|
||||
@ -104,4 +109,72 @@
|
||||
<item name="android:layout_marginRight">87dp</item>
|
||||
<item name="android:layout_marginBottom">5dp</item>
|
||||
</style>
|
||||
|
||||
<style name="NPWidget">
|
||||
<item name="android:textAppearance">?android:attr/textAppearance</item>
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.NumberPicker">
|
||||
<item name="android:orientation">vertical</item>
|
||||
<item name="android:fadingEdge">vertical</item>
|
||||
<item name="android:fadingEdgeLength">50dip</item>
|
||||
<item name="flingable">false</item>
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.Holo.NumberPicker" parent="NPWidget.NumberPicker">
|
||||
<item name="solidColor">@android:color/transparent</item>
|
||||
<item name="flingable">true</item>
|
||||
<item name="selectionDivider">@drawable/np_numberpicker_selection_divider</item>
|
||||
<item name="selectionDividerHeight">2dip</item>
|
||||
<item name="android:minWidth">48dip</item>
|
||||
<item name="android:maxHeight">200dip</item>
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.Holo.EditText.NumberPickerInputText">
|
||||
<item name="android:paddingTop">13sp</item>
|
||||
<item name="android:paddingBottom">13sp</item>
|
||||
<item name="android:paddingLeft">2sp</item>
|
||||
<item name="android:paddingRight">2sp</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textSize">18sp</item>
|
||||
<item name="android:background">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.Holo.EditText" parent="NPWidget.EditText">
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.EditText">
|
||||
<item name="android:focusable">true</item>
|
||||
<item name="android:focusableInTouchMode">true</item>
|
||||
<item name="android:clickable">true</item>
|
||||
<item name="android:textAppearance">?android:attr/textAppearanceMediumInverse</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.Holo.ImageButton.NumberPickerUpButton">
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:src">@drawable/np_numberpicker_up_btn_holo_dark</item>
|
||||
<item name="android:paddingTop">16dip</item>
|
||||
<item name="android:paddingBottom">22dip</item>
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.Holo.ImageButton.NumberPickerDownButton">
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:src">@drawable/np_numberpicker_down_btn_holo_dark</item>
|
||||
<item name="android:paddingTop">22dip</item>
|
||||
<item name="android:paddingBottom">16dip</item>
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.Holo.ImageButton" parent="NPWidget.ImageButton">
|
||||
<!--item name="android:background">@android:drawable/btn_default_holo_dark</item-->
|
||||
</style>
|
||||
|
||||
<style name="NPWidget.ImageButton">
|
||||
<item name="android:focusable">true</item>
|
||||
<item name="android:clickable">true</item>
|
||||
<item name="android:scaleType">center</item>
|
||||
<item name="android:background">@android:drawable/btn_default</item>
|
||||
</style>
|
||||
</resources>
|
@ -1,5 +1,6 @@
|
||||
package com.dougkeen.bart.activities;
|
||||
|
||||
import net.simonvt.widget.NumberPicker;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.SharedPreferences;
|
||||
@ -12,7 +13,6 @@ import com.WazaBe.HoloEverywhere.LayoutInflater;
|
||||
import com.WazaBe.HoloEverywhere.app.AlertDialog;
|
||||
import com.WazaBe.HoloEverywhere.app.Dialog;
|
||||
import com.WazaBe.HoloEverywhere.app.DialogFragment;
|
||||
import com.WazaBe.HoloEverywhere.widget.NumberPicker;
|
||||
import com.dougkeen.bart.BartRunnerApplication;
|
||||
import com.dougkeen.bart.R;
|
||||
import com.dougkeen.bart.model.Departure;
|
||||
|
Loading…
Reference in New Issue
Block a user