Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mixiaoxiao/Weather
/ functions
Functions
537 in github.com/Mixiaoxiao/Weather
⨍
Functions
537
◇
Types & classes
109
↓ 2 callers
Method
getTargetCheckedState
()
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:871
↓ 2 callers
Method
getThumbOffset
Translates thumb position to offset according to current RTL setting and thumb scroll range. Accounts for both track and thumb padding. @return thumb
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:1139
↓ 2 callers
Method
getThumbScrollRange
()
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:1149
↓ 2 callers
Method
getTodayDailyForecastIndex
出错返回-1 @returnTodayDailyForecastIndex
WeatherGithub/src/com/mixiaoxiao/weather/api/entity/Weather.java:49
↓ 2 callers
Method
getTranslateDiatance
()
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxEdgeEffect.java:235
↓ 2 callers
Method
hideSelf
()
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxPagerTitleStrip.java:273
↓ 2 callers
Method
initViewPager
()
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:361
↓ 2 callers
Method
isNight
(Weather weather)
WeatherGithub/src/com/mixiaoxiao/weather/api/ApiManager.java:522
↓ 2 callers
Method
isShowing
()
WeatherGithub/src/com/mixiaoxiao/support/widget/LabelSpinner.java:240
↓ 2 callers
Method
loadWeather
(@NonNull Context context, @NonNull String areaId)
WeatherGithub/src/com/mixiaoxiao/weather/api/ApiManager.java:281
↓ 2 callers
Method
makeLayout
(CharSequence text)
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:710
↓ 2 callers
Method
makePopupListViewItem
(boolean fake)
WeatherGithub/src/com/mixiaoxiao/support/widget/LabelSpinner.java:140
↓ 2 callers
Method
offsetTopAndBottom
(int offset)
WeatherGithub/src/com/mixiaoxiao/weather/widget/SunDrawable.java:64
↓ 2 callers
Method
onPageScrolled
This method will be invoked when the current page is scrolled, either as part of a programmatically initiated smooth scroll or a user initiated touch
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:1681
↓ 2 callers
Method
onPull
A view should call this when content is pulled away from an edge by the user. This will update the state of the current visual effect and its associat
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxEdgeEffect.java:133
↓ 2 callers
Method
onSecondaryPointerUp
(MotionEvent ev)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2399
↓ 2 callers
Method
onSecondaryPointerUp
(MotionEvent ev)
WeatherGithub/src/com/mixiaoxiao/weather/widget/PullRefreshLayout.java:455
↓ 2 callers
Method
pageLeft
()
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2621
↓ 2 callers
Method
pageRight
()
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2629
↓ 2 callers
Method
performDrag
(float x)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2067
↓ 2 callers
Method
postRefresh
()
WeatherGithub/src/com/mixiaoxiao/weather/WeatherFragment.java:256
↓ 2 callers
Method
recomputeScrollPosition
(int width, int oldWidth, int margin, int oldMargin)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:1478
↓ 2 callers
Method
restoreState
(Parcelable state, ClassLoader loader)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxFragmentPagerAdapter.java:118
↓ 2 callers
Method
setAdapter
Set a PagerAdapter that will supply views for this pager as needed. @param adapter Adapter to use
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:418
↓ 2 callers
Method
setColorSchemeColors
(int... colorSchemeColors)
WeatherGithub/src/com/mixiaoxiao/weather/widget/PullRefreshLayout.java:96
↓ 2 callers
Method
setDrawerType
(Type type)
WeatherGithub/src/com/mixiaoxiao/dynamicweather/DynamicWeatherView.java:53
↓ 2 callers
Method
setGravity
Set the {@link Gravity} used to position text within the title strip. Only the vertical gravity component is used. @param gravity {@link G
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxPagerTitleStrip.java:406
↓ 2 callers
Method
setInternalPageChangeListener
Set a separate OnPageChangeListener for internal use by the support library. @param listener Listener to set @return The old listener that was set, i
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:664
↓ 2 callers
Method
setOnAdapterChangeListener
(OnAdapterChangeListener listener)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:484
↓ 2 callers
Method
setOnSelectionChangedListener
(OnSelectionChangedListener listener)
WeatherGithub/src/com/mixiaoxiao/support/widget/LabelSpinner.java:50
↓ 2 callers
Method
stop
()
WeatherGithub/src/com/mixiaoxiao/weather/widget/SunDrawable.java:77
↓ 2 callers
Method
toast
(String msg)
WeatherGithub/src/com/mixiaoxiao/weather/BaseFragment.java:26
↓ 2 callers
Method
trigger
(int position, float positionOffset)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxPagerTitleStrip.java:264
↓ 1 callers
Method
OnSelectionChanged
(int position)
WeatherGithub/src/com/mixiaoxiao/support/widget/LabelSpinner.java:34
↓ 1 callers
Method
animateOffsetToCorrectPosition
()
WeatherGithub/src/com/mixiaoxiao/weather/widget/PullRefreshLayout.java:355
↓ 1 callers
Method
animateThumbToCheckedState
(boolean newCheckedState)
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:849
↓ 1 callers
Method
calculatePageOffsets
(ItemInfo curItem, int curIndex, ItemInfo oldCurInfo)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:1132
↓ 1 callers
Method
canScroll
Tests scrollability within child views of v given a delta of dx. @param v View to test for horizontal scrollability @param checkV Whether the view v
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2466
↓ 1 callers
Method
canScrollHorizontally
(int direction)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2439
↓ 1 callers
Method
cancelSuperTouch
(MotionEvent ev)
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:812
↓ 1 callers
Method
checkLayoutParams
(ViewGroup.LayoutParams p)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2766
↓ 1 callers
Method
computeContentWidth
()
WeatherGithub/src/com/mixiaoxiao/support/widget/LabelSpinner.java:277
↓ 1 callers
Method
constrain
Taken from android.util.MathUtils
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:1252
↓ 1 callers
Method
convertWeatherType
把Weather转换为对应的BaseDrawer.Type @param weather @return
WeatherGithub/src/com/mixiaoxiao/weather/api/ApiManager.java:377
↓ 1 callers
Method
debug
()
WeatherGithub/src/com/mixiaoxiao/weather/WeatherFragment.java:190
↓ 1 callers
Method
distanceInfluenceForSnapDuration
(float f)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:776
↓ 1 callers
Method
doHttpGet
(String url)
WeatherGithub/src/com/mixiaoxiao/weather/api/ApiManager.java:651
↓ 1 callers
Method
dp2px
(int dp)
WeatherGithub/src/com/mixiaoxiao/weather/widget/PullRefreshLayout.java:515
↓ 1 callers
Method
draw
(Canvas canvas)
WeatherGithub/src/com/mixiaoxiao/dynamicweather/RainDrawer.java:41
↓ 1 callers
Method
draw
(Canvas canvas)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2180
↓ 1 callers
Method
drawSkyBackground
(Canvas canvas, float alpha)
WeatherGithub/src/com/mixiaoxiao/dynamicweather/BaseDrawer.java:126
↓ 1 callers
Method
drawSurface
(Canvas canvas)
WeatherGithub/src/com/mixiaoxiao/dynamicweather/DynamicWeatherView.java:97
↓ 1 callers
Method
drawWeather
(Canvas canvas, float alpha)
WeatherGithub/src/com/mixiaoxiao/dynamicweather/BaseDrawer.java:154
↓ 1 callers
Method
enableLayers
(boolean enable)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:1781
↓ 1 callers
Method
executeKeyEvent
You can call this function yourself to have the scroll view perform scrolling from a key event, just as if the event had been dispatched to it by the
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2503
↓ 1 callers
Method
fixAlpha
必须取[0,1]之间的float @param alpha @return
WeatherGithub/src/com/mixiaoxiao/dynamicweather/BaseDrawer.java:249
↓ 1 callers
Method
generateDefaultLayoutParams
()
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2756
↓ 1 callers
Method
generateLayoutParams
(ViewGroup.LayoutParams p)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:2761
↓ 1 callers
Method
getApiUrlFromAreaId
(String areaId)
WeatherGithub/src/com/mixiaoxiao/weather/api/ApiManager.java:588
↓ 1 callers
Method
getCityName
()
WeatherGithub/src/com/mixiaoxiao/weather/WeatherFragment.java:151
↓ 1 callers
Method
getFinalOffset
()
WeatherGithub/src/com/mixiaoxiao/weather/widget/PullRefreshLayout.java:139
↓ 1 callers
Method
getInterpolation
(float t)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:132
↓ 1 callers
Method
getItem
(int position)
WeatherGithub/src/com/mixiaoxiao/support/widget/LabelSpinner.java:255
↓ 1 callers
Method
getMinHeight
()
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxPagerTitleStrip.java:694
↓ 1 callers
Method
getPrefString
(Context context,final String preferencesName, String key, final String defaultValue)
WeatherGithub/src/com/mixiaoxiao/android/util/MxxPreferenceUtil.java:15
↓ 1 callers
Method
getRefreshLayout
()
WeatherGithub/src/com/mixiaoxiao/weather/widget/RefreshDrawable.java:24
↓ 1 callers
Method
getSkyBackgroundGradient
()
WeatherGithub/src/com/mixiaoxiao/dynamicweather/BaseDrawer.java:157
↓ 1 callers
Method
getStatusBarHeight
()
WeatherGithub/src/com/mixiaoxiao/android/util/UiUtil.java:32
↓ 1 callers
Method
getTextPaintOffset
(Paint paint)
WeatherGithub/src/com/mixiaoxiao/android/util/UiUtil.java:78
↓ 1 callers
Method
getTextPaintOffset
(Paint paint)
WeatherGithub/src/com/mixiaoxiao/weather/widget/HourlyForecastView.java:234
↓ 1 callers
Method
getTextPaintOffset
(Paint paint)
WeatherGithub/src/com/mixiaoxiao/weather/widget/DailyForecastView.java:248
↓ 1 callers
Method
getTitle
()
WeatherGithub/src/com/mixiaoxiao/weather/BaseFragment.java:11
↓ 1 callers
Method
getTodayDailyForecast
出错返回null @return Today DailyForecast
WeatherGithub/src/com/mixiaoxiao/weather/api/entity/Weather.java:67
↓ 1 callers
Method
getTodayTempDescription
今天的气温 6~16° @return
WeatherGithub/src/com/mixiaoxiao/weather/api/entity/Weather.java:79
↓ 1 callers
Method
getTrackColor
(int color)
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:316
↓ 1 callers
Method
hasAqi
()
WeatherGithub/src/com/mixiaoxiao/weather/api/entity/Weather.java:29
↓ 1 callers
Method
hitThumb
@return true if (x, y) is within the target area of the switch thumb
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:721
↓ 1 callers
Method
infoForAnyChild
(View child)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:1346
↓ 1 callers
Method
init
(Context context)
WeatherGithub/src/com/mixiaoxiao/dynamicweather/DynamicWeatherView.java:31
↓ 1 callers
Method
init
(Context context)
WeatherGithub/src/com/mixiaoxiao/weather/widget/HourlyForecastView.java:64
↓ 1 callers
Method
init
(Context context)
WeatherGithub/src/com/mixiaoxiao/weather/widget/DailyForecastView.java:67
↓ 1 callers
Method
init
(Context context, AttributeSet attrs, int defStyleAttr)
WeatherGithub/src/com/mixiaoxiao/support/widget/LabelSpinner.java:69
↓ 1 callers
Method
instantiateItem
(ViewGroup container, int position)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxFragmentPagerAdapter.java:33
↓ 1 callers
Method
isGutterDrag
(float x, float dx)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:1777
↓ 1 callers
Method
isNeedUpdate
是否需要更新Weather数据 1小时15分钟之内的return false; 传入null或者有问题的weather也会返回true @param weather @return
WeatherGithub/src/com/mixiaoxiao/weather/api/ApiManager.java:304
↓ 1 callers
Method
isNetworkAvailable
检测网络是否可用 @param context 上下文 @return true 表示有网络连接 false表示没有可用网络连接
WeatherGithub/src/com/mixiaoxiao/android/util/MxxNetworkUtil.java:16
↓ 1 callers
Method
isRunning
()
WeatherGithub/src/com/mixiaoxiao/weather/widget/SunDrawable.java:82
↓ 1 callers
Method
isViewFromObject
(View view, Object object)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxFragmentPagerAdapter.java:108
↓ 1 callers
Method
loadAreaToViewPager
()
WeatherGithub/src/com/mixiaoxiao/weather/MainActivity.java:91
↓ 1 callers
Method
loadSelectedArea
(Context context)
WeatherGithub/src/com/mixiaoxiao/weather/api/ApiManager.java:77
↓ 1 callers
Method
makeDrawerByType
(Context context, Type type)
WeatherGithub/src/com/mixiaoxiao/dynamicweather/BaseDrawer.java:51
↓ 1 callers
Method
makeInstance
(@NonNull ArrayList<Area> selectedAreas)
WeatherGithub/src/com/mixiaoxiao/weather/SettingsFragment.java:34
↓ 1 callers
Method
makeInstance
(@NonNull Area area, Weather weather)
WeatherGithub/src/com/mixiaoxiao/weather/WeatherFragment.java:61
↓ 1 callers
Method
makeSkyBackground
()
WeatherGithub/src/com/mixiaoxiao/dynamicweather/BaseDrawer.java:122
↓ 1 callers
Method
makeThumbDrawable
(int color, int thumbWidth,int thumbHeight, float radius, int padding)
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:305
↓ 1 callers
Method
makeTrackDrawable
(int color, int thumbWidth,int thumbHeight,float radius, int padding)
WeatherGithub/src/com/mixiaoxiao/support/widget/SmoothSwitch.java:294
↓ 1 callers
Method
moveToStart
(float interpolatedTime)
WeatherGithub/src/com/mixiaoxiao/weather/widget/PullRefreshLayout.java:382
↓ 1 callers
Method
onAdapterChanged
(PagerAdapter oldAdapter, PagerAdapter newAdapter)
WeatherGithub/src/com/mixiaoxiao/mxxedgeeffect/widget/MxxViewPager.java:342
↓ 1 callers
Method
onReceiveWeather
(Weather weather, boolean updated)
WeatherGithub/src/com/mixiaoxiao/weather/api/ApiManager.java:54
↓ 1 callers
Method
onRefresh
()
WeatherGithub/src/com/mixiaoxiao/weather/widget/PullRefreshLayout.java:524
← previous
next →
101–200 of 537, ranked by callers