Last active
August 29, 2015 14:11
-
-
Save frogermcs/c587f6f76253f8a1547a to your computer and use it in GitHub Desktop.
InstaMaterial source files - post 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/root" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity"> | |
<!--...--> | |
<include | |
android:id="@+id/toolbar" | |
layout="@layout/view_feed_toolbar" /> | |
<!--...--> | |
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- styles.xml--> | |
<resources> | |
<!--...--> | |
<style name="ContextMenuButton"> | |
<item name="android:layout_width">match_parent</item> | |
<item name="android:layout_height">wrap_content</item> | |
<item name="android:background">@drawable/btn_context_menu</item> | |
<item name="android:gravity">left|center_vertical</item> | |
<item name="android:paddingLeft">20dp</item> | |
<item name="android:paddingRight">20dp</item> | |
<item name="android:textColor">?attr/colorPrimary</item> | |
<item name="android:textSize">14sp</item> | |
</style> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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/tools" | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:background="?attr/colorPrimary" | |
android:elevation="@dimen/default_elevation" | |
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | |
<ImageView | |
android:id="@+id/ivLogo" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_gravity="center" | |
android:scaleType="center" | |
android:src="@drawable/img_toolbar_logo" /> | |
</android.support.v7.widget.Toolbar> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment