Skip to main content

AspectRatioImageView

雖然最近Support Library新增了PercentRelativeLayout,但若想制固定長闊比的CollapsingToolbarLayout,還是需要都AspectRatioImageView,在onMeasure的時候告之計算後的長和闊,不然會使CollapsingToolbarLayout量度出錯。

Popular posts from this blog

電召

最近趁着Firebase更新,也趁機將電召這程式重新寫過一遍。

由Eclipse到Android Studio;由Holo到Material;由ListView到RecyclerView;由Banner Ad到Native Ad Express;由SDK 9+到SDK 16+。這兩年間的改變還真不少。


Android TV - TV Input Framework

平常看電視,選台是很簡單的一件事,一上一下,或者按出電視節目表,全都在一鍵之間。在Android TV上有相似的辦法,不用在應用程式之間切換嗎?


其實只要透過TV Input Framework將Live Feed和EPG以Provider的形式通知系統,用家便能在頻道列表中看見你的頻道。

在GitHub上有參考示範

Google I/O 2016 Highlight

Google I/O 2016Well, this year, there is no much great news. There are a few new product announced in the Keynote, but only new Firebase is immediately available.

Android N, Android VR, DaydreamVR has been a hot topic for a period of time. Now is it one step forward after Cardboard. A controller, and also higher hardware requirement for display. During the keynote, I just wondered, What? Is it just a WiiMote? Well, let’s see what it finally will be.

Android Apps on Chrome OSIt has been a long time since Google providing us the tools to pack the APK as Chome OS package. Now, finally, Google Play Store is on Chrome OS. In Greater China, application developers do not concern about large screen layout. Now, they will suffer. Chrome OS do have different screen size and resolution. Some of them have touch screen, some of them dont. In addition to making your app fits both screen size of phone and of tablet, please also take care with the input method.

And there is no DRM module under the Andro…