This is an example of using Filterable with a SearchView to filter the data of a ListView adapter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.network; | |
| import androidx.annotation.NonNull; | |
| import java.io.IOException; | |
| import okhttp3.HttpUrl; | |
| import okhttp3.Interceptor; | |
| import okhttp3.Request; | |
| import okhttp3.Response; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (C) 2018 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
To start an application minimized (like the Todoist snap as in below), create a script similar to the following.
You can add the script to autostart on login in your DE.
#!/bin/bash
# Launch Todoist as a background process
/var/lib/snapd/desktop/applications/todoist_todoist.desktop&
# Loop, waiting for the window to initialise
i=0
while [ $i -lt 20 ]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.app | |
| import android.content.Context | |
| import androidx.annotation.StringRes | |
| sealed class UiText { | |
| data class DynamicString(val value: String) : UiText() | |
| data class StringResource( |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
OlderNewer