list the excluded paths at excludedFolders activity

This commit is contained in:
tibbi 2017-02-26 20:38:18 +01:00
parent 6da347a55e
commit a3bf684aea
2 changed files with 29 additions and 0 deletions

View file

@ -1,11 +1,24 @@
package com.simplemobiletools.gallery.activities
import android.os.Bundle
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.gallery.R
import com.simplemobiletools.gallery.extensions.config
import kotlinx.android.synthetic.main.activity_excluded_folders.*
import kotlinx.android.synthetic.main.item_excluded_folder.view.*
class ExcludedFoldersActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_excluded_folders)
val folders = config.excludedFolders
for (folder in folders) {
layoutInflater.inflate(R.layout.item_excluded_folder, null, false).apply {
excluded_folder_title.text = folder
excluded_folders_holder.addView(this)
}
}
updateTextColors(excluded_folders_holder)
}
}

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/excluded_folder_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/medium_margin"
android:padding="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/excluded_folder_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"/>
</RelativeLayout>