原创 LoadingDialog升級
地址:https://github.com/LinweiJ/LoadingDialog 1、爲何使用它? 開發過程中一個簡單的提交表單場景: 1、提交信息,顯示"信息提交中,請稍後…"; 2、信息提交成功,顯示"信息提交成功";
原创 Fragment在FrameLayout
Fragment API11(Android3.0)中引入了Fragment,由FragmentManager來管理。 Fragment extends object 。 Fragment也是Activity中的一個普通控件
原创 Android Material Design控件之CoordinatorLayout
Android Material Design Android官方控件學習 CoordinatorLayout CoordinatorLayout is a super-powered FrameLayout. Coordin
原创 微信小程序自定義控件--dialog
地址:https://github.com/LinweiJ/wega_weapp 二.dialog 1.將/utils/dialog文件夾copy到根目錄下的utils 2.copy以下代碼 到所需page目錄xxx.wxss,或
原创 RecyclerView代碼中滾動方法(滾動並置頂)
需求 列表過長,點擊浮動按鈕使RecyclerView滾動返回置頂 字母索引,快速滑動定位到某一個item並置頂 RecyclerView的原生方法 smoothScrollToPosition( int position )
原创 Error:C:\Users\Administrator.gradle\native\23\windows-i386\native-platform.dll (拒絕訪問。)
進去Android studio gradle 報錯 Error:C:\Users\Administrator.gradle\native\23\windows-i386\native-platform.dll (拒絕訪問。)
原创 Android Material Design控件之NestedScrollView
Android Material Design Android官方控件之學習 NestedScrollView 5.0以後 NestedScrollView用來實現ScrollView並且可以實現嵌套滾動效果。 用法與Scro
原创 ViewPagerIndicator
一個簡單好用的ViewPagerIndicator,提供了五種類型,採用在XML佈局中定製顏色大小等參數,在JAVA代碼中只需二行代碼就能爲viewpager添加酷炫效果,並且支持輪播圖。 地址:https://github.co
原创 微信小程序開發經驗總結(二)
微信小程序開發經驗總結 微信小程序開發經驗總結(一) 微信小程序開發經驗總結(二) 微信小程序開發經驗總結(三) 微信小程序開發經驗總結(四) 微信小程序開發經驗總結(五) 微信小程序開發經驗總結(六) 微信小程序開發
原创 去掉API21(5.0) Button自帶點擊陰影
第一種 簡單 style=”?android:attr/borderlessButtonStyle” <Button android:layout_width="wrap_content" android:layout_hei
原创 微信小程序開發經驗總結(五)
微信小程序開發經驗總結 微信小程序開發經驗總結(一) 微信小程序開發經驗總結(二) 微信小程序開發經驗總結(三) 微信小程序開發經驗總結(四) 微信小程序開發經驗總結(五) 微信小程序開發經驗總結(六) 微信小程序開發
原创 XML佈局View轉換成Bitmap
view通過LayoutInflater獲得XML佈局 View view = getLayoutInflater().inflate(R.layout.layout_your, null); view轉換爲Bitmap publ
原创 BannerSolution——Banner(輪播圖、廣告欄、展示欄 )一站式解決方案
BannerSolution Banner(輪播圖、廣告欄、展示欄 )一站式解決方案 依賴 先在 project的build.gradle 添加: allprojects { repositories {
原创 Material Design控件之NavigationView
Material Design Android官方控件之介紹 NavigationView NavigationView是用來做DrawerLayout的第二個子佈局的,就是抽屜佈局 由google提供的控件,跟DrawerLayo
原创 GankClient(JAVA)技術淺析(四)--MVP架構
MVP架構 MVP架構 分離Activity的model層功能,只作爲view層,增加presenter層構建連接; 一種處理視圖與數據模型關係的一種設計模式架構 MVC的升級版,基本上一致,把C改爲P 下面自己在Android上的MV