diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2015-07-27 14:52:21 -0700 |
---|---|---|
committer | Raj Yengisetty <rajesh@cyngn.com> | 2015-07-27 14:52:21 -0700 |
commit | 8847eb7a1ddb0b19c0c79de6d867444a68654874 (patch) | |
tree | 26b692977e92d5821165a295e08d8d081d05f18d /res | |
parent | 8d355bd41dcb91c7bb1da5a31755381b49fa663e (diff) | |
download | packages_apps_Trebuchet-staging/cmhome.tar.gz packages_apps_Trebuchet-staging/cmhome.tar.bz2 packages_apps_Trebuchet-staging/cmhome.zip |
Move CMHome into Trebuchetstaging/cmhome
Change-Id: I781d10319d183cfb6acca5926ebf64920caf570e
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-xxhdpi/persona2.png | bin | 0 -> 333849 bytes | |||
-rw-r--r-- | res/layout/basic_dashclock_card_inner.xml | 13 | ||||
-rw-r--r-- | res/layout/calendar_card.xml | 41 | ||||
-rw-r--r-- | res/layout/calendar_event_item.xml | 70 | ||||
-rw-r--r-- | res/layout/card_image_layout.xml | 88 | ||||
-rw-r--r-- | res/layout/card_status_header_inner.xml | 28 | ||||
-rw-r--r-- | res/layout/contact_card.xml | 62 | ||||
-rw-r--r-- | res/layout/dashclock_card_expand_inner_content.xml | 33 | ||||
-rw-r--r-- | res/layout/dashclock_card_inner_content.xml | 34 | ||||
-rw-r--r-- | res/layout/dashclock_icon_thumbnail_layout.xml | 9 | ||||
-rw-r--r-- | res/layout/home_layout.xml | 57 | ||||
-rw-r--r-- | res/layout/list_card_image_layout.xml | 30 | ||||
-rw-r--r-- | res/layout/news_card.xml | 62 | ||||
-rw-r--r-- | res/layout/news_card_first.xml | 73 | ||||
-rw-r--r-- | res/layout/simple_message_card_inner_content.xml | 27 | ||||
-rw-r--r-- | res/layout/status_card_inner_content.xml | 19 | ||||
-rw-r--r-- | res/values/colors.xml | 22 | ||||
-rw-r--r-- | res/values/dimens.xml | 4 | ||||
-rw-r--r-- | res/values/strings.xml | 78 | ||||
-rw-r--r-- | res/values/styles.xml | 23 |
20 files changed, 773 insertions, 0 deletions
diff --git a/res/drawable-xxhdpi/persona2.png b/res/drawable-xxhdpi/persona2.png Binary files differnew file mode 100644 index 000000000..4b182d1f6 --- /dev/null +++ b/res/drawable-xxhdpi/persona2.png diff --git a/res/layout/basic_dashclock_card_inner.xml b/res/layout/basic_dashclock_card_inner.xml new file mode 100644 index 000000000..7b989e4d7 --- /dev/null +++ b/res/layout/basic_dashclock_card_inner.xml @@ -0,0 +1,13 @@ +<?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"> + + <TextView + android:id="@+id/card_main_inner_simple_title" + android:layout_alignParentLeft="true" + android:layout_marginLeft="10dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +</RelativeLayout> diff --git a/res/layout/calendar_card.xml b/res/layout/calendar_card.xml new file mode 100644 index 000000000..814cb2c32 --- /dev/null +++ b/res/layout/calendar_card.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:card_view="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:id="@+id/calendar_card" + android:layout_marginLeft="14dp" + android:layout_marginRight="14dp" + android:layout_marginTop="20dp"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/calendar_card_title" + android:textSize="16sp" + android:layout_marginStart="2dp" + android:fontFamily="sans-serif-light" + android:textColor="@color/home_next_text_divider" + android:layout_marginBottom="6dp"/> + + <android.support.v7.widget.CardView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/item_card" + card_view:cardElevation="2dp" + card_view:cardCornerRadius="3dp" + card_view:cardUseCompatPadding="true" + card_view:cardBackgroundColor="#bb36474f"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:id="@+id/event_container" + android:paddingTop="8dp" + android:paddingBottom="8dp"/> + + </android.support.v7.widget.CardView> + +</LinearLayout> diff --git a/res/layout/calendar_event_item.xml b/res/layout/calendar_event_item.xml new file mode 100644 index 000000000..403b0767c --- /dev/null +++ b/res/layout/calendar_event_item.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="88dp" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingTop="4dp" + android:paddingBottom="4dp"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="end" + android:textSize="24sp" + android:fontFamily="sans-serif-light" + android:id="@+id/start_time" + android:textColor="@color/calendar_text_primary"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="end" + android:textSize="12sp" + android:layout_marginTop="-4dp" + android:fontFamily="sans-serif-light" + android:id="@+id/end_time" + android:textColor="@color/calendar_text_secondary"/> + + </LinearLayout> + + <View + android:layout_width="1dp" + android:layout_height="match_parent" + android:background="@color/calendar_text_secondary" + android:layout_marginLeft="12dp" + android:layout_marginRight="12dp"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingTop="4dp"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="start" + android:textSize="18sp" + android:id="@+id/event_title" + android:layout_marginTop="1dp" + android:fontFamily="sans-serif-light" + android:textColor="@color/calendar_text_primary"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="start" + android:textSize="12sp" + android:layout_marginTop="2dp" + android:id="@+id/event_location" + android:fontFamily="sans-serif-light" + android:textColor="@color/calendar_text_secondary"/> + + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/card_image_layout.xml b/res/layout/card_image_layout.xml new file mode 100644 index 000000000..c887fb7c6 --- /dev/null +++ b/res/layout/card_image_layout.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- + ~ ******************************************************************************* + ~ Copyright (c) 2013-2014 Gabriele Mariotti. + ~ Modified 2014 for CyanogenMod. + ~ + ~ 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" + xmlns:card="http://schemas.android.com/apk/res-auto" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <!-- Card visible layout --> + <LinearLayout + android:id="@+id/card_main_layout" + style="@style/card.main_layout" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + > + + <!-- Compound view for Header Card + If you want to customize this element use attr card:card_header_layout_resourceID + You can also use your CardHeader subclass--> + <it.gmariotti.cardslib.library.view.component.CardHeaderView + style="@style/card.header_outer_layout" + android:id="@+id/card_header_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + + <LinearLayout + android:id="@+id/card_thumb_and_content_layout" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <it.gmariotti.cardslib.library.view.component.CardThumbnailView + style="@style/card_thumbnail_outer_layout" + android:id="@+id/card_thumbnail_layout" + card:card_thumbnail_layout_resourceID="@layout/dashclock_icon_thumbnail_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + + <!-- Main Content View --> + <FrameLayout + android:id="@+id/card_main_content_layout" + style="@style/card.content_outer_layout" + android:layout_marginBottom="10dp" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + + </LinearLayout> + + </LinearLayout> + + <!-- Compound view for Shadow + If you want to customize this element use attr card:card_shadow_layout_resourceID --> + <it.gmariotti.cardslib.library.view.component.CardShadowView + style="@style/card.shadow_outer_layout" + android:id="@+id/card_shadow_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + + <!-- Expand layout. You can customize this element with your CardExpand class --> + <FrameLayout + android:id="@+id/card_content_expand_layout" + style="@style/card.main_contentExpand" + android:layout_width="match_parent" + android:layout_height="wrap_content" + > + </FrameLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/card_status_header_inner.xml b/res/layout/card_status_header_inner.xml new file mode 100644 index 000000000..bec9b0c24 --- /dev/null +++ b/res/layout/card_status_header_inner.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:orientation="vertical" + android:padding="5dp" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + tools:text="CyanogenMod" + android:id="@+id/status_card_title" + style="@style/simple_message_card_inner_title_text" + android:ellipsize="end" + android:maxLines="2" + android:layout_marginBottom="5dp" + android:layout_marginRight="10dp" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + + <TextView + tools:text="One day ago" + android:id="@+id/status_card_date" + android:textStyle="italic" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/contact_card.xml b/res/layout/contact_card.xml new file mode 100644 index 000000000..367e79f84 --- /dev/null +++ b/res/layout/contact_card.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:id="@+id/contact_card" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:layout_marginTop="20dp"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/contact_card_title" + android:textSize="16sp" + android:fontFamily="sans-serif-light" + android:textColor="@color/home_next_text_divider" + android:layout_marginBottom="12dp"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <de.hdodenhof.circleimageview.CircleImageView + android:layout_width="64dp" + android:layout_height="64dp" + android:id="@+id/contact_image_one"/> + + <View + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1"/> + + <de.hdodenhof.circleimageview.CircleImageView + android:layout_width="64dp" + android:layout_height="64dp" + android:id="@+id/contact_image_two"/> + + <View + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1"/> + + <de.hdodenhof.circleimageview.CircleImageView + android:layout_width="64dp" + android:layout_height="64dp" + android:id="@+id/contact_image_three"/> + + <View + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1"/> + + <de.hdodenhof.circleimageview.CircleImageView + android:layout_width="64dp" + android:layout_height="64dp" + android:id="@+id/contact_image_four"/> + + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/dashclock_card_expand_inner_content.xml b/res/layout/dashclock_card_expand_inner_content.xml new file mode 100644 index 000000000..bccc03b68 --- /dev/null +++ b/res/layout/dashclock_card_expand_inner_content.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:orientation="horizontal" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp" + android:paddingLeft="10dp" + android:paddingRight="10dp" + style="@style/card" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + tools:text="Action" + android:layout_width="0px" + android:layout_height="50dp" + android:id="@+id/dashclock_card_expand_action_button" + android:textColor="@color/card_expand_title_color" + android:text="@string/dashclock_card_expand_action" + android:textSize="20sp" + android:layout_weight="1" + /> + <Button + tools:text="Settings" + android:layout_width="0px" + android:layout_height="50dp" + android:id="@+id/dashclock_card_expand_settings_button" + android:textColor="@color/card_expand_title_color" + android:text="@string/dashclock_card_expand_settings" + android:textSize="20sp" + android:layout_weight="1" + /> +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/dashclock_card_inner_content.xml b/res/layout/dashclock_card_inner_content.xml new file mode 100644 index 000000000..9c02ff9cf --- /dev/null +++ b/res/layout/dashclock_card_inner_content.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:orientation="vertical" + android:gravity="top" + style="@style/card" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + tools:text="Gmail" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/dashclock_card_inner_title_text" + style="@style/card.header_simple_title" + android:textSize="20sp" + /> + + <TextView + tools:text="42 new messages" + android:id="@+id/dashclock_card_inner_status_text" + style="@style/dashclock_card_inner_status_text" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + + <TextView + tools:text="This is an expanded body message for testing purposes." + android:id="@+id/dashclock_card_inner_body_text" + style="@style/dashclock_card_inner_body_text" + android:lines="4" + android:ellipsize="end" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/dashclock_icon_thumbnail_layout.xml b/res/layout/dashclock_icon_thumbnail_layout.xml new file mode 100644 index 000000000..2e52b3b68 --- /dev/null +++ b/res/layout/dashclock_icon_thumbnail_layout.xml @@ -0,0 +1,9 @@ +<ImageView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/card_thumbnail_image" + android:layout_width="100dp" + android:background="@android:color/black" + android:layout_height="100dp" + android:padding="10dp" + android:layout_margin="10dp" + style="@style/card_thumbnail_image"/>
\ No newline at end of file diff --git a/res/layout/home_layout.xml b/res/layout/home_layout.xml new file mode 100644 index 000000000..04f7da143 --- /dev/null +++ b/res/layout/home_layout.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. + --> + +<org.cyanogenmod.launcher.home.HomeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:card="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:orientation="vertical" + android:layout_marginBottom="16dp"> + + <!--<ImageView--> + <!--android:id="@+id/header"--> + <!--android:layout_width="match_parent"--> + <!--android:layout_height="150dp"--> + <!--android:src="@drawable/bg_header"--> + <!--android:scaleType="centerCrop"/>--> + + <!--<FrameLayout--> + <!--android:layout_width="match_parent"--> + <!--android:layout_height="match_parent">--> + + <!--<it.gmariotti.cardslib.library.view.CardListView--> + <!--android:layout_marginTop="10dp"--> + <!--android:layout_width="match_parent"--> + <!--android:layout_height="match_parent"--> + <!--android:id="@+id/cm_home_cards_list"--> + <!--card:list_card_layout_resourceID="@layout/list_card_image_layout"/>--> + + <!--<include layout="@layout/list_card_undo_message"--> + <!--android:layout_height="45dp"--> + <!--android:layout_width="300dp"--> + <!--android:layout_gravity="bottom|center_horizontal"--> + <!--android:layout_marginBottom="45dp"/>--> + + <!--</FrameLayout>--> + + <android.support.v7.widget.RecyclerView + android:id="@+id/main_recycler_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:scrollbars="vertical"/> + +</org.cyanogenmod.launcher.home.HomeLayout>
\ No newline at end of file diff --git a/res/layout/list_card_image_layout.xml b/res/layout/list_card_image_layout.xml new file mode 100644 index 000000000..c9abbaa44 --- /dev/null +++ b/res/layout/list_card_image_layout.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> + + <!-- + ~ ******************************************************************************* + ~ Copyright (c) 2013-2014 Gabriele Mariotti. + ~ Modified 2014 for CyanogenMod. + ~ + ~ 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. + ~ ***************************************************************************** + --> + +<it.gmariotti.cardslib.library.view.CardView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:card="http://schemas.android.com/apk/res-auto" + android:id="@+id/list_cardId" + android:layout_width="match_parent" + android:layout_height="wrap_content" + style="@style/list_card.thumbnail" + card:card_layout_resourceID="@layout/card_image_layout" +/> diff --git a/res/layout/news_card.xml b/res/layout/news_card.xml new file mode 100644 index 000000000..2ef51a3f7 --- /dev/null +++ b/res/layout/news_card.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:card_view="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/news_card" + android:layout_marginLeft="14dp" + android:layout_marginRight="14dp" + android:layout_marginTop="4dp"> + + <android.support.v7.widget.CardView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/item_card" + card_view:cardCornerRadius="3dp" + card_view:cardElevation="2dp" + card_view:cardUseCompatPadding="true" + card_view:cardBackgroundColor="#bb36474f"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="134dp" + android:orientation="horizontal"> + + <ImageView + android:layout_width="88dp" + android:layout_height="match_parent" + android:scaleType="centerCrop" + android:id="@+id/news_image"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="12dp"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="18sp" + android:textColor="@color/calendar_text_primary" + android:fontFamily="sans-serif-light" + android:maxLines="4" + android:layout_weight="1" + android:id="@+id/news_title"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="12sp" + android:textColor="@color/calendar_text_secondary" + android:id="@+id/news_source_time" + android:fontFamily="sans-serif-light" + android:layout_weight="0"/> + + </LinearLayout> + + </LinearLayout> + + </android.support.v7.widget.CardView> + +</LinearLayout> diff --git a/res/layout/news_card_first.xml b/res/layout/news_card_first.xml new file mode 100644 index 000000000..d63039db1 --- /dev/null +++ b/res/layout/news_card_first.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:card_view="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:id="@+id/news_card" + android:layout_marginLeft="14dp" + android:layout_marginRight="14dp" + android:layout_marginTop="20dp"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/news_card_title" + android:textSize="16sp" + android:layout_marginStart="2dp" + android:fontFamily="sans-serif-light" + android:textColor="@color/home_next_text_divider" + android:layout_marginBottom="12dp"/> + + <android.support.v7.widget.CardView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/item_card" + card_view:cardCornerRadius="3dp" + card_view:cardElevation="2dp" + card_view:cardUseCompatPadding="true" + card_view:cardBackgroundColor="#bb36474f"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="134dp" + android:orientation="horizontal"> + + <ImageView + android:layout_width="88dp" + android:layout_height="match_parent" + android:scaleType="centerCrop" + android:id="@+id/news_image"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="12dp"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="18sp" + android:textColor="@color/calendar_text_primary" + android:fontFamily="sans-serif-light" + android:maxLines="4" + android:layout_weight="1" + android:id="@+id/news_title"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="12sp" + android:textColor="@color/calendar_text_secondary" + android:id="@+id/news_source_time" + android:fontFamily="sans-serif-light" + android:layout_weight="0"/> + + </LinearLayout> + + </LinearLayout> + + </android.support.v7.widget.CardView> + +</LinearLayout> diff --git a/res/layout/simple_message_card_inner_content.xml b/res/layout/simple_message_card_inner_content.xml new file mode 100644 index 000000000..c2b43ed6b --- /dev/null +++ b/res/layout/simple_message_card_inner_content.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:orientation="vertical" + android:gravity="top" + style="@style/card" + android:layout_margin="15dp" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + tools:text="Testing Title" + android:id="@+id/simple_message_card_title" + style="@style/simple_message_card_inner_title_text" + android:lines="1" + android:ellipsize="end" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + + <TextView + tools:text="This is an example message for testing purposes." + android:id="@+id/simple_message_card_text" + style="@style/simple_message_card_inner_body_text" + android:layout_marginTop="5dp" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/status_card_inner_content.xml b/res/layout/status_card_inner_content.xml new file mode 100644 index 000000000..82cdc50b1 --- /dev/null +++ b/res/layout/status_card_inner_content.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:orientation="vertical" + android:gravity="top" + style="@style/card" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + tools:text="Cards are awesome!!" + android:id="@+id/status_card_status_text" + style="@style/simple_message_card_inner_body_text" + android:layout_marginTop="5dp" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> +</LinearLayout>
\ No newline at end of file diff --git a/res/values/colors.xml b/res/values/colors.xml index 901604d70..c6fa69789 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -59,4 +59,26 @@ <color name="aftv_shadowColor">#b0000000</color> <color name="folder_background">#141a1e</color> + + <!-- CM Home --> + <!-- Card Color --> + <color name="card_background">#FFF</color> + <color name="icon_background_orange">#F9A43E</color> + <color name="icon_background_purple">#AD62A7</color> + <color name="icon_background_yellow">#E4C62E</color> + <color name="icon_background_pink">#F16364</color> + <color name="icon_background_blue">#2093CD</color> + + <array name="icon_background_colors"> + <item>@color/icon_background_orange</item> + <item>@color/icon_background_purple</item> + <item>@color/icon_background_yellow</item> + <item>@color/icon_background_pink</item> + <item>@color/icon_background_blue</item> + </array> + + <color name="home_next_text_divider">#FFF</color> + <color name="calendar_text_primary">#FFF</color> + <color name="calendar_text_secondary">#7cffffff</color> + </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 97a12abdc..d9dde980b 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -145,4 +145,8 @@ <!-- Folder open animation --> <integer name="folder_translate_y_dist">300</integer> <integer name="folder_icon_translate_y_dist">100</integer> + + <!-- CM Home --> + <dimen name="card_background_default_radius">2dip</dimen> + </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index adaa25a04..c7e6952da 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -308,4 +308,82 @@ s --> <string name="abandoned_promise_explanation">The app for this icon isn\'t installed. You can remove it, or search for the app and install it manually. </string> + + <!-- CM Home --> + <!-- Permissions --> + <string name="permission_label_read_extension_data">request DashClock extension data</string> + <string name="permission_desc_read_extension_data">Allows the app to request DashClock extension data</string> + + <!-- CM Home API permissions --> + <string name="permission_desc_feed_host">Allows the app to read and write to any application + that publishes cards to CM Home</string> + <string name="permission_label_feed_host">publish and unpublish cards from CM Home</string> + <string name="permission_desc_feed_publish">Allows the app to add new cards to CM Home</string> + <string name="permission_label_feed_publish">publish cards to launcher CM Home</string> + + <string name="dashclock_activity_not_found_toast_message">The intended Activity for this extension was not found. Please contact the developer for more info.</string> + <string name="dashclock_card_expand_action">Action</string> + <string name="dashclock_card_expand_settings">Settings</string> + <string name="no_extensions_card_title">Get some extensions!</string> + <string name="no_extensions_card_body">Looks like you don\'t have any installed extensions. CM Home currently supports DashClock extensions, so go get some and check back here!</string> + + <string name="contact_card_title">Recent Contacts</string> + <string name="calendar_card_title">Today</string> + <string name="news_card_title">News</string> + + + <string-array name="contact_card"> + <item name="uri_1">URI one</item> + <item name="uri_2">URI two</item> + <item name="uri_3">URI three</item> + <item name="uri_4">URI four</item> + </string-array> + + <string-array name="calendar_card"> + <item name="start_time">1437850800000</item> + <item name="end_time">1437811200000</item> + <item name="title">Stand-up</item> + <item name="location">Conference Room</item> + </string-array> + + <string-array name="news_1"> + <item name="news_image_url">http://slidell-independent.com/wp-content/uploads/2013/01/wsne.jpg</item> + <item name="news_title">Fiat recalls 1.4 million vehicles after hack of Jeep Cherokee</item> + <item name="source">Los Angeles Times</item> + <item name="time">1437834180000</item> + <item name="url">www.google.com</item> + </string-array> + + <string-array name="news_2"> + <item name="news_image_url">http://slidell-independent.com/wp-content/uploads/2013/01/wsne.jpg</item> + <item name="news_title">Fiat recalls 1.4 million vehicles after hack of Jeep Cherokee</item> + <item name="source">Los Angeles Times</item> + <item name="time">1437834180000</item> + <item name="url">www.google.com</item> + </string-array> + + <string-array name="news_3"> + <item name="news_image_url">http://slidell-independent.com/wp-content/uploads/2013/01/wsne.jpg</item> + <item name="news_title">Fiat recalls 1.4 million vehicles after hack of Jeep Cherokee</item> + <item name="source">Los Angeles Times</item> + <item name="time">1437834180000</item> + <item name="url">www.google.com</item> + </string-array> + + <string-array name="news_4"> + <item name="news_image_url">http://slidell-independent.com/wp-content/uploads/2013/01/wsne.jpg</item> + <item name="news_title">Fiat recalls 1.4 million vehicles after hack of Jeep Cherokee</item> + <item name="source">Los Angeles Times</item> + <item name="time">1437834180000</item> + <item name="url">www.google.com</item> + </string-array> + + <string-array name="spoof_data"> + <item>@array/contact_card</item> + <item>@array/calendar_card</item> + <item>@array/news_1</item> + <item>@array/news_2</item> + <item>@array/news_3</item> + <item>@array/news_4</item> + </string-array> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index bb0401868..02c98b96b 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -138,4 +138,27 @@ <style name="SearchButton.WithPaddingStart"> <item name="android:paddingLeft">8dp</item> </style> + + <!-- CM Home --> + <style name="dashclock_card_inner_status_text"> + <item name="android:textSize">14sp</item> + <item name="android:textColor">@android:color/darker_gray</item> + <item name="android:layout_marginLeft">@dimen/card_header_simple_title_margin_left</item> + </style> + + <style name="dashclock_card_inner_body_text"> + <item name="android:textSize">14sp</item> + <item name="android:layout_marginLeft">@dimen/card_header_simple_title_margin_left</item> + <item name="android:textColor">@android:color/black</item> + </style> + + <style name="simple_message_card_inner_title_text"> + <item name="android:textSize">20sp</item> + <item name="android:textColor">@android:color/black</item> + </style> + <style name="simple_message_card_inner_body_text"> + <item name="android:textSize">14sp</item> + <item name="android:textColor">@android:color/black</item> + </style> + </resources> |