Add Material Design
This commit is contained in:
parent
a6167b4ef9
commit
16726f4199
3 changed files with 52 additions and 0 deletions
9
News-Android-App/src/main/res/layout/toolbar_layout.xml
Normal file
9
News-Android-App/src/main/res/layout/toolbar_layout.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v7.widget.Toolbar
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/colorPrimaryDark"
|
||||
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />
|
10
News-Android-App/src/main/res/values-v21/themes.xml
Normal file
10
News-Android-App/src/main/res/values-v21/themes.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppTheme" parent="AppTheme.Base">
|
||||
<item name="android:windowContentTransitions">true</item>
|
||||
<item name="android:windowAllowEnterTransitionOverlap">true</item>
|
||||
<item name="android:windowAllowReturnTransitionOverlap">true</item>
|
||||
<item name="android:windowSharedElementEnterTransition">@android:transition/move</item>
|
||||
<item name="android:windowSharedElementExitTransition">@android:transition/move</item>
|
||||
</style>
|
||||
</resources>
|
33
News-Android-App/src/main/res/values/themes.xml
Normal file
33
News-Android-App/src/main/res/values/themes.xml
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppTheme" parent="AppTheme.Base"/>
|
||||
|
||||
<style name="AppTheme.Base" parent="Theme.AppCompat">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimary</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
|
||||
<item name="dividerLineColor">#1effffff</item>
|
||||
<item name="rssItemListBackground">@color/material_grey_900</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="AppThemeLight" parent="AppThemeLight.Base"/>
|
||||
|
||||
<style name="AppThemeLight.Base" parent="Theme.AppCompat.Light">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimary</item>
|
||||
|
||||
<item name="android:textColor">#000</item>
|
||||
<!-- <item name="android:textColorSecondary">@color/slider_listview_text_color_dark_theme</item> -->
|
||||
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
|
||||
<item name="dividerLineColor">#1e000000</item>
|
||||
<item name="rssItemListBackground">#ffdedede</item>
|
||||
</style>
|
||||
|
||||
|
||||
</resources>
|
Loading…
Reference in a new issue