본문 바로가기

소프트웨어 개발

(6)
Using Java variables declared in Gradle in build.gradle:android { buildTypes { debug { buildConfigField "int", "FOO", "100" buildConfigField "String", "FOO_STRING", "\"foo\"" buildConfigField "boolean", "LOG", "true" } release { buildConfigField "int", "FOO", "200" buildConfigField "String", "FOO_STRING", "\"bar\"" buildConfigField "boolean", "LOG", "false" } } }You can access them with /app/build/generated/source/buildConfig/debug|re..
The map of Android UI/UX v0.3
How to change the Button background color How to change the colorFor the whole app:The color of all the UI controls (not only buttons, but also floating action buttons, checkboxes etc.) is managed by the attribute colorAccent as explained here. You can modify this style and apply your own color in your theme definition:For a specific button:If you need to change the style of a specific button, you can define a new style, inheriting one ..
Structured Handling of HTTP Requests Routing is a feature that is installed into an Application to simplify and structure page request handling. application.install(Routing) { get("/") { call.respondText("Hello, World!") } get("/bye") { call.respondText("Good bye, World!") } } get, post, put, delete, head and options functions are convenience shortcuts to a flexible and powerful routing system. In particular, get is an alias to rou..
How to automatically paste today's date with keyboard shortcut? (ex: 2018_05_19 23:15:05) Create new: ServicesServices receives no input in any applicationUse the search to find and add action: Run ApplescriptCopy and paste the following to the field on the right:tell application "System Events" set _Date to (current date) keystroke ¬ (year of _Date as text) & "_" & ¬ text -2 thru -1 of ("00" & ((month of _Date) as integer)) & "_" & ¬ (day of _Date as text) & " " & ¬ text -2 thru -1 ..
Softwares on my macOS v0.2