├── .gitignore ├── Android.mk ├── CHANGELOG.md ├── LICENSE.txt ├── README.md ├── README.zh.md ├── RELEASING.md ├── art ├── delay-confirm-dialog.png └── settings.png ├── build.gradle ├── demo ├── .gitignore ├── build.gradle ├── proguard-rules.pro ├── publish │ └── publish.keystore └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── mobvoi │ │ └── design │ │ └── demo │ │ ├── BaseActivity.java │ │ ├── ContentActivity.java │ │ ├── DetailsActivity.java │ │ ├── FragmentActivity.java │ │ ├── MainActivity.java │ │ ├── SettingsActivity.java │ │ ├── SupportFragmentActivity.java │ │ ├── SupportSettingsActivity.java │ │ ├── data │ │ └── Cheeses.java │ │ └── fragments │ │ ├── CoordinatorFragment.java │ │ ├── DialogsFragment.java │ │ ├── DynamicSettingsFragment.java │ │ ├── ListFragment.java │ │ ├── MainFragment.java │ │ ├── MenuFragment.java │ │ ├── SettingsFragment.java │ │ ├── SpecFragment.java │ │ ├── SupportSettingsFragment.java │ │ ├── TransitionsFragment.java │ │ └── WidgetsFragment.java │ └── res │ ├── color │ ├── swipe_todo_confirm.xml │ └── volumebar_colorstatelist.xml │ ├── drawable-280dpi │ ├── ic_3g.png │ ├── ic_about.png │ ├── ic_alarm_notify.png │ ├── ic_awake.png │ ├── ic_batterysave.png │ ├── ic_developer.png │ ├── ic_gps.png │ ├── ic_plane.png │ ├── ic_preference.png │ ├── ic_reset.png │ ├── ic_snooze.png │ ├── ic_update.png │ ├── ic_watchface.png │ ├── ic_wifi.png │ └── ic_wrist.png │ ├── drawable-tvdpi │ ├── avatar_1.png │ ├── avatar_10.png │ ├── avatar_2.png │ ├── avatar_3.png │ ├── avatar_4.png │ ├── avatar_5.png │ ├── avatar_6.png │ ├── avatar_7.png │ ├── avatar_8.png │ └── avatar_9.png │ ├── layout │ ├── activity_content.xml │ ├── coordinator_page_scroll.xml │ ├── dialog_simple_scroll_view.xml │ ├── dialog_spec_color.xml │ ├── dialog_spec_color_group.xml │ ├── dialog_spec_text.xml │ ├── dialog_spec_text_base_size.xml │ ├── dialog_spec_text_material_size.xml │ ├── fragment_coordinator.xml │ ├── fragment_main_list.xml │ ├── fragment_simple_list.xml │ ├── list_item_simple_text1.xml │ ├── list_item_simple_text2.xml │ ├── list_item_with_icon.xml │ ├── widgets_btn_list.xml │ ├── widgets_clock_loading.xml │ ├── widgets_fab_scroll.xml │ ├── widgets_swipe_todo.xml │ └── widgets_volume_bar.xml │ ├── menu │ └── default_hint.xml │ ├── mipmap-hdpi │ └── ic_launcher.png │ ├── mipmap-mdpi │ └── ic_launcher.png │ ├── mipmap-xhdpi │ └── ic_launcher.png │ ├── mipmap-xxhdpi │ └── ic_launcher.png │ ├── transition │ ├── explode.xml │ ├── explode_bounce.xml │ ├── fade_fast.xml │ ├── fade_slow.xml │ ├── shared_explode.xml │ ├── shared_explode_two.xml │ ├── slide_bottom.xml │ ├── slide_explode.xml │ └── slide_right.xml │ ├── values-w820dp │ └── dimens.xml │ ├── values-zh │ ├── strings.xml │ └── strings_preference.xml │ ├── values │ ├── dimens.xml │ ├── donottranslate.xml │ ├── strings.xml │ ├── strings_preference.xml │ ├── styles.xml │ └── themes.xml │ └── xml │ ├── preference_headers.xml │ ├── preferences_about.xml │ ├── preferences_dynamic.xml │ └── preferences_widget.xml ├── gradle.properties ├── gradle ├── bintray-push.gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── releasing-push.sh ├── releasing-upload.sh ├── settings.gradle └── ticDesign ├── .gitignore ├── Android.mk ├── build.gradle ├── gradle.properties ├── proguard-rules.pro └── src └── main ├── AndroidManifest.xml ├── java ├── com │ └── mobvoi │ │ └── ticwear │ │ └── view │ │ ├── SidePanelEventDispatcher.java │ │ ├── SidePanelEventTarget.java │ │ └── SidePanelGestureTarget.java └── ticwear │ └── design │ ├── DesignConfig.java │ ├── app │ ├── AlertDialog.java │ ├── ConfirmDialog.java │ ├── DatePickerViewHolder.java │ ├── DatetimePickerDialog.java │ ├── NumberPickerDialog.java │ ├── RecyclerActivity.java │ ├── RingtonePickerActivity.java │ ├── TicwearDialogs.java │ └── TimePickerViewHolder.java │ ├── drawable │ ├── ArcDrawable.java │ ├── CircleDrawable.java │ ├── CircularProgressContainerDrawable.java │ ├── CircularProgressDrawable.java │ ├── ClipPathDrawable.java │ └── DrawableCompatJellybeanMr1.java │ ├── internal │ ├── CharSequences.java │ ├── FastXmlSerializer.java │ ├── XmlUtils.java │ ├── app │ │ ├── AlertActivity.java │ │ └── AlertController.java │ └── view │ │ └── menu │ │ ├── ContextMenuBuilder.java │ │ ├── MenuBuilder.java │ │ ├── MenuFloatingLayout.java │ │ ├── MenuItemImpl.java │ │ └── MenuItemView.java │ ├── preference │ ├── CheckBoxPreference.java │ ├── DialogPreference.java │ ├── GenericInflater.java │ ├── ListPreference.java │ ├── MultiSelectListPreference.java │ ├── Preference.java │ ├── PreferenceActivity.java │ ├── PreferenceCategory.java │ ├── PreferenceFragment.java │ ├── PreferenceFragmentCompat.java │ ├── PreferenceFrameLayout.java │ ├── PreferenceGroup.java │ ├── PreferenceGroupAdapter.java │ ├── PreferenceInflater.java │ ├── PreferenceManager.java │ ├── PreferenceScreen.java │ ├── PreferenceViewHolder.java │ ├── RingtonePreference.java │ ├── SwitchConfirmPreference.java │ ├── SwitchPreference.java │ ├── TwoStatePreference.java │ └── VolumePreference.java │ ├── utils │ ├── ColorPalette.java │ ├── ColorUtils.java │ ├── MetricsUtils.java │ ├── ThemeUtils.java │ ├── WindowUtils.java │ └── blur │ │ ├── BlurBehind.java │ │ ├── BlurFactor.java │ │ └── FastBlur.java │ └── widget │ ├── AnimationUtils.java │ ├── AppBarLayout.java │ ├── AppBarScrollController.java │ ├── CheckedTextView.java │ ├── CirclePageIndicator.java │ ├── ClassicEdgeEffect.java │ ├── ClockLoadingView.java │ ├── CollapsingTextHelper.java │ ├── CollapsingToolbarLayout.java │ ├── CoordinatorLayout.java │ ├── CrescentEdgeEffect.java │ ├── CursorRecyclerViewAdapter.java │ ├── DatePicker.java │ ├── DrawableWrapper.java │ ├── EdgeEffect.java │ ├── FloatingActionButton.java │ ├── FloatingActionButtonAnimator.java │ ├── FloatingContextMenu.java │ ├── FocusLayoutHelper.java │ ├── FocusableLinearLayoutManager.java │ ├── HeaderBehavior.java │ ├── HeaderScrollingViewBehavior.java │ ├── MathUtils.java │ ├── MultiPickerContainer.java │ ├── NumberPicker.java │ ├── PageIndicator.java │ ├── PrimaryButton.java │ ├── ProgressBarButton.java │ ├── ScalableTextView.java │ ├── ScrollBarHelper.java │ ├── ScrollViewFlingChecker.java │ ├── SelectableAdapter.java │ ├── SimpleRecyclerAdapter.java │ ├── SimpleSwitch.java │ ├── StretchingLayout.java │ ├── SubscribedScrollView.java │ ├── SwipeTodoView.java │ ├── TicklableFrameLayout.java │ ├── TicklableLayoutManager.java │ ├── TicklableRecyclerView.java │ ├── TicklableRecyclerViewBehavior.java │ ├── TicklableScrollView.java │ ├── TimePicker.java │ ├── TimePickerSpinnerDelegate.java │ ├── TrackSelectionAdapterWrapper.java │ ├── VerticalViewPager.java │ ├── ViewGroupUtils.java │ ├── ViewGroupUtilsHoneycomb.java │ ├── ViewOffsetBehavior.java │ ├── ViewOffsetHelper.java │ ├── ViewPropertiesHelper.java │ ├── ViewScrollingStatusAccessor.java │ ├── VisibilityAwareImageButton.java │ └── VolumeBar.java ├── res-public └── values │ ├── public_attrs.xml │ ├── public_colors.xml │ ├── public_dimens.xml │ ├── public_drawables.xml │ ├── public_strings.xml │ └── public_styles.xml └── res ├── anim ├── front_scale_in_ticwear.xml ├── front_scale_out_ticwear.xml ├── scale_in_ticwear.xml ├── scale_out_ticwear.xml ├── slide_in_ticwear.xml └── slide_out_ticwear.xml ├── animator ├── widget_check_appear.xml ├── widget_check_disappear.xml ├── widget_two_state_color_to_off.xml ├── widget_two_state_color_to_on.xml ├── widget_two_state_scale_large.xml ├── widget_two_state_scale_press.xml ├── widget_two_state_scale_small.xml ├── widget_two_state_scale_vertical_large.xml └── widget_two_state_scale_vertical_small.xml ├── color ├── primary_text_ticwear_dark.xml └── secondary_text_ticwear_dark.xml ├── drawable ├── number_picker_divider_ticwear.xml ├── tic_ic_btn_cancel.xml ├── tic_ic_btn_next.xml ├── tic_ic_btn_ok.xml ├── tic_ic_check.xml ├── tic_ic_check_anim_to_off.xml ├── tic_ic_check_anim_to_on.xml ├── tic_ic_check_full.xml ├── tic_ic_check_off.xml ├── tic_ic_check_off_disabled.xml ├── tic_ic_check_on.xml ├── tic_ic_check_on_disabled.xml ├── tic_ic_check_small.xml ├── tic_ic_check_small_anim_to_off.xml ├── tic_ic_check_small_anim_to_on.xml ├── tic_ic_check_small_full.xml ├── tic_ic_check_small_off.xml ├── tic_ic_check_small_off_disabled.xml ├── tic_ic_check_small_on.xml ├── tic_ic_check_small_on_disabled.xml ├── tic_ic_enter.xml ├── tic_ic_enter_disabled.xml ├── tic_ic_enter_normal.xml ├── tic_ic_minus_32px.xml ├── tic_ic_plus_32px.xml ├── tic_ic_radio.xml ├── tic_ic_radio_anim_to_off.xml ├── tic_ic_radio_anim_to_on.xml ├── tic_ic_radio_full.xml ├── tic_ic_radio_off.xml ├── tic_ic_radio_off_disabled.xml ├── tic_ic_radio_on.xml ├── tic_ic_radio_on_disabled.xml ├── tic_ic_radio_small.xml ├── tic_ic_radio_small_anim_to_off.xml ├── tic_ic_radio_small_anim_to_on.xml ├── tic_ic_radio_small_full.xml ├── tic_ic_radio_small_off.xml ├── tic_ic_radio_small_off_disabled.xml ├── tic_ic_radio_small_on.xml ├── tic_ic_radio_small_on_disabled.xml ├── tic_ic_switch.xml ├── tic_ic_switch_anim_to_off.xml ├── tic_ic_switch_anim_to_on.xml ├── tic_ic_switch_full.xml ├── tic_ic_switch_off.xml ├── tic_ic_switch_off_disabled.xml ├── tic_ic_switch_on.xml ├── tic_ic_switch_on_disabled.xml ├── tic_ic_volumenone_32px.xml ├── tic_ic_volumeup_32px.xml ├── tic_round_accent.xml ├── tic_round_item_icon_background.xml ├── tic_selectable_round_item_background.xml ├── tic_separator_horizontal.xml └── time_picker_header_ticwear.xml ├── layout ├── alert_dialog_ticwear.xml ├── confirm_dialog_ticwear.xml ├── date_picker_ticwear.xml ├── dialog_date_picker.xml ├── dialog_datetime_picker.xml ├── dialog_number_picker.xml ├── dialog_time_picker.xml ├── list_content_ticklable.xml ├── menu_floating_layout_ticwear.xml ├── menu_item_view_ticwear.xml ├── menu_list_item_close_ticwear.xml ├── menu_list_item_view_ticwear.xml ├── number_picker_ticwear.xml ├── number_picker_with_selector_wheel_ticwear.xml ├── preference_activity_list_layout.xml ├── preference_centered_ticwear.xml ├── preference_fragment_list_layout.xml ├── preference_information_ticwear.xml ├── preference_list_content.xml ├── preference_list_content_single.xml ├── preference_list_fragment.xml ├── preference_ticwear.xml ├── preference_volume.xml ├── preference_widget_checkbox.xml ├── preference_widget_enter.xml ├── preference_widget_switch.xml ├── select_dialog_item_ticwear.xml ├── select_dialog_multichoice_ticwear.xml ├── select_dialog_singlechoice_ticwear.xml ├── select_dialog_ticwear.xml ├── swipe_todo_view_ticwear.xml ├── time_picker_ticwear.xml └── volume_bar_ticwear.xml ├── values-de ├── preference_strings.xml └── widget_strings.xml ├── values-es ├── preference_strings.xml └── widget_strings.xml ├── values-fr ├── preference_strings.xml └── widget_strings.xml ├── values-ja ├── preference_strings.xml └── widget_strings.xml ├── values-v23 └── styles_text.xml ├── values-v24 └── themes_ticwear.xml ├── values-w228dp ├── dimens_ticwear.xml └── dimens_widget.xml ├── values-w240dp ├── dimens_ticwear.xml └── dimens_widget.xml ├── values-zh-rCN ├── preference_strings.xml └── widget_strings.xml ├── values-zh-rTW ├── preference_strings.xml └── widget_strings.xml └── values ├── attrs_design.xml ├── attrs_preference.xml ├── attrs_ticwear.xml ├── attrs_widget.xml ├── booleans_preference.xml ├── colors_basic.xml ├── colors_text.xml ├── colors_theme.xml ├── colors_widget.xml ├── dimens.xml ├── dimens_preference.xml ├── dimens_text.xml ├── dimens_ticwear.xml ├── dimens_widget.xml ├── donottranslate_strings.xml ├── donottranslate_ticwear_strings.xml ├── ids.xml ├── notrans_svg.xml ├── preference_strings.xml ├── styles_design.xml ├── styles_preference.xml ├── styles_text.xml ├── styles_ticwear.xml ├── styles_widget.xml ├── themes_ticwear.xml ├── values_ui.xml └── widget_strings.xml /.gitignore: -------------------------------------------------------------------------------- 1 | # Mac files 2 | .DS_Store 3 | 4 | # Java files 5 | bin 6 | gen 7 | 8 | # NDK files 9 | libs/*/ 10 | obj 11 | 12 | # eclipse project files 13 | .project 14 | .cproject 15 | .settings/ 16 | 17 | # Annotaion Process 18 | .apt_generated/ 19 | 20 | # ProGuard 21 | proguard 22 | 23 | # Android Tools file 24 | build.xml 25 | local.properties 26 | 27 | # VIM temp file 28 | *.swp 29 | 30 | # built application files 31 | *.apk 32 | *.ap_ 33 | 34 | # files for the dex VM 35 | *.dex 36 | 37 | # Java class files 38 | *.class 39 | 40 | # Local configuration file (sdk path, etc) 41 | local.properties 42 | 43 | # Android Studio 44 | *.iml 45 | .idea 46 | #.idea/workspace.xml - remove # and delete .idea if it better suit your needs. 47 | .gradle 48 | build/ 49 | # Profiler 50 | captures/ 51 | # Release 52 | release/ 53 | 54 | -------------------------------------------------------------------------------- /Android.mk: -------------------------------------------------------------------------------- 1 | 2 | LOCAL_PATH := $(call my-dir) 3 | include $(call all-subdir-makefiles) 4 | 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## Version 1.1.0 (2018-03-23) 4 | 5 | - Upgrade build system to gradle 3.0 6 | - Add multi-language support for jp, de, es, fr, etc. 7 | - Add new widgets or components. 8 | - Fix bounch of bugs. 9 | 10 | ## Version 1.0.0 (2016-06-02) 11 | 12 | Initial release. 13 | 14 | 15 | -------------------------------------------------------------------------------- /RELEASING.md: -------------------------------------------------------------------------------- 1 | # Releasing 2 | 3 | 1. Change the version in `gradle.properties`. 4 | 2. Update the `CHANGELOG.md` for the impending release. 5 | 3. Update the `README.md` with the new version. 6 | 4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version) 7 | 5. `./gradlew clean build install bintrayUpload`. 8 | 6. `git tag -a X.Y.X -m "Version X.Y.Z"` (where X.Y.Z is the new version) 9 | 7. `git push && git push --tags` 10 | 11 | If step 5 fails, drop the Bintray repo, fix the problem, commit, and start again at step 5. 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /art/delay-confirm-dialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/art/delay-confirm-dialog.png -------------------------------------------------------------------------------- /art/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/art/settings.png -------------------------------------------------------------------------------- /demo/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /demo/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/tankery/lib/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # ButterKnife 20 | -keep class butterknife.** { *; } 21 | -dontwarn butterknife.internal.** 22 | -keep class **$$ViewBinder { *; } 23 | 24 | -keepclasseswithmembernames class * { 25 | @butterknife.* ; 26 | } 27 | 28 | -keepclasseswithmembernames class * { 29 | @butterknife.* ; 30 | } -------------------------------------------------------------------------------- /demo/publish/publish.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/publish/publish.keystore -------------------------------------------------------------------------------- /demo/src/main/java/com/mobvoi/design/demo/BaseActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.mobvoi.design.demo; 18 | 19 | import android.app.Activity; 20 | import android.os.Bundle; 21 | 22 | import ticwear.design.utils.WindowUtils; 23 | 24 | /** 25 | * Base Activity to clip window to round. 26 | * 27 | * Created by tankery on 6/14/16. 28 | */ 29 | public class BaseActivity extends Activity { 30 | 31 | @Override 32 | protected void onCreate(Bundle savedInstanceState) { 33 | super.onCreate(savedInstanceState); 34 | WindowUtils.clipToScreenShape(getWindow()); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /demo/src/main/java/com/mobvoi/design/demo/FragmentActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.mobvoi.design.demo; 18 | 19 | import android.app.Fragment; 20 | import android.os.Bundle; 21 | 22 | /** 23 | * An Activity contains 24 | * 25 | * Created by tankery on 6/14/16. 26 | */ 27 | public abstract class FragmentActivity extends BaseActivity { 28 | 29 | @Override 30 | protected void onCreate(Bundle savedInstanceState) { 31 | super.onCreate(savedInstanceState); 32 | 33 | if (savedInstanceState == null) { 34 | Fragment fragment = onCreateFragment(); 35 | if (fragment == null) { 36 | finish(); 37 | return; 38 | } 39 | getFragmentManager().beginTransaction() 40 | .add(android.R.id.content, fragment) 41 | .commitAllowingStateLoss(); 42 | } 43 | } 44 | 45 | protected abstract Fragment onCreateFragment(); 46 | 47 | } 48 | -------------------------------------------------------------------------------- /demo/src/main/java/com/mobvoi/design/demo/MainActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.mobvoi.design.demo; 18 | 19 | import android.app.Fragment; 20 | 21 | import com.mobvoi.design.demo.fragments.MainFragment; 22 | 23 | public class MainActivity extends FragmentActivity { 24 | 25 | @Override 26 | protected Fragment onCreateFragment() { 27 | return new MainFragment(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /demo/src/main/java/com/mobvoi/design/demo/SettingsActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.mobvoi.design.demo; 18 | 19 | import com.mobvoi.design.demo.fragments.DynamicSettingsFragment; 20 | import com.mobvoi.design.demo.fragments.SettingsFragment; 21 | import com.ticwear.design.demo.R; 22 | 23 | import java.util.List; 24 | 25 | import ticwear.design.preference.PreferenceActivity; 26 | 27 | /** 28 | * Created by tankery on 3/1/16. 29 | * 30 | * Settings activity to show headers with sub fragments. 31 | */ 32 | public class SettingsActivity extends PreferenceActivity { 33 | 34 | @Override 35 | public void onBuildHeaders(List
target) { 36 | loadHeadersFromResource(R.xml.preference_headers, target); 37 | } 38 | 39 | @Override 40 | protected boolean isValidFragment(String fragmentName) { 41 | return SettingsFragment.class.getName().equals(fragmentName) || 42 | DynamicSettingsFragment.class.getName().equals(fragmentName); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /demo/src/main/java/com/mobvoi/design/demo/SupportFragmentActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.mobvoi.design.demo; 18 | 19 | import android.os.Bundle; 20 | import android.support.v4.app.Fragment; 21 | 22 | import com.ticwear.design.demo.R; 23 | 24 | /** 25 | * Activity contains support fragment. 26 | * Created by tankery on 20/04/2017. 27 | */ 28 | 29 | public abstract class SupportFragmentActivity extends android.support.v4.app.FragmentActivity { 30 | 31 | @Override 32 | protected void onCreate(Bundle savedInstanceState) { 33 | super.onCreate(savedInstanceState); 34 | 35 | if (savedInstanceState == null) { 36 | Fragment fragment = onCreateFragment(); 37 | if (fragment == null) { 38 | finish(); 39 | return; 40 | } 41 | getSupportFragmentManager().beginTransaction() 42 | .add(android.R.id.content, fragment) 43 | .commitAllowingStateLoss(); 44 | } 45 | } 46 | 47 | protected abstract Fragment onCreateFragment(); 48 | 49 | } 50 | -------------------------------------------------------------------------------- /demo/src/main/java/com/mobvoi/design/demo/SupportSettingsActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.mobvoi.design.demo; 18 | 19 | import android.support.v4.app.Fragment; 20 | 21 | import com.mobvoi.design.demo.fragments.SupportSettingsFragment; 22 | 23 | /** 24 | * Settings loading into support fragment. 25 | * Created by tankery on 20/04/2017. 26 | */ 27 | 28 | public class SupportSettingsActivity extends SupportFragmentActivity { 29 | @Override 30 | protected Fragment onCreateFragment() { 31 | return new SupportSettingsFragment(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /demo/src/main/java/com/mobvoi/design/demo/fragments/SettingsFragment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.mobvoi.design.demo.fragments; 18 | 19 | import android.os.Bundle; 20 | import android.widget.Toast; 21 | 22 | import com.ticwear.design.demo.R; 23 | 24 | import ticwear.design.preference.PreferenceFragment; 25 | 26 | /** 27 | * Created by tankery on 2/25/16. 28 | * 29 | */ 30 | public class SettingsFragment extends PreferenceFragment { 31 | 32 | @Override 33 | public void onCreate(Bundle savedInstanceState) { 34 | super.onCreate(savedInstanceState); 35 | String settings = getArguments().getString("settings"); 36 | if ("preference".equals(settings)) { 37 | addPreferencesFromResource(R.xml.preferences_widget); 38 | } else if ("about".equals(settings)) { 39 | addPreferencesFromResource(R.xml.preferences_about); 40 | } else { 41 | Toast.makeText(getActivity(), "No such settings.", Toast.LENGTH_SHORT).show(); 42 | getActivity().finish(); 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /demo/src/main/java/com/mobvoi/design/demo/fragments/SupportSettingsFragment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.mobvoi.design.demo.fragments; 18 | 19 | import android.os.Bundle; 20 | 21 | import com.ticwear.design.demo.R; 22 | 23 | import ticwear.design.preference.PreferenceFragmentCompat; 24 | 25 | /** 26 | * 27 | * Created by tankery on 20/04/2017. 28 | */ 29 | 30 | public class SupportSettingsFragment extends PreferenceFragmentCompat { 31 | @Override 32 | public void onCreate(Bundle savedInstanceState) { 33 | super.onCreate(savedInstanceState); 34 | addPreferencesFromResource(R.xml.preferences_about); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /demo/src/main/res/color/swipe_todo_confirm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /demo/src/main/res/color/volumebar_colorstatelist.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_3g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_3g.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_about.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_alarm_notify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_alarm_notify.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_awake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_awake.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_batterysave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_batterysave.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_developer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_developer.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_gps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_gps.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_plane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_plane.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_preference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_preference.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_reset.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_snooze.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_snooze.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_update.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_watchface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_watchface.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_wifi.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-280dpi/ic_wrist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-280dpi/ic_wrist.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_1.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_10.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_2.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_3.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_4.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_5.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_6.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_7.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_8.png -------------------------------------------------------------------------------- /demo/src/main/res/drawable-tvdpi/avatar_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/drawable-tvdpi/avatar_9.png -------------------------------------------------------------------------------- /demo/src/main/res/layout/dialog_spec_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/list_item_simple_text1.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 26 | 27 | 36 | 37 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/list_item_with_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 26 | 27 | 34 | 35 | 44 | 45 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/widgets_swipe_todo.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | 23 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/widgets_volume_bar.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 22 | 23 | 29 | 30 | 35 | 36 | -------------------------------------------------------------------------------- /demo/src/main/res/menu/default_hint.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 22 | 25 | 28 | 31 | 34 | -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/demo/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/transition/explode.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 21 | -------------------------------------------------------------------------------- /demo/src/main/res/transition/explode_bounce.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 22 | -------------------------------------------------------------------------------- /demo/src/main/res/transition/fade_fast.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /demo/src/main/res/transition/fade_slow.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /demo/src/main/res/transition/shared_explode.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /demo/src/main/res/transition/shared_explode_two.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /demo/src/main/res/transition/slide_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /demo/src/main/res/transition/slide_explode.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /demo/src/main/res/transition/slide_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 21 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /demo/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 21 | 64dp 22 | 23 | -------------------------------------------------------------------------------- /demo/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 16dp 20 | 16dp 21 | 22 | 50dp 23 | 24 | -------------------------------------------------------------------------------- /demo/src/main/res/values/donottranslate.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | avatar 19 | title 20 | 21 | -------------------------------------------------------------------------------- /demo/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 30 | 31 | -------------------------------------------------------------------------------- /demo/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 21 | -------------------------------------------------------------------------------- /demo/src/main/res/xml/preferences_dynamic.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 21 | 22 | 27 | 28 | 32 | 33 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2016 Mobvoi Inc. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | ORGANIZATION=ticwear 18 | GROUP=com.ticwear 19 | VERSION_NAME=1.1.0 20 | 21 | POM_URL=https://mobvoi.github.io/ticdesign/ 22 | POM_SCM_URL=https://github.com/mobvoi/ticdesign 23 | POM_SCM_CONNECTION=scm:git:git://github.com/mobvoi/ticdesign.git 24 | POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/mobvoi/ticdesign.git 25 | 26 | POM_LICENCE_NAME=The Apache Software License, Version 2.0 27 | POM_LICENCE_SHORT_NAME=Apache-2.0 28 | POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt 29 | POM_LICENCE_DIST=repo 30 | 31 | POM_DEVELOPER_ID=tankery 32 | POM_DEVELOPER_NAME=Tankery Chen 33 | POM_DEVELOPER_EMAIL=tankery.chen@gmail.com 34 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobvoi/ticdesign/14b46ff8409f22869e8147e7611b6087fae3b8ac/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2016 Mobvoi Inc. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | #Wed Oct 21 11:34:03 PDT 2015 18 | distributionBase=GRADLE_USER_HOME 19 | distributionPath=wrapper/dists 20 | zipStoreBase=GRADLE_USER_HOME 21 | zipStorePath=wrapper/dists 22 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 23 | -------------------------------------------------------------------------------- /releasing-push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function error_exit { 4 | echo "$1" 1>&2 5 | exit 1 6 | } 7 | 8 | function exit_if_error { 9 | if [ $? == 0 ]; then 10 | return 11 | fi 12 | echo "$1" 1>&2 13 | exit 1 14 | } 15 | 16 | version=$1 17 | remote=$2 18 | 19 | if [ -z "$version" ]; then 20 | error_exit "Please specific release version." 21 | fi 22 | 23 | git tag -a $version -m "Version $version" 24 | 25 | exit_if_error "Tagging failed." 26 | 27 | git push $remote && git push $remote --tags 28 | 29 | exit_if_error "Push to repo failed." 30 | 31 | -------------------------------------------------------------------------------- /releasing-upload.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function error_exit { 4 | echo "$1" 1>&2 5 | exit 1 6 | } 7 | 8 | function exit_if_error { 9 | if [ $? == 0 ]; then 10 | return 11 | fi 12 | echo "$1" 1>&2 13 | exit 1 14 | } 15 | 16 | version=$1 17 | remote=$2 18 | 19 | if [ -z "$version" ]; then 20 | error_exit "Please specific release version." 21 | fi 22 | 23 | git commit -am "Prepare for release $version" 24 | 25 | exit_if_error "Commit failed." 26 | 27 | ./gradlew clean bintrayUpload 28 | 29 | exit_if_error "Upload failed." 30 | 31 | echo "Now review your code on Gerrit. Then do release push after pull from Gerrit." 32 | 33 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | include ':demo' 18 | // For legacy code, we remain DesignSupport as module name. 19 | include ':ticdesign' 20 | project(':ticdesign').projectDir = new File('ticDesign') 21 | -------------------------------------------------------------------------------- /ticDesign/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /ticDesign/Android.mk: -------------------------------------------------------------------------------- 1 | 2 | LOCAL_PATH := $(call my-dir) 3 | 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_MODULE := ticwear-design-support 7 | 8 | #LOCAL_FULL_MANIFEST_FILE := $(LOCAL_PATH)/src/main/AndroidManifest.xml 9 | LOCAL_MANIFEST_FILE := src/main/AndroidManifest.xml 10 | 11 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/src/main/res 12 | 13 | LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) \ 14 | $(call all-Iaidl-files-under, src/main/java) 15 | 16 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-latest 17 | LOCAL_STATIC_JAVA_AAR_LIBRARIES := android-support-v7-recyclerview-latest 18 | 19 | LOCAL_AAPT_FLAGS := --auto-add-overlay \ 20 | --extra-packages android.support.v7.recyclerview 21 | 22 | include $(BUILD_STATIC_JAVA_LIBRARY) 23 | 24 | -------------------------------------------------------------------------------- /ticDesign/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | apply plugin: 'com.android.library' 18 | apply plugin: 'com.jakewharton.hugo' 19 | 20 | android { 21 | compileSdkVersion versions.compileSdk 22 | buildToolsVersion versions.buildTools 23 | 24 | defaultConfig { 25 | minSdkVersion 21 26 | targetSdkVersion 23 27 | consumerProguardFiles 'proguard-rules.pro' 28 | } 29 | sourceSets { 30 | main.res.srcDirs 'src/main/res', 'src/main/res-public' 31 | } 32 | 33 | lintOptions { 34 | disable 'AppCompatCustomView' 35 | } 36 | } 37 | 38 | dependencies { 39 | implementation deps.support.annotations 40 | implementation deps.support.fragment 41 | implementation deps.support.recyclerview 42 | } 43 | 44 | apply from: rootProject.file('gradle/bintray-push.gradle') 45 | -------------------------------------------------------------------------------- /ticDesign/gradle.properties: -------------------------------------------------------------------------------- 1 | POM_PACKAGING=aar 2 | POM_ARTIFACT_ID=ticdesign 3 | POM_NAME=ticdesign 4 | POM_DESCRIPTION=Open sourced design support library for smartwatch. 5 | -------------------------------------------------------------------------------- /ticDesign/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 20 | 21 | 22 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ticDesign/src/main/java/ticwear/design/DesignConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package ticwear.design; 18 | 19 | import android.os.Build; 20 | 21 | /** 22 | * Library configurations, delete when we integrated the gradle into make. 23 | * 24 | * Created by tankery on 4/15/16. 25 | */ 26 | @SuppressWarnings("PointlessBooleanExpression") 27 | public class DesignConfig { 28 | 29 | public static final boolean DEBUG = !Build.TYPE.equals("user"); 30 | 31 | public static final boolean DEBUG_PICKERS = DEBUG && false; 32 | public static final boolean DEBUG_RECYCLER_VIEW = DEBUG && false; 33 | public static final boolean DEBUG_SCROLLBAR = DEBUG && false; 34 | public static final boolean DEBUG_COORDINATOR = DEBUG && false; 35 | 36 | } 37 | -------------------------------------------------------------------------------- /ticDesign/src/main/java/ticwear/design/drawable/CircleDrawable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package ticwear.design.drawable; 18 | 19 | import android.graphics.Path; 20 | import android.graphics.PixelFormat; 21 | import android.graphics.Rect; 22 | import android.graphics.drawable.ColorDrawable; 23 | import android.graphics.drawable.Drawable; 24 | import android.support.annotation.NonNull; 25 | 26 | /** 27 | * An drawable to clip given drawable to a shape. 28 | *

29 | * Created by tankery on 6/15/16. 30 | */ 31 | public class CircleDrawable extends ClipPathDrawable { 32 | 33 | public CircleDrawable(int color) { 34 | this(new ColorDrawable(color)); 35 | } 36 | 37 | public CircleDrawable(@NonNull Drawable drawable) { 38 | super(drawable); 39 | } 40 | 41 | @Override 42 | public int getOpacity() { 43 | // We always have lots of transparent pixels. 44 | return PixelFormat.TRANSLUCENT; 45 | } 46 | 47 | @Override 48 | protected void onResetPath(Path path, Rect bounds) { 49 | path.reset(); 50 | path.addOval(bounds.left, bounds.top, bounds.right, bounds.bottom, Path.Direction.CW); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /ticDesign/src/main/java/ticwear/design/preference/SwitchConfirmPreference.java: -------------------------------------------------------------------------------- 1 | package ticwear.design.preference; 2 | 3 | import android.content.Context; 4 | import android.content.DialogInterface; 5 | import android.util.AttributeSet; 6 | 7 | import ticwear.design.app.AlertDialog; 8 | 9 | public class SwitchConfirmPreference extends SwitchPreference { 10 | 11 | private String dialogMsg; 12 | 13 | public SwitchConfirmPreference(Context context, AttributeSet attrs) { 14 | super(context, attrs); 15 | } 16 | 17 | @Override 18 | protected void onClick() { 19 | if (isChecked()) { 20 | showSwitchPrefDialog(); 21 | } else { 22 | super.onClick(); 23 | } 24 | } 25 | 26 | private void showSwitchPrefDialog() { 27 | new AlertDialog.Builder(getContext()) 28 | .setMessage(dialogMsg) 29 | .setPositiveButtonIcon(ticwear.design.R.drawable.tic_ic_btn_ok, new DialogInterface.OnClickListener() { 30 | @Override 31 | public void onClick(DialogInterface dialog, int which) { 32 | dialog.dismiss(); 33 | SwitchConfirmPreference.super.onClick(); 34 | } 35 | }) 36 | .setNegativeButtonIcon(ticwear.design.R.drawable.tic_ic_btn_cancel, new DialogInterface.OnClickListener() { 37 | @Override 38 | public void onClick(DialogInterface dialog, int which) { 39 | dialog.dismiss(); 40 | } 41 | }) 42 | .create() 43 | .show(); 44 | } 45 | 46 | public void setDialogMessage(String msg) { 47 | dialogMsg = msg; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /ticDesign/src/main/java/ticwear/design/utils/ColorUtils.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package ticwear.design.utils; 18 | 19 | import android.graphics.Color; 20 | 21 | public class ColorUtils { 22 | 23 | private static int getMiddleValue(int prev, int next, float factor){ 24 | return Math.round(prev + (next - prev) * factor); 25 | } 26 | 27 | public static int getMiddleColor(int prevColor, int curColor, float factor){ 28 | if(prevColor == curColor) 29 | return curColor; 30 | 31 | if(factor == 0f) 32 | return prevColor; 33 | else if(factor == 1f) 34 | return curColor; 35 | 36 | int a = getMiddleValue(Color.alpha(prevColor), Color.alpha(curColor), factor); 37 | int r = getMiddleValue(Color.red(prevColor), Color.red(curColor), factor); 38 | int g = getMiddleValue(Color.green(prevColor), Color.green(curColor), factor); 39 | int b = getMiddleValue(Color.blue(prevColor), Color.blue(curColor), factor); 40 | 41 | return Color.argb(a, r, g, b); 42 | } 43 | 44 | public static int getColor(int baseColor, float alphaPercent){ 45 | int alpha = Math.round(Color.alpha(baseColor) * alphaPercent); 46 | 47 | return (baseColor & 0x00FFFFFF) | (alpha << 24); 48 | } 49 | } -------------------------------------------------------------------------------- /ticDesign/src/main/java/ticwear/design/utils/blur/BlurFactor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Mobvoi Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package ticwear.design.utils.blur; 18 | 19 | import android.graphics.Color; 20 | 21 | /** 22 | * Copyright (C) 2015 Wasabeef 23 | * 24 | * Licensed under the Apache License, Version 2.0 (the "License"); 25 | * you may not use this file except in compliance with the License. 26 | * You may obtain a copy of the License at 27 | * 28 | * http://www.apache.org/licenses/LICENSE-2.0 29 | * 30 | * Unless required by applicable law or agreed to in writing, software 31 | * distributed under the License is distributed on an "AS IS" BASIS, 32 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 33 | * See the License for the specific language governing permissions and 34 | * limitations under the License. 35 | */ 36 | 37 | public class BlurFactor { 38 | 39 | public static final int DEFAULT_RADIUS = 25; 40 | public static final int DEFAULT_SAMPLING = 1; 41 | 42 | public int width; 43 | public int height; 44 | public int radius = DEFAULT_RADIUS; 45 | public int sampling = DEFAULT_SAMPLING; 46 | public int color = Color.TRANSPARENT; 47 | } -------------------------------------------------------------------------------- /ticDesign/src/main/java/ticwear/design/widget/MathUtils.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 Mobvoi Inc. 3 | * Copyright (C) 2015 The Android Open Source Project 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package ticwear.design.widget; 19 | 20 | class MathUtils { 21 | 22 | static int constrain(int amount, int low, int high) { 23 | return amount < low ? low : (amount > high ? high : amount); 24 | } 25 | 26 | static float constrain(float amount, float low, float high) { 27 | return amount < low ? low : (amount > high ? high : amount); 28 | } 29 | 30 | static boolean sameSign(int a, int b) 31 | { 32 | return (a >= 0) ^ (b < 0); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /ticDesign/src/main/res-public/values/public_drawables.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res-public/values/public_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/anim/front_scale_in_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 25 | 30 | 33 | 34 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/anim/front_scale_out_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 25 | 30 | 33 | 34 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/anim/scale_in_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 25 | 30 | 33 | 34 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/anim/scale_out_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 25 | 30 | 33 | 34 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/anim/slide_in_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 25 | 27 | 30 | 31 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/anim/slide_out_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 25 | 27 | 30 | 31 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/animator/widget_check_appear.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 25 | 31 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/animator/widget_check_disappear.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 21 | 27 | 33 | 34 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/animator/widget_two_state_color_to_off.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/animator/widget_two_state_color_to_on.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/animator/widget_two_state_scale_small.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 26 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/animator/widget_two_state_scale_vertical_large.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 25 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/animator/widget_two_state_scale_vertical_small.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/color/primary_text_ticwear_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/color/secondary_text_ticwear_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/number_picker_divider_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_btn_cancel.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 23 | 28 | 33 | 34 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_btn_next.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 24 | 29 | 34 | 39 | 40 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_btn_ok.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 23 | 28 | 33 | 34 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 23 | 25 | 29 | 31 | 35 | 39 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_anim_to_off.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_anim_to_on.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_full.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 31 | 32 | 36 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_off.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_off_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 28 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_on.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 30 | 31 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_on_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 32 | 33 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_small.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 23 | 25 | 29 | 31 | 35 | 39 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_small_anim_to_off.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_small_anim_to_on.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_small_full.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 31 | 32 | 36 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_small_off.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_small_off_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 28 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_small_on.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 30 | 31 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_check_small_on_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 32 | 33 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_enter.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 22 | 24 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_enter_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 26 | 31 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_enter_normal.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 25 | 29 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_minus_32px.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 25 | 26 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_plus_32px.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 25 | 26 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 23 | 25 | 29 | 31 | 35 | 39 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_anim_to_off.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_anim_to_on.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_full.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 31 | 32 | 35 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_off.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_off_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 28 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_on.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_on_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 31 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_small.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 23 | 25 | 29 | 31 | 35 | 39 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_small_anim_to_off.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_small_anim_to_on.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_small_full.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 31 | 32 | 35 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_small_off.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_small_off_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 28 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_small_on.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_radio_small_on_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 31 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_switch.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 23 | 25 | 29 | 31 | 35 | 39 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_switch_anim_to_off.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | 33 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_switch_anim_to_on.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 23 | 26 | 27 | 30 | 33 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_switch_off.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 30 | 31 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_switch_off_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 32 | 33 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_switch_on.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 26 | 29 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_switch_on_disabled.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 23 | 27 | 31 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_volumenone_32px.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 25 | 26 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_ic_volumeup_32px.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 22 | 25 | 26 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_round_accent.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_round_item_icon_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/tic_selectable_round_item_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 22 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/drawable/time_picker_header_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/dialog_date_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 29 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/dialog_datetime_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 26 | 27 | 33 | 34 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/dialog_number_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 23 | 24 | 29 | 30 | 39 | 40 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/dialog_time_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/list_content_ticklable.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/menu_list_item_close_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 25 | 26 | 36 | 37 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/number_picker_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 28 | 29 | 35 | 36 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/number_picker_with_selector_wheel_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/preference_widget_checkbox.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 21 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/preference_widget_enter.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/preference_widget_switch.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 21 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/select_dialog_item_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 24 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/select_dialog_multichoice_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 29 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/select_dialog_singlechoice_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 29 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/layout/select_dialog_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 26 | 37 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-de/widget_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | Zeit 21 | 22 | Datum 23 | 24 | No volver a mostrar 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-es/widget_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | Tiempo 21 | 22 | Fecha 23 | 24 | Ne pas afficher à nouveau 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-fr/widget_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | Temps 21 | 22 | Rendez-vous amoureux 23 | 24 | Nicht wieder zeigen 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-ja/widget_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 時間 21 | 22 | 日付 23 | 24 | 再度表示しない 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-v23/styles_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-v24/themes_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-w228dp/dimens_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 32dp 22 | 24dp 23 | 24 | 25 | 36dp 26 | 27 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-w228dp/dimens_widget.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 14dp 20 | 16dp 21 | 48dp 22 | 40dp 23 | 24 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-w240dp/dimens_ticwear.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 40dp 22 | 30dp 23 | 24 | 25 | 42dp 26 | 27 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-w240dp/dimens_widget.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 14dp 20 | 20dp 21 | 56dp 22 | 48dp 23 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-zh-rCN/widget_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 时间 21 | 22 | 日期 23 | 24 | 不再提醒 25 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values-zh-rTW/widget_strings.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 時間 20 | 21 | 日期 22 | 23 | 不再提醒 24 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/booleans_preference.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | false 20 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/colors_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | #80dddddd 21 | 22 | @color/bright_foreground_disabled_ticwear_dark 23 | 24 | #ffdddddd 25 | #b3dddddd 26 | 27 | @dimen/tic_disabled_alpha 28 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/colors_theme.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | @color/tic_basic_indigo 21 | 22 | @color/tic_widget_background_dark 23 | 24 | @color/tic_basic_indigo_lighten 25 | 26 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/colors_widget.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | #3fff 21 | #5fff 22 | 23 | #1fff 24 | #05ffffff 25 | 26 | #b2000000 27 | 28 | 0.9 29 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 6dp 21 | 6dp 22 | 24dp 23 | 56dp 24 | 40dp 25 | 0.5dp 26 | 27 | 0dp 28 | 29 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/donottranslate_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | ticwear.design.widget.AppBarLayout$ScrollingViewBehavior 21 | 22 | 23 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/donottranslate_ticwear_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | sans-serif-condensed 20 | sans-serif-condensed 21 | sans-serif-condensed-medium 22 | sans-serif-condensed 23 | sans-serif-condensed 24 | sans-serif-condensed-medium 25 | sans-serif-condensed 26 | sans-serif-condensed 27 | sans-serif-condensed-medium 28 | 29 | 30 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/notrans_svg.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | M52,52m-52,0a52,52 0,1 1,104 0a52,52 0,1 1,-104 0 20 | M52,52m-26,0a26,26 0,1 1, 52 0a26,26 0,1 1, -52 0 21 | M52,52m-0 ,0a0 , 0 0,1 1, 0 0a0 , 0 0,1 1, -0 0 22 | 52.0 23 | 24 | M48,36h8v32h-8z 25 | M52,52m-16,0a16,16 0,1 1,32 0a16,16 0,1 1,-32 0 26 | 27 | M36.23,49.27L50,63L71.98,41.02 28 | 29 | M52,52m-19,0a19,19 0,1 1,38 0a19,19 0,1 1,-38 0 30 | 31 | M46.73,66.95l14.01,-14.35l-14.01,-14.71 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/values_ui.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 1500 21 | 400 22 | 300 23 | 150 24 | 200 25 | 26 | 0.95 27 | 28 | 0.5 29 | 0.1 30 | 64dp 31 | 32 | -------------------------------------------------------------------------------- /ticDesign/src/main/res/values/widget_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | Time 21 | 22 | Date 23 | 24 | Don\'t show again 25 | --------------------------------------------------------------------------------