add a new activity for managing excluded folders

This commit is contained in:
tibbi 2017-02-26 19:44:25 +01:00
parent 46f99fd1c0
commit 6da347a55e
4 changed files with 32 additions and 1 deletions

View file

@ -96,6 +96,11 @@
android:configChanges="orientation|keyboardHidden|screenSize" android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/FullScreenTheme"/> android:theme="@style/FullScreenTheme"/>
<activity
android:name=".activities.ExcludedFoldersActivity"
android:label="@string/excluded_folders"
android:parentActivityName=".activities.SettingsActivity"/>
<activity <activity
android:name=".activities.PhotoActivity" android:name=".activities.PhotoActivity"
android:configChanges="orientation|keyboardHidden|screenSize" android:configChanges="orientation|keyboardHidden|screenSize"

View file

@ -0,0 +1,11 @@
package com.simplemobiletools.gallery.activities
import android.os.Bundle
import com.simplemobiletools.gallery.R
class ExcludedFoldersActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_excluded_folders)
}
}

View file

@ -1,5 +1,6 @@
package com.simplemobiletools.gallery.activities package com.simplemobiletools.gallery.activities
import android.content.Intent
import android.os.Bundle import android.os.Bundle
import com.simplemobiletools.commons.extensions.updateTextColors import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.R
@ -36,7 +37,7 @@ class SettingsActivity : SimpleActivity() {
private fun setupManageExcludedFolders() { private fun setupManageExcludedFolders() {
settings_manage_excluded_folders_holder.setOnClickListener { settings_manage_excluded_folders_holder.setOnClickListener {
startActivity(Intent(this, ExcludedFoldersActivity::class.java))
} }
} }

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/excluded_folders_scrollview"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/excluded_folders_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"/>
</ScrollView>