@ -0,0 +1,9 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<classpath> |
||||
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
||||
|
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> |
||||
|
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> |
||||
|
<classpathentry kind="src" path="src"/> |
||||
|
<classpathentry kind="src" path="gen"/> |
||||
|
<classpathentry kind="output" path="bin/classes"/> |
||||
|
</classpath> |
@ -0,0 +1,33 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<projectDescription> |
||||
|
<name>TimeLib</name> |
||||
|
<comment></comment> |
||||
|
<projects> |
||||
|
</projects> |
||||
|
<buildSpec> |
||||
|
<buildCommand> |
||||
|
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> |
||||
|
<arguments> |
||||
|
</arguments> |
||||
|
</buildCommand> |
||||
|
<buildCommand> |
||||
|
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> |
||||
|
<arguments> |
||||
|
</arguments> |
||||
|
</buildCommand> |
||||
|
<buildCommand> |
||||
|
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
|
<arguments> |
||||
|
</arguments> |
||||
|
</buildCommand> |
||||
|
<buildCommand> |
||||
|
<name>com.android.ide.eclipse.adt.ApkBuilder</name> |
||||
|
<arguments> |
||||
|
</arguments> |
||||
|
</buildCommand> |
||||
|
</buildSpec> |
||||
|
<natures> |
||||
|
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> |
||||
|
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
|
</natures> |
||||
|
</projectDescription> |
@ -0,0 +1,3 @@ |
|||||
|
eclipse.preferences.version=1 |
||||
|
encoding//src/pickerview/OptionsPopupWindow.java=UTF-8 |
||||
|
encoding/<project>=UTF-8 |
@ -0,0 +1,12 @@ |
|||||
|
eclipse.preferences.version=1 |
||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
||||
|
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate |
||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 |
||||
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
||||
|
org.eclipse.jdt.core.compiler.compliance=1.6 |
||||
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
||||
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate |
||||
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
||||
|
org.eclipse.jdt.core.compiler.source=1.6 |
@ -0,0 +1,5 @@ |
|||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
package="com.bigkoo.pickerview"> |
||||
|
|
||||
|
|
||||
|
</manifest> |
@ -0,0 +1,5 @@ |
|||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
package="com.bigkoo.pickerview"> |
||||
|
|
||||
|
|
||||
|
</manifest> |
@ -0,0 +1,46 @@ |
|||||
|
int anim timepicker_anim_enter_bottom 0x7f040000 |
||||
|
int anim timepicker_anim_exit_bottom 0x7f040001 |
||||
|
int color wheel_timebtn_nor 0x7f050000 |
||||
|
int color wheel_timebtn_pre 0x7f050001 |
||||
|
int dimen activity_horizontal_margin 0x7f060000 |
||||
|
int dimen activity_vertical_margin 0x7f060001 |
||||
|
int drawable bg_above_timepicker 0x7f020000 |
||||
|
int drawable bg_line_timepicker 0x7f020001 |
||||
|
int drawable ic_launcher 0x7f020002 |
||||
|
int drawable switch_bg_holo_light 0x7f020003 |
||||
|
int drawable wheel_timebtn 0x7f020004 |
||||
|
int drawable wheel_val 0x7f020005 |
||||
|
int id action_settings 0x7f0a000e |
||||
|
int id btnCancel 0x7f0a0008 |
||||
|
int id btnSubmit 0x7f0a000a |
||||
|
int id day 0x7f0a0005 |
||||
|
int id hour 0x7f0a0006 |
||||
|
int id min 0x7f0a0007 |
||||
|
int id month 0x7f0a0004 |
||||
|
int id options1 0x7f0a0000 |
||||
|
int id options2 0x7f0a0001 |
||||
|
int id options3 0x7f0a0002 |
||||
|
int id optionspicker 0x7f0a000b |
||||
|
int id timepicker 0x7f0a000d |
||||
|
int id tvEdtName 0x7f0a0009 |
||||
|
int id tvTime 0x7f0a000c |
||||
|
int id year 0x7f0a0003 |
||||
|
int layout activity_main 0x7f030000 |
||||
|
int layout include_optionspicker 0x7f030001 |
||||
|
int layout include_timepicker 0x7f030002 |
||||
|
int layout pw_options 0x7f030003 |
||||
|
int layout pw_time 0x7f030004 |
||||
|
int menu main 0x7f090000 |
||||
|
int string action_settings 0x7f070002 |
||||
|
int string app_name 0x7f070000 |
||||
|
int string hello_world 0x7f070001 |
||||
|
int string pickerview_cancel 0x7f070003 |
||||
|
int string pickerview_day 0x7f070007 |
||||
|
int string pickerview_hours 0x7f070008 |
||||
|
int string pickerview_minutes 0x7f070009 |
||||
|
int string pickerview_month 0x7f070006 |
||||
|
int string pickerview_seconds 0x7f07000a |
||||
|
int string pickerview_submit 0x7f070004 |
||||
|
int string pickerview_year 0x7f070005 |
||||
|
int style AppBaseTheme 0x7f080001 |
||||
|
int style timepopwindow_anim_style 0x7f080000 |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 255 B |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 136 B |
@ -0,0 +1,37 @@ |
|||||
|
apply plugin: 'android-library' |
||||
|
|
||||
|
dependencies { |
||||
|
compile fileTree(dir: 'libs', include: '*.jar') |
||||
|
} |
||||
|
|
||||
|
android { |
||||
|
compileSdkVersion 26 |
||||
|
buildToolsVersion "26.0.2" |
||||
|
lintOptions { |
||||
|
abortOnError false |
||||
|
} |
||||
|
sourceSets { |
||||
|
main { |
||||
|
manifest.srcFile 'AndroidManifest.xml' |
||||
|
jniLibs.srcDirs = ['libs'] |
||||
|
java.srcDirs = ['src'] |
||||
|
resources.srcDirs = ['src'] |
||||
|
aidl.srcDirs = ['src'] |
||||
|
renderscript.srcDirs = ['src'] |
||||
|
res.srcDirs = ['res'] |
||||
|
assets.srcDirs = ['assets'] |
||||
|
} |
||||
|
|
||||
|
// Move the tests to tests/java, tests/res, etc... |
||||
|
instrumentTest.setRoot('tests') |
||||
|
|
||||
|
// Move the build types to build-types/<type> |
||||
|
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |
||||
|
// This moves them out of them default location under src/<type>/... which would |
||||
|
// conflict with src/ being used by the main source set. |
||||
|
// Adding new build types or product flavors should be accompanied |
||||
|
// by a similar customization. |
||||
|
debug.setRoot('build-types/debug') |
||||
|
release.setRoot('build-types/release') |
||||
|
} |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
/** |
||||
|
* Automatically generated file. DO NOT MODIFY |
||||
|
*/ |
||||
|
package com.bigkoo.pickerview; |
||||
|
|
||||
|
public final class BuildConfig { |
||||
|
public static final boolean DEBUG = Boolean.parseBoolean("true"); |
||||
|
public static final String APPLICATION_ID = "com.bigkoo.pickerview"; |
||||
|
public static final String BUILD_TYPE = "debug"; |
||||
|
public static final String FLAVOR = ""; |
||||
|
public static final int VERSION_CODE = -1; |
||||
|
public static final String VERSION_NAME = ""; |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
/** |
||||
|
* Automatically generated file. DO NOT MODIFY |
||||
|
*/ |
||||
|
package com.bigkoo.pickerview; |
||||
|
|
||||
|
public final class BuildConfig { |
||||
|
public static final boolean DEBUG = false; |
||||
|
public static final String APPLICATION_ID = "com.bigkoo.pickerview"; |
||||
|
public static final String BUILD_TYPE = "release"; |
||||
|
public static final String FLAVOR = ""; |
||||
|
public static final int VERSION_CODE = -1; |
||||
|
public static final String VERSION_NAME = ""; |
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
/* AUTO-GENERATED FILE. DO NOT MODIFY. |
||||
|
* |
||||
|
* This class was automatically generated by the |
||||
|
* gradle plugin from the resource data it found. It |
||||
|
* should not be modified by hand. |
||||
|
*/ |
||||
|
package com.bigkoo.pickerview; |
||||
|
|
||||
|
public final class R { |
||||
|
public static final class anim { |
||||
|
public static int timepicker_anim_enter_bottom = 0x7f010001; |
||||
|
public static int timepicker_anim_exit_bottom = 0x7f010002; |
||||
|
} |
||||
|
public static final class color { |
||||
|
public static int wheel_timebtn_nor = 0x7f060001; |
||||
|
public static int wheel_timebtn_pre = 0x7f060002; |
||||
|
} |
||||
|
public static final class dimen { |
||||
|
public static int activity_horizontal_margin = 0x7f080001; |
||||
|
public static int activity_vertical_margin = 0x7f080002; |
||||
|
} |
||||
|
public static final class drawable { |
||||
|
public static int bg_above_timepicker = 0x7f090001; |
||||
|
public static int bg_line_timepicker = 0x7f090002; |
||||
|
public static int ic_launcher = 0x7f090003; |
||||
|
public static int switch_bg_holo_light = 0x7f090004; |
||||
|
public static int wheel_timebtn = 0x7f090005; |
||||
|
public static int wheel_val = 0x7f090006; |
||||
|
} |
||||
|
public static final class id { |
||||
|
public static int action_settings = 0x7f0c0001; |
||||
|
public static int btnCancel = 0x7f0c0002; |
||||
|
public static int btnSubmit = 0x7f0c0003; |
||||
|
public static int day = 0x7f0c0004; |
||||
|
public static int hour = 0x7f0c0005; |
||||
|
public static int min = 0x7f0c0006; |
||||
|
public static int month = 0x7f0c0007; |
||||
|
public static int options1 = 0x7f0c0008; |
||||
|
public static int options2 = 0x7f0c0009; |
||||
|
public static int options3 = 0x7f0c000a; |
||||
|
public static int optionspicker = 0x7f0c000b; |
||||
|
public static int timepicker = 0x7f0c000c; |
||||
|
public static int tvEdtName = 0x7f0c000d; |
||||
|
public static int tvTime = 0x7f0c000e; |
||||
|
public static int year = 0x7f0c000f; |
||||
|
} |
||||
|
public static final class layout { |
||||
|
public static int activity_main = 0x7f0f0001; |
||||
|
public static int include_optionspicker = 0x7f0f0002; |
||||
|
public static int include_timepicker = 0x7f0f0003; |
||||
|
public static int pw_options = 0x7f0f0004; |
||||
|
public static int pw_time = 0x7f0f0005; |
||||
|
} |
||||
|
public static final class menu { |
||||
|
public static int main = 0x7f100001; |
||||
|
} |
||||
|
public static final class string { |
||||
|
public static int action_settings = 0x7f150001; |
||||
|
public static int app_name = 0x7f150002; |
||||
|
public static int hello_world = 0x7f150003; |
||||
|
public static int pickerview_cancel = 0x7f150004; |
||||
|
public static int pickerview_day = 0x7f150005; |
||||
|
public static int pickerview_hours = 0x7f150006; |
||||
|
public static int pickerview_minutes = 0x7f150007; |
||||
|
public static int pickerview_month = 0x7f150008; |
||||
|
public static int pickerview_seconds = 0x7f150009; |
||||
|
public static int pickerview_submit = 0x7f15000a; |
||||
|
public static int pickerview_year = 0x7f15000b; |
||||
|
} |
||||
|
public static final class style { |
||||
|
public static int AppBaseTheme = 0x7f160001; |
||||
|
public static int timepopwindow_anim_style = 0x7f160002; |
||||
|
} |
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
/* AUTO-GENERATED FILE. DO NOT MODIFY. |
||||
|
* |
||||
|
* This class was automatically generated by the |
||||
|
* gradle plugin from the resource data it found. It |
||||
|
* should not be modified by hand. |
||||
|
*/ |
||||
|
package com.bigkoo.pickerview; |
||||
|
|
||||
|
public final class R { |
||||
|
public static final class anim { |
||||
|
public static int timepicker_anim_enter_bottom = 0x7f010001; |
||||
|
public static int timepicker_anim_exit_bottom = 0x7f010002; |
||||
|
} |
||||
|
public static final class color { |
||||
|
public static int wheel_timebtn_nor = 0x7f060001; |
||||
|
public static int wheel_timebtn_pre = 0x7f060002; |
||||
|
} |
||||
|
public static final class dimen { |
||||
|
public static int activity_horizontal_margin = 0x7f080001; |
||||
|
public static int activity_vertical_margin = 0x7f080002; |
||||
|
} |
||||
|
public static final class drawable { |
||||
|
public static int bg_above_timepicker = 0x7f090001; |
||||
|
public static int bg_line_timepicker = 0x7f090002; |
||||
|
public static int ic_launcher = 0x7f090003; |
||||
|
public static int switch_bg_holo_light = 0x7f090004; |
||||
|
public static int wheel_timebtn = 0x7f090005; |
||||
|
public static int wheel_val = 0x7f090006; |
||||
|
} |
||||
|
public static final class id { |
||||
|
public static int action_settings = 0x7f0c0001; |
||||
|
public static int btnCancel = 0x7f0c0002; |
||||
|
public static int btnSubmit = 0x7f0c0003; |
||||
|
public static int day = 0x7f0c0004; |
||||
|
public static int hour = 0x7f0c0005; |
||||
|
public static int min = 0x7f0c0006; |
||||
|
public static int month = 0x7f0c0007; |
||||
|
public static int options1 = 0x7f0c0008; |
||||
|
public static int options2 = 0x7f0c0009; |
||||
|
public static int options3 = 0x7f0c000a; |
||||
|
public static int optionspicker = 0x7f0c000b; |
||||
|
public static int timepicker = 0x7f0c000c; |
||||
|
public static int tvEdtName = 0x7f0c000d; |
||||
|
public static int tvTime = 0x7f0c000e; |
||||
|
public static int year = 0x7f0c000f; |
||||
|
} |
||||
|
public static final class layout { |
||||
|
public static int activity_main = 0x7f0f0001; |
||||
|
public static int include_optionspicker = 0x7f0f0002; |
||||
|
public static int include_timepicker = 0x7f0f0003; |
||||
|
public static int pw_options = 0x7f0f0004; |
||||
|
public static int pw_time = 0x7f0f0005; |
||||
|
} |
||||
|
public static final class menu { |
||||
|
public static int main = 0x7f100001; |
||||
|
} |
||||
|
public static final class string { |
||||
|
public static int action_settings = 0x7f150001; |
||||
|
public static int app_name = 0x7f150002; |
||||
|
public static int hello_world = 0x7f150003; |
||||
|
public static int pickerview_cancel = 0x7f150004; |
||||
|
public static int pickerview_day = 0x7f150005; |
||||
|
public static int pickerview_hours = 0x7f150006; |
||||
|
public static int pickerview_minutes = 0x7f150007; |
||||
|
public static int pickerview_month = 0x7f150008; |
||||
|
public static int pickerview_seconds = 0x7f150009; |
||||
|
public static int pickerview_submit = 0x7f15000a; |
||||
|
public static int pickerview_year = 0x7f15000b; |
||||
|
} |
||||
|
public static final class style { |
||||
|
public static int AppBaseTheme = 0x7f160001; |
||||
|
public static int timepopwindow_anim_style = 0x7f160002; |
||||
|
} |
||||
|
} |
@ -0,0 +1,46 @@ |
|||||
|
int anim timepicker_anim_enter_bottom 0x7f010001 |
||||
|
int anim timepicker_anim_exit_bottom 0x7f010002 |
||||
|
int color wheel_timebtn_nor 0x7f060001 |
||||
|
int color wheel_timebtn_pre 0x7f060002 |
||||
|
int dimen activity_horizontal_margin 0x7f080001 |
||||
|
int dimen activity_vertical_margin 0x7f080002 |
||||
|
int drawable bg_above_timepicker 0x7f090001 |
||||
|
int drawable bg_line_timepicker 0x7f090002 |
||||
|
int drawable ic_launcher 0x7f090003 |
||||
|
int drawable switch_bg_holo_light 0x7f090004 |
||||
|
int drawable wheel_timebtn 0x7f090005 |
||||
|
int drawable wheel_val 0x7f090006 |
||||
|
int id action_settings 0x7f0c0001 |
||||
|
int id btnCancel 0x7f0c0002 |
||||
|
int id btnSubmit 0x7f0c0003 |
||||
|
int id day 0x7f0c0004 |
||||
|
int id hour 0x7f0c0005 |
||||
|
int id min 0x7f0c0006 |
||||
|
int id month 0x7f0c0007 |
||||
|
int id options1 0x7f0c0008 |
||||
|
int id options2 0x7f0c0009 |
||||
|
int id options3 0x7f0c000a |
||||
|
int id optionspicker 0x7f0c000b |
||||
|
int id timepicker 0x7f0c000c |
||||
|
int id tvEdtName 0x7f0c000d |
||||
|
int id tvTime 0x7f0c000e |
||||
|
int id year 0x7f0c000f |
||||
|
int layout activity_main 0x7f0f0001 |
||||
|
int layout include_optionspicker 0x7f0f0002 |
||||
|
int layout include_timepicker 0x7f0f0003 |
||||
|
int layout pw_options 0x7f0f0004 |
||||
|
int layout pw_time 0x7f0f0005 |
||||
|
int menu main 0x7f100001 |
||||
|
int string action_settings 0x7f150001 |
||||
|
int string app_name 0x7f150002 |
||||
|
int string hello_world 0x7f150003 |
||||
|
int string pickerview_cancel 0x7f150004 |
||||
|
int string pickerview_day 0x7f150005 |
||||
|
int string pickerview_hours 0x7f150006 |
||||
|
int string pickerview_minutes 0x7f150007 |
||||
|
int string pickerview_month 0x7f150008 |
||||
|
int string pickerview_seconds 0x7f150009 |
||||
|
int string pickerview_submit 0x7f15000a |
||||
|
int string pickerview_year 0x7f15000b |
||||
|
int style AppBaseTheme 0x7f160001 |
||||
|
int style timepopwindow_anim_style 0x7f160002 |
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<set xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<translate android:fromYDelta="100%" android:toYDelta="0" android:duration="500" /> |
||||
|
</set> |
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<set xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<translate android:fromYDelta="0" android:toYDelta="100%" android:duration="500" /> |
||||
|
</set> |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 182 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<selector |
||||
|
xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<item android:state_pressed="true" android:color="@color/wheel_timebtn_pre" /> |
||||
|
<item android:color="@color/wheel_timebtn_nor" /> |
||||
|
</selector> |
@ -0,0 +1,32 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
|
||||
|
<!-- |
||||
|
Android Wheel Control. |
||||
|
http://android-devblog.blogspot.com/2010/05/wheel-ui-contol.html |
||||
|
|
||||
|
Copyright 2010 Yuri Kanivets |
||||
|
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. |
||||
|
|
||||
|
|
||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<gradient |
||||
|
android:startColor="#70222222" |
||||
|
android:centerColor="#70222222" |
||||
|
android:endColor="#70EEEEEE" |
||||
|
android:angle="90" /> |
||||
|
|
||||
|
<stroke android:width="1dp" android:color="#70333333" /> |
||||
|
</shape>--> |
||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<item android:drawable="@drawable/bg_line_timepicker"></item> |
||||
|
</selector> |
@ -0,0 +1,16 @@ |
|||||
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
xmlns:tools="http://schemas.android.com/tools" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="match_parent" |
||||
|
android:paddingBottom="@dimen/activity_vertical_margin" |
||||
|
android:paddingLeft="@dimen/activity_horizontal_margin" |
||||
|
android:paddingRight="@dimen/activity_horizontal_margin" |
||||
|
android:paddingTop="@dimen/activity_vertical_margin" |
||||
|
tools:context="com.example.timelib.MainActivity" > |
||||
|
|
||||
|
<TextView |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:text="@string/hello_world" /> |
||||
|
|
||||
|
</RelativeLayout> |
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:background="@android:color/white" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="horizontal" > |
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/options1" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/options2" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/options3" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
<!--pickerview.com.zbar.lib.WheelView--> |
||||
|
</LinearLayout> |
@ -0,0 +1,36 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:background="@android:color/white" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="horizontal" > |
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/year" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/month" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/day" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/hour" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/min" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
</LinearLayout> |
@ -0,0 +1,67 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:background="@drawable/switch_bg_holo_light" |
||||
|
android:orientation="vertical" > |
||||
|
|
||||
|
<RelativeLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="50dp" |
||||
|
android:background="@android:color/white" |
||||
|
android:gravity="center_vertical" > |
||||
|
|
||||
|
<Button |
||||
|
android:id="@+id/btnCancel" |
||||
|
android:layout_width="60dp" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_centerVertical="true" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/pickerview_cancel" |
||||
|
android:textColor="@drawable/wheel_timebtn" /> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/tvEdtName" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_centerInParent="true" |
||||
|
android:layout_centerVertical="true" |
||||
|
android:textColor="#000000" |
||||
|
android:textSize="16sp" |
||||
|
android:gravity="center" /> |
||||
|
|
||||
|
<Button |
||||
|
android:id="@+id/btnSubmit" |
||||
|
android:layout_width="60dp" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_alignParentRight="true" |
||||
|
android:layout_centerVertical="true" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/pickerview_submit" |
||||
|
android:textColor="@drawable/wheel_timebtn" /> |
||||
|
</RelativeLayout> |
||||
|
|
||||
|
<View |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="0.5dp" |
||||
|
android:background="#D8D3D3" /> |
||||
|
|
||||
|
<RelativeLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" > |
||||
|
|
||||
|
<include |
||||
|
android:id="@+id/optionspicker" |
||||
|
layout="@layout/include_optionspicker" /> |
||||
|
|
||||
|
<View |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_alignBottom="@id/optionspicker" |
||||
|
android:layout_alignTop="@id/optionspicker" |
||||
|
android:background="@drawable/bg_above_timepicker" /> |
||||
|
</RelativeLayout> |
||||
|
|
||||
|
</LinearLayout> |
@ -0,0 +1,66 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="vertical" > |
||||
|
|
||||
|
<RelativeLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="50dp" |
||||
|
android:background="@android:color/white" |
||||
|
android:gravity="center_vertical" > |
||||
|
|
||||
|
<Button |
||||
|
android:layout_centerVertical="true" |
||||
|
android:id="@+id/btnCancel" |
||||
|
android:layout_width="60dp" |
||||
|
android:layout_height="34dp" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/pickerview_cancel" |
||||
|
android:textColor="@drawable/wheel_timebtn" /> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/tvTime" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_centerInParent="true" |
||||
|
android:layout_centerVertical="true" |
||||
|
android:textColor="#000000" |
||||
|
android:textSize="16sp" |
||||
|
android:gravity="center" /> |
||||
|
|
||||
|
<Button |
||||
|
android:layout_centerVertical="true" |
||||
|
android:id="@+id/btnSubmit" |
||||
|
android:layout_width="60dp" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_alignParentRight="true" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/pickerview_submit" |
||||
|
android:textColor="@drawable/wheel_timebtn" /> |
||||
|
</RelativeLayout> |
||||
|
|
||||
|
<View |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="0.5dp" |
||||
|
android:background="#D8D3D3" /> |
||||
|
|
||||
|
<RelativeLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" > |
||||
|
|
||||
|
<include |
||||
|
android:id="@+id/timepicker" |
||||
|
layout="@layout/include_timepicker" /> |
||||
|
|
||||
|
<View |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_alignBottom="@id/timepicker" |
||||
|
android:layout_alignTop="@id/timepicker" |
||||
|
android:background="@drawable/bg_above_timepicker" /> |
||||
|
</RelativeLayout> |
||||
|
|
||||
|
</LinearLayout> |
@ -0,0 +1,11 @@ |
|||||
|
<menu xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
xmlns:tools="http://schemas.android.com/tools" |
||||
|
tools:context="com.example.timelib.MainActivity" > |
||||
|
|
||||
|
<item |
||||
|
android:id="@+id/action_settings" |
||||
|
android:orderInCategory="100" |
||||
|
android:showAsAction="never" |
||||
|
android:title="@string/action_settings"/> |
||||
|
|
||||
|
</menu> |
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<style name="AppBaseTheme" parent="android:Theme.Holo.Light"> |
||||
|
<!-- API 11 theme customizations can go here. --> |
||||
|
</style> |
||||
|
</resources> |
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"> |
||||
|
<!-- API 14 theme customizations can go here. --> |
||||
|
</style> |
||||
|
</resources> |
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<dimen name="activity_horizontal_margin">64dp</dimen> |
||||
|
</resources> |
@ -0,0 +1,22 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<color name="wheel_timebtn_nor">#54a3fa</color> |
||||
|
<color name="wheel_timebtn_pre">#CCCCCC</color> |
||||
|
<dimen name="activity_horizontal_margin">16dp</dimen> |
||||
|
<dimen name="activity_vertical_margin">16dp</dimen> |
||||
|
<string name="action_settings">Settings</string> |
||||
|
<string name="app_name">DemoTimeAndCity</string> |
||||
|
<string name="hello_world">Hello world!</string> |
||||
|
<string name="pickerview_cancel">取消</string> |
||||
|
<string name="pickerview_day">日</string> |
||||
|
<string name="pickerview_hours">时</string> |
||||
|
<string name="pickerview_minutes">分</string> |
||||
|
<string name="pickerview_month">月</string> |
||||
|
<string name="pickerview_seconds">秒</string> |
||||
|
<string name="pickerview_submit">确定</string> |
||||
|
<string name="pickerview_year">年</string> |
||||
|
<style name="timepopwindow_anim_style"> |
||||
|
<item name="android:windowEnterAnimation">@anim/timepicker_anim_enter_bottom</item> <!-- 指定显示的动画xml --> |
||||
|
<item name="android:windowExitAnimation">@anim/timepicker_anim_exit_bottom</item> <!-- 指定消失的动画xml --> |
||||
|
</style> |
||||
|
</resources> |
@ -0,0 +1,46 @@ |
|||||
|
int anim timepicker_anim_enter_bottom 0x7f010001 |
||||
|
int anim timepicker_anim_exit_bottom 0x7f010002 |
||||
|
int color wheel_timebtn_nor 0x7f060001 |
||||
|
int color wheel_timebtn_pre 0x7f060002 |
||||
|
int dimen activity_horizontal_margin 0x7f080001 |
||||
|
int dimen activity_vertical_margin 0x7f080002 |
||||
|
int drawable bg_above_timepicker 0x7f090001 |
||||
|
int drawable bg_line_timepicker 0x7f090002 |
||||
|
int drawable ic_launcher 0x7f090003 |
||||
|
int drawable switch_bg_holo_light 0x7f090004 |
||||
|
int drawable wheel_timebtn 0x7f090005 |
||||
|
int drawable wheel_val 0x7f090006 |
||||
|
int id action_settings 0x7f0c0001 |
||||
|
int id btnCancel 0x7f0c0002 |
||||
|
int id btnSubmit 0x7f0c0003 |
||||
|
int id day 0x7f0c0004 |
||||
|
int id hour 0x7f0c0005 |
||||
|
int id min 0x7f0c0006 |
||||
|
int id month 0x7f0c0007 |
||||
|
int id options1 0x7f0c0008 |
||||
|
int id options2 0x7f0c0009 |
||||
|
int id options3 0x7f0c000a |
||||
|
int id optionspicker 0x7f0c000b |
||||
|
int id timepicker 0x7f0c000c |
||||
|
int id tvEdtName 0x7f0c000d |
||||
|
int id tvTime 0x7f0c000e |
||||
|
int id year 0x7f0c000f |
||||
|
int layout activity_main 0x7f0f0001 |
||||
|
int layout include_optionspicker 0x7f0f0002 |
||||
|
int layout include_timepicker 0x7f0f0003 |
||||
|
int layout pw_options 0x7f0f0004 |
||||
|
int layout pw_time 0x7f0f0005 |
||||
|
int menu main 0x7f100001 |
||||
|
int string action_settings 0x7f150001 |
||||
|
int string app_name 0x7f150002 |
||||
|
int string hello_world 0x7f150003 |
||||
|
int string pickerview_cancel 0x7f150004 |
||||
|
int string pickerview_day 0x7f150005 |
||||
|
int string pickerview_hours 0x7f150006 |
||||
|
int string pickerview_minutes 0x7f150007 |
||||
|
int string pickerview_month 0x7f150008 |
||||
|
int string pickerview_seconds 0x7f150009 |
||||
|
int string pickerview_submit 0x7f15000a |
||||
|
int string pickerview_year 0x7f15000b |
||||
|
int style AppBaseTheme 0x7f160001 |
||||
|
int style timepopwindow_anim_style 0x7f160002 |
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<set xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<translate android:fromYDelta="100%" android:toYDelta="0" android:duration="500" /> |
||||
|
</set> |
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<set xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<translate android:fromYDelta="0" android:toYDelta="100%" android:duration="500" /> |
||||
|
</set> |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 182 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<selector |
||||
|
xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<item android:state_pressed="true" android:color="@color/wheel_timebtn_pre" /> |
||||
|
<item android:color="@color/wheel_timebtn_nor" /> |
||||
|
</selector> |
@ -0,0 +1,32 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
|
||||
|
<!-- |
||||
|
Android Wheel Control. |
||||
|
http://android-devblog.blogspot.com/2010/05/wheel-ui-contol.html |
||||
|
|
||||
|
Copyright 2010 Yuri Kanivets |
||||
|
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. |
||||
|
|
||||
|
|
||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<gradient |
||||
|
android:startColor="#70222222" |
||||
|
android:centerColor="#70222222" |
||||
|
android:endColor="#70EEEEEE" |
||||
|
android:angle="90" /> |
||||
|
|
||||
|
<stroke android:width="1dp" android:color="#70333333" /> |
||||
|
</shape>--> |
||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
<item android:drawable="@drawable/bg_line_timepicker"></item> |
||||
|
</selector> |
@ -0,0 +1,16 @@ |
|||||
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
xmlns:tools="http://schemas.android.com/tools" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="match_parent" |
||||
|
android:paddingBottom="@dimen/activity_vertical_margin" |
||||
|
android:paddingLeft="@dimen/activity_horizontal_margin" |
||||
|
android:paddingRight="@dimen/activity_horizontal_margin" |
||||
|
android:paddingTop="@dimen/activity_vertical_margin" |
||||
|
tools:context="com.example.timelib.MainActivity" > |
||||
|
|
||||
|
<TextView |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:text="@string/hello_world" /> |
||||
|
|
||||
|
</RelativeLayout> |
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:background="@android:color/white" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="horizontal" > |
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/options1" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/options2" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/options3" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
<!--pickerview.com.zbar.lib.WheelView--> |
||||
|
</LinearLayout> |
@ -0,0 +1,36 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:layout_width="fill_parent" |
||||
|
android:background="@android:color/white" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="horizontal" > |
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/year" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/month" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/day" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/hour" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
|
||||
|
<pickerview.lib.WheelView |
||||
|
android:id="@+id/min" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_weight="1" |
||||
|
android:layout_height="wrap_content" /> |
||||
|
</LinearLayout> |
@ -0,0 +1,67 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:background="@drawable/switch_bg_holo_light" |
||||
|
android:orientation="vertical" > |
||||
|
|
||||
|
<RelativeLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="50dp" |
||||
|
android:background="@android:color/white" |
||||
|
android:gravity="center_vertical" > |
||||
|
|
||||
|
<Button |
||||
|
android:id="@+id/btnCancel" |
||||
|
android:layout_width="60dp" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_centerVertical="true" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/pickerview_cancel" |
||||
|
android:textColor="@drawable/wheel_timebtn" /> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/tvEdtName" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_centerInParent="true" |
||||
|
android:layout_centerVertical="true" |
||||
|
android:textColor="#000000" |
||||
|
android:textSize="16sp" |
||||
|
android:gravity="center" /> |
||||
|
|
||||
|
<Button |
||||
|
android:id="@+id/btnSubmit" |
||||
|
android:layout_width="60dp" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_alignParentRight="true" |
||||
|
android:layout_centerVertical="true" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/pickerview_submit" |
||||
|
android:textColor="@drawable/wheel_timebtn" /> |
||||
|
</RelativeLayout> |
||||
|
|
||||
|
<View |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="0.5dp" |
||||
|
android:background="#D8D3D3" /> |
||||
|
|
||||
|
<RelativeLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" > |
||||
|
|
||||
|
<include |
||||
|
android:id="@+id/optionspicker" |
||||
|
layout="@layout/include_optionspicker" /> |
||||
|
|
||||
|
<View |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_alignBottom="@id/optionspicker" |
||||
|
android:layout_alignTop="@id/optionspicker" |
||||
|
android:background="@drawable/bg_above_timepicker" /> |
||||
|
</RelativeLayout> |
||||
|
|
||||
|
</LinearLayout> |
@ -0,0 +1,66 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:orientation="vertical" > |
||||
|
|
||||
|
<RelativeLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="50dp" |
||||
|
android:background="@android:color/white" |
||||
|
android:gravity="center_vertical" > |
||||
|
|
||||
|
<Button |
||||
|
android:layout_centerVertical="true" |
||||
|
android:id="@+id/btnCancel" |
||||
|
android:layout_width="60dp" |
||||
|
android:layout_height="34dp" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/pickerview_cancel" |
||||
|
android:textColor="@drawable/wheel_timebtn" /> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/tvTime" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_centerInParent="true" |
||||
|
android:layout_centerVertical="true" |
||||
|
android:textColor="#000000" |
||||
|
android:textSize="16sp" |
||||
|
android:gravity="center" /> |
||||
|
|
||||
|
<Button |
||||
|
android:layout_centerVertical="true" |
||||
|
android:id="@+id/btnSubmit" |
||||
|
android:layout_width="60dp" |
||||
|
android:layout_height="34dp" |
||||
|
android:layout_alignParentRight="true" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/pickerview_submit" |
||||
|
android:textColor="@drawable/wheel_timebtn" /> |
||||
|
</RelativeLayout> |
||||
|
|
||||
|
<View |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="0.5dp" |
||||
|
android:background="#D8D3D3" /> |
||||
|
|
||||
|
<RelativeLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" > |
||||
|
|
||||
|
<include |
||||
|
android:id="@+id/timepicker" |
||||
|
layout="@layout/include_timepicker" /> |
||||
|
|
||||
|
<View |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_alignBottom="@id/timepicker" |
||||
|
android:layout_alignTop="@id/timepicker" |
||||
|
android:background="@drawable/bg_above_timepicker" /> |
||||
|
</RelativeLayout> |
||||
|
|
||||
|
</LinearLayout> |
@ -0,0 +1,11 @@ |
|||||
|
<menu xmlns:android="http://schemas.android.com/apk/res/android" |
||||
|
xmlns:tools="http://schemas.android.com/tools" |
||||
|
tools:context="com.example.timelib.MainActivity" > |
||||
|
|
||||
|
<item |
||||
|
android:id="@+id/action_settings" |
||||
|
android:orderInCategory="100" |
||||
|
android:showAsAction="never" |
||||
|
android:title="@string/action_settings"/> |
||||
|
|
||||
|
</menu> |
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<style name="AppBaseTheme" parent="android:Theme.Holo.Light"> |
||||
|
<!-- API 11 theme customizations can go here. --> |
||||
|
</style> |
||||
|
</resources> |
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"> |
||||
|
<!-- API 14 theme customizations can go here. --> |
||||
|
</style> |
||||
|
</resources> |
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<dimen name="activity_horizontal_margin">64dp</dimen> |
||||
|
</resources> |
@ -0,0 +1,22 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<resources> |
||||
|
<color name="wheel_timebtn_nor">#54a3fa</color> |
||||
|
<color name="wheel_timebtn_pre">#CCCCCC</color> |
||||
|
<dimen name="activity_horizontal_margin">16dp</dimen> |
||||
|
<dimen name="activity_vertical_margin">16dp</dimen> |
||||
|
<string name="action_settings">Settings</string> |
||||
|
<string name="app_name">DemoTimeAndCity</string> |
||||
|
<string name="hello_world">Hello world!</string> |
||||
|
<string name="pickerview_cancel">取消</string> |
||||
|
<string name="pickerview_day">日</string> |
||||
|
<string name="pickerview_hours">时</string> |
||||
|
<string name="pickerview_minutes">分</string> |
||||
|
<string name="pickerview_month">月</string> |
||||
|
<string name="pickerview_seconds">秒</string> |
||||
|
<string name="pickerview_submit">确定</string> |
||||
|
<string name="pickerview_year">年</string> |
||||
|
<style name="timepopwindow_anim_style"> |
||||
|
<item name="android:windowEnterAnimation">@anim/timepicker_anim_enter_bottom</item> <!-- 指定显示的动画xml --> |
||||
|
<item name="android:windowExitAnimation">@anim/timepicker_anim_exit_bottom</item> <!-- 指定消失的动画xml --> |
||||
|
</style> |
||||
|
</resources> |