Commit b1a74a27 authored by Grigory Fedorov's avatar Grigory Fedorov

ContactViewer: first large app bar implementation.

parent 2d5c2e87
......@@ -186,9 +186,9 @@ public class ContactViewer extends ManagedActivity implements
}
setTitle(getString(R.string.contact_viewer));
setContentView(R.layout.activity_preferences);
setContentView(R.layout.contact_viewer);
setSupportActionBar((Toolbar) findViewById(R.id.toolbar_default));
setSupportActionBar((Toolbar) findViewById(R.id.contact_viewer_toolbar));
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
......
......@@ -14,15 +14,15 @@
android:layout_width="48dip"
android:layout_height="48dip"
android:src="@drawable/ic_avatar_1"
android:layout_gravity="center_vertical"
android:layout_gravity="bottom"
/>
<LinearLayout
android:id="@+id/name_holder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="48dip"
android:orientation="vertical"
android:layout_gravity="center_vertical"
android:layout_gravity="bottom"
>
<TextView
android:id="@+id/name"
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.Toolbar xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/contact_viewer_toolbar"
android:layout_height="100dp"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
android:background="@color/background_material_dark"
android:elevation="8dp"
/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/preferences_activity_container"
/>
</LinearLayout>
\ No newline at end of file
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