Back to project page holoaccent.
The source code is released under:
Apache License
If you think the Android project holoaccent listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.negusoft.holoaccent.example.fragment; /*from w w w. ja va2 s . c o m*/ import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.NumberPicker; import com.negusoft.holoaccent.example.R; public class PickersFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View result = inflater.inflate(R.layout.pickers, null); NumberPicker nPicker1 = (NumberPicker)result.findViewById(R.id.numberPicker); nPicker1.setMinValue(0); nPicker1.setMaxValue(100); nPicker1.setValue(30); return result; } }