для тех кому как и мне не нравиться видеть зависимость в списке основных зависимостей приложения например
testImplementation "junit:junit:+"
создаем файл testDependencies.gradle
:
dependencies {
sudo apt-get -y update | |
sudo apt install gnome-clocks | |
#------------------------PuTTY-------------- | |
#-----https://numato.com/help/blog/how-to-install-putty-on-linux/ | |
#-----https://www.ssh.com/ssh/putty/linux/puttygen | |
#------------------------------------------- | |
sudo apt-get -y update | |
sudo apt-get -y install -y putty | |
putty |
project.afterEvaluate { | |
crashlyticsUploadDistributionDevelopDebug.doFirst { | |
ext.betaDistributionGroupAliases = "develop" | |
ext.betaDistributionNotifications = true | |
ext.betaDistributionReleaseNotesFilePath = "${project.rootDir}/app/build/outputs/apk/releaseNotes.txt" | |
} | |
} |
class MyClass { | |
fun test() { | |
val str: String = "..." | |
val result = str.xxx { | |
print(this) // Receiver | |
print(it) // Argument | |
42 // Block return value | |
} | |
} | |
} |
new Dialog(getActivity(), R.style.DialogStyle); | |
<style name="DialogStyle" parent="Base.Theme.AppCompat.Dialog"> | |
<item name="android:windowNoTitle">true</item> | |
<item name="android:windowBackground">@android:color/transparent</item> | |
</style> | |
val window = dialog?.window | |
window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) |
RxViews:
RecyclerView:
<style name="TextLimitStyle" parent="TextAppearance.AppCompat.Small"> | |
<item name="android:textColor">@color/colorAccent< /item> | |
<item name="android:textStyle">bold</item> | |
<item name="android:textSize">18sp</item> | |
</style> | |
<style name="TextLimitError" parent="TextAppearance.AppCompat.Small"> | |
<item name="android:textColor">@color/colorRed</item> | |
</style> |
<ImageView | |
android:id="@+id/imageView" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:clickable="true" | |
android:clipChildren="false" | |
android:clipToPadding="false" | |
android:focusable="true" | |
android:foreground="?attr/selectableItemBackgroundBorderless" | |
android:src="@drawable/ic_dislike_36dp" |