# ----------------------------------------------------------------
# Start and create vpn connection
# ----------------------------------------------------------------
# Download from https://www.softether-download.com/en.aspx?product=softether
# Select Software: SoftEther VPN (Freeware)
# Select Component: SoftEther VPN Client
# Select Platform: Linux
# Select CPU: Intel x64/AMD64 (64bit)
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item | |
android:left="-10dp" | |
android:right="-10dp" | |
android:top="-10dp"> | |
<shape android:shape="rectangle"> | |
<solid android:color="@android:color/transparent" /> | |
<stroke | |
android:width="2dp" |
This file contains 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
// Kotlin | |
val carousel: ImageCarousel = findViewById(R.id.carousel) | |
val list = mutableListOf<CarouselItem>() | |
list.add( | |
CarouselItem( | |
imageUrl = "https://images.unsplash.com/photo-1532581291347-9c39cf10a73c?w=1080", | |
caption = "Photo by Aaron Wu on Unsplash" | |
) |
This file contains 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
dependencies { | |
// ... | |
// Material Components for Android | |
implementation 'com.google.android.material:material:1.1.0' | |
// Optional: Circle Indicator (To fix the xml preview "Missing classes" error) | |
implementation 'me.relex:circleindicator:2.1.4' | |
This file contains 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
<org.imaginativeworld.whynotimagecarousel.ImageCarousel | |
android:id="@+id/carousel" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" /> |
This file contains 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
allprojects { | |
repositories { | |
// … | |
maven { url 'https://jitpack.io' } | |
} | |
} |
This file contains 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
[Desktop Entry] | |
Type=Application | |
Encoding=UTF-8 | |
Name=Shutdown | |
Comment=Shutdown the System | |
Icon=system-shutdown | |
Exec=shutdown -P now | |
Terminal=false | |
Categories=Utility |
This file contains 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
[Desktop Entry] | |
Categories=Development;IDE; | |
Comment=Everything you need to build on Android | |
Exec="/mnt/SourceCode/Software/Android/android-studio-rc/bin/studio.sh" %f | |
Icon=/mnt/SourceCode/Software/Android/android-studio-rc/bin/studio.png | |
Name=Android Studio RC | |
StartupWMClass=android-studio-rc | |
Terminal=false | |
Type=Application | |
Version=1.0 |
This file contains 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
carousel.carouselListener = object : CarouselListener { | |
override fun onCreateViewHolder( | |
layoutInflater: LayoutInflater, | |
parent: ViewGroup | |
): ViewBinding? { | |
// Here, our XML layout file name is custom_item_layout.xml. So our view binding generated class name is CustomItemLayoutBinding. | |
return CustomItemLayoutBinding.inflate(layoutInflater, parent, false) | |
} | |
override fun onBindViewHolder( |
This file contains 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
#--------------------------------------------------------------- | |
# Given an xxxhdpi image, this script | |
# creates different dpis resources and the necessary folders | |
# if they don't exist | |
# | |
# Place this script, as well as the source image, inside res | |
# folder and execute it passing the image filename as argument | |
# | |
# Example: | |
# ./drawables_dpis_creation.sh my_cool_xxhdpi_image.png |