aboutsummaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/home_fragment.xml14
-rw-r--r--res/layout/mstaru_list.xml78
-rw-r--r--res/layout/mstaru_row.xml50
-rw-r--r--res/layout/navigation.xml3
4 files changed, 141 insertions, 4 deletions
diff --git a/res/layout/home_fragment.xml b/res/layout/home_fragment.xml
index bc65fec1..4be9184d 100644
--- a/res/layout/home_fragment.xml
+++ b/res/layout/home_fragment.xml
@@ -163,15 +163,23 @@
android:gravity="center" />
<!-- A CardView that contains a TextView -->
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_marginBottom="15dp"
+ android:background="@color/black_11"/>
+
+ <include layout="@layout/mstaru_list" />
+
<android.support.v7.widget.CardView
android:id="@+id/blank_card"
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="192dp"
android:layout_margin="8dp"
- card_view:cardCornerRadius="4dp">
-
- </android.support.v7.widget.CardView>
+ android:visibility="gone"
+ card_view:cardCornerRadius="4dp" />
</LinearLayout>
diff --git a/res/layout/mstaru_list.xml b/res/layout/mstaru_list.xml
new file mode 100644
index 00000000..d4b870f6
--- /dev/null
+++ b/res/layout/mstaru_list.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/mstaru"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="16dp"
+ android:layout_marginTop="15dp"
+ android:layout_marginBottom="17dp"
+ android:textColor="@color/black_46"
+ android:textSize="14sp"
+ android:text="@string/frequent" />
+
+ <LinearLayout android:id="@+id/mstaru_list"
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:visibility="gone">
+
+ <include layout="@layout/mstaru_row" />
+
+ <include layout="@layout/mstaru_row" />
+
+ <include layout="@layout/mstaru_row" />
+
+ <include layout="@layout/mstaru_row" />
+
+ <include layout="@layout/mstaru_row" />
+ </LinearLayout>
+
+ <LinearLayout android:id="@+id/mstaru_empty"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="49dp"
+ android:layout_marginBottom="61dp"
+ android:visibility="visible">
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/circle_large"
+ android:src="@drawable/ic_frequent_placeholder"
+ android:tint="@color/black_26"
+ android:backgroundTint="@color/off_white"
+ android:scaleType="center"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginTop="19dp"
+ android:textColor="@color/black_26"
+ android:text="@string/access_the_files_you_use_the_most_here"/>
+ </LinearLayout>
+</LinearLayout>
diff --git a/res/layout/mstaru_row.xml b/res/layout/mstaru_row.xml
new file mode 100644
index 00000000..fde4e3d2
--- /dev/null
+++ b/res/layout/mstaru_row.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/material_selector">
+
+ <ImageView android:id="@+id/file_image"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:layout_margin="16dp"
+ android:scaleType="centerCrop"/>
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_toRightOf="@+id/file_image"
+ android:layout_toLeftOf="@+id/file_details"
+ android:layout_centerVertical="true">
+
+ <TextView android:id="@+id/file_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="left|center_vertical"
+ android:textColor="@color/mstaru_primary"
+ android:textSize="16sp"
+ android:singleLine="true"
+ android:ellipsize="end"/>
+
+ <TextView android:id="@+id/file_parent"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="left|center_vertical"
+ android:textColor="@color/mstaru_secondary"
+ android:textSize="14sp"
+ android:singleLine="true"
+ android:ellipsize="middle"/>
+ </LinearLayout>
+
+ <ImageView android:id="@+id/file_details"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:padding="18dp"
+ android:src="@drawable/ic_details"/>
+
+</RelativeLayout> \ No newline at end of file
diff --git a/res/layout/navigation.xml b/res/layout/navigation.xml
index 3d849d0c..5ba80b01 100644
--- a/res/layout/navigation.xml
+++ b/res/layout/navigation.xml
@@ -20,7 +20,8 @@
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:fitsSystemWindows="true">
+ android:fitsSystemWindows="true"
+ android:background="@color/navigation_drawer_background">
<include layout="@layout/home_fragment"
android:fitsSystemWindows="false" />