diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-04-06 20:08:31 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-04-06 20:08:31 +0200 |
commit | 58572ba858835437011d2f450bd90fb93455b5c9 (patch) | |
tree | a134d01a5202f7d457b38840640d4823b188d329 /src/main/res | |
parent | 1e1f7f419ecbe9db44acb84fd06c7b889d1af475 (diff) |
basic overlay for avatar as 'logo' added to action bar
Diffstat (limited to 'src/main/res')
-rw-r--r-- | src/main/res/drawable/actionbar_space_between_icon_and_title.xml | 8 | ||||
-rw-r--r-- | src/main/res/layout/logo_view.xml | 14 | ||||
-rw-r--r-- | src/main/res/values/themes.xml | 12 |
3 files changed, 31 insertions, 3 deletions
diff --git a/src/main/res/drawable/actionbar_space_between_icon_and_title.xml b/src/main/res/drawable/actionbar_space_between_icon_and_title.xml new file mode 100644 index 00000000..53285bc0 --- /dev/null +++ b/src/main/res/drawable/actionbar_space_between_icon_and_title.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<layer-list + xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:drawable="@android:color/transparent" + android:right="58dp" + android:id="@+id/icon_placeholder"/> +</layer-list>
\ No newline at end of file diff --git a/src/main/res/layout/logo_view.xml b/src/main/res/layout/logo_view.xml new file mode 100644 index 00000000..e9cc24c7 --- /dev/null +++ b/src/main/res/layout/logo_view.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <ImageView + android:id="@+id/logoViewAvatar" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_profile" + android:scaleType="center" + android:layout_marginLeft="10dip" + /> +</RelativeLayout>
\ No newline at end of file diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index 67e0a5ee..142499f4 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -43,10 +43,16 @@ </style> <style name="ConversationsActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"> - <item name="android:background">@color/primary</item> - <item name="android:backgroundStacked">@color/primary_dark</item> + <item name="android:background">@android:color/transparent</item> + <!--item name="android:backgroundStacked">@color/primary_dark</item--> <item name="android:displayOptions">showHome|homeAsUp|showTitle</item> - <item name="android:icon">@android:color/transparent</item> + <item name="android:icon">@drawable/actionbar_space_between_icon_and_title</item> + <item name="android:windowActionBarOverlay">true</item> + <item name="android:titleTextStyle">@style/ConversationsPlusTitleTextStyle</item> + </style> + + <style name="ConversationsPlusTitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Inverse"> + <item name="android:textSize">12sp</item> </style> <style name="ConversationsActionBarWidget" parent="android:Theme.Holo.Light"> |