Commit 10c48442 authored by Donald Shtjefni's avatar Donald Shtjefni

Merge pull request #19 from Mow3l/master

Graphic tweeks
parents 70ef57b8 56ca151b
......@@ -106,17 +106,20 @@ public class AlbumsActivity extends AppCompatActivity implements FolderChooserDi
public void initUiTweaks(){
/**** Nav Bar ****/
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().setStatusBarColor(getColor(R.color.status_bar));
SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
boolean NavBar = SP.getBoolean("nav_bar", false);
//boolean NightTheme = SP.getBoolean("set_theme", false);
if (NavBar)
getWindow().setNavigationBarColor(getColor(R.color.toolbar));
}
/**** ToolBar */
/**** ToolBar *****/
toolbar = (Toolbar) findViewById(R.id.my_awesome_toolbar);
setSupportActionBar(toolbar);
/**** Status Bar */
//getWindow().setStatusBarColor(getColor(R.color.status_bar));
getWindow().setStatusBarColor(getColor(R.color.toolbar));
PrimaryDrawerItem item1 = new PrimaryDrawerItem().withName("Default").withIcon(FontAwesome.Icon.faw_picture_o);
PrimaryDrawerItem item2 = new PrimaryDrawerItem().withName("Hidden").withIcon(FontAwesome.Icon.faw_eye_slash);
......@@ -456,11 +459,7 @@ public class AlbumsActivity extends AppCompatActivity implements FolderChooserDi
}
});
*/
runOnUiThread(new Runnable() {
public void run() {
albums.loadPreviewHiddenAlbums();
}
});
albums.loadPreviewHiddenAlbums();
//dialog.dismiss();
}
else {
......
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:theme="@style/Theme.AppCompat.NoActionBar"
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:card_view="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:theme="@style/Theme.AppCompat.NoActionBar"
android:background="@color/background_material_dark">
android:background="@color/background_material_dark">
<android.support.design.widget.AppBarLayout
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
......@@ -101,16 +101,27 @@
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/gridPhotos"
android:numColumns="3"
android:verticalSpacing="2dp"
android:horizontalSpacing="2dp"
android:clipToPadding="false"
android:layout_margin="2dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
/>
>
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/gridPhotos"
android:numColumns="3"
android:verticalSpacing="2dp"
android:horizontalSpacing="2dp"
android:clipToPadding="false"
android:background="@color/md_dark_background"
/>
<!--app:layout_behavior="@string/appbar_scrolling_view_behavior"-->
</android.support.v7.widget.CardView>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
......@@ -124,7 +135,6 @@
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_gravity="bottom|right"/>
<!--
app:layout_anchor="@id/app_bar_layout"
app:layout_anchorGravity="bottom|right"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment