Friday, September 11, 2015

ResourceNestingExample

ResourceNestingExample - Hallo sahabat Google Android Developer Tutorial, Pada Artikel yang anda baca kali ini dengan judul ResourceNestingExample, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : ResourceNestingExample
link : ResourceNestingExample

Baca juga


ResourceNestingExample

source: https://github.com/eskimoapps/ResourceNestingExample/blob/master/README.md

ResourceNestingExample

This is a demo app for android that shows how to create nested resource directories using the gradle build system.
Screenshot
The trick to nesting resource folders is to use gradle's ability to merge multiple resource folders, and set the res folder as well as the nested subfolders in the sourceSets block.
The quirk is that you can't declare a container resource folder before you declare that folder's child resource folders.
Below is the sourceSets block from the build.gradle file. Notice that the subfolders are declared first.
sourceSets {
main {
res.srcDirs = [
'src/main/res/layouts/layouts_category2',
'src/main/res/layouts',
'src/main/res'
]
}
}


Demikianlah Artikel ResourceNestingExample

Sekianlah artikel ResourceNestingExample kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.

Anda sekarang membaca artikel ResourceNestingExample dengan alamat link https://googleandroiddevelopertutorial.blogspot.com/2015/09/resourcenestingexample.html

Artikel Terkait

ResourceNestingExample
4/ 5
Oleh

Berlangganan

Suka dengan artikel di atas? Silakan berlangganan gratis via email