Android Custom View 102 (Part 10)
A Tag Layout
Just finished writing a custom layout to display tags and alike views. Not super polished but can be used as a reference. Source Code
A Tag Layout
Just finished writing a custom layout to display tags and alike views. Not super polished but can be used as a reference. Source Code
July 2020
One Night Only (Disco Edition) Countdown
How to setup CLISP environment in Spacemacs on Archlinux
The famous Land of Lisp uses CLISP. This is a tutorial to help you setup everything up. I use Spacemacs + Common Lisp Layer + CLISP + Manjaro Linux. After install the Common Lisp Layer in Spacemacs, when start up Slime, I got an error saying: could not load ASDF. Here is the fix that worked for me: Install asdf separately: yay asdf After it is successfully installed, it prints: To load ASDF every time you start Lisp, copy the lines from /etc/default/asdf to your ~/sbclrc or ~/.
Build a collapsing toolbar using MotionLayout
Source code
Straightforward toolbar example
Use NoActionBar theme <resources> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> </resources> Create toolbar layout <?xml version="1.0" encoding="utf-8"?> <androidx.appcompat.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="@color/colorPrimary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> </androidx.appcompat.widget.Toolbar> Setting the layout_height to wrap_content will make it the correct default height. Since our app has a light theme, the texts color in toolbar will be black. To change it to white, we need to set the theme of the toolbar to ThemeOverlay.