major elements of new app design implemented
caution: not fully functional, several features missing/crashing
BIN
src/MaterialTest2/Resources/drawable-xhdpi/ic_dashboard.png
Normal file
|
After Width: | Height: | Size: 132 B |
BIN
src/MaterialTest2/Resources/drawable-xhdpi/ic_discuss.png
Normal file
|
After Width: | Height: | Size: 247 B |
BIN
src/MaterialTest2/Resources/drawable-xhdpi/ic_done.png
Normal file
|
After Width: | Height: | Size: 297 B |
BIN
src/MaterialTest2/Resources/drawable-xhdpi/ic_event.png
Normal file
|
After Width: | Height: | Size: 225 B |
BIN
src/MaterialTest2/Resources/drawable-xhdpi/ic_forum.png
Normal file
|
After Width: | Height: | Size: 226 B |
BIN
src/MaterialTest2/Resources/drawable-xhdpi/ic_headset.png
Normal file
|
After Width: | Height: | Size: 488 B |
BIN
src/MaterialTest2/Resources/drawable-xhdpi/ic_menu.png
Normal file
|
After Width: | Height: | Size: 135 B |
69
src/MaterialTest2/Resources/layout/Mainold.axml
Normal file
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:local="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/drawerLayout"
|
||||
android:layout_height="match_parent">
|
||||
<!-- activity view -->
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<include
|
||||
android:id="@+id/toolbar2"
|
||||
layout="@layout/toolbar2" />
|
||||
<ScrollView xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:id="@+id/main_content">
|
||||
<Button
|
||||
android:id="@+id/MyButton"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/Hello" />
|
||||
<CheckBox
|
||||
android:text="CheckBox"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/checkBox1" />
|
||||
<ImageView
|
||||
android:id="@+id/imglogo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/ic_keepass2android" />
|
||||
<EditText
|
||||
android:inputType="textEmailAddress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/editText1" />
|
||||
<ListView
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:choiceMode="singleChoice" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
<!-- navigation drawer -->
|
||||
<RelativeLayout
|
||||
android:layout_gravity="left|start"
|
||||
android:layout_width="match_parent"
|
||||
android:background="#fff"
|
||||
android:layout_height="match_parent">
|
||||
<Button
|
||||
android:id="@+id/MyButton2"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/Hello" />
|
||||
</RelativeLayout>
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
33
src/MaterialTest2/Resources/layout/nav_header.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2015 The Android Open Source 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.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="192dp"
|
||||
android:background="?attr/colorAccent"
|
||||
android:padding="16dp"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark"
|
||||
android:orientation="vertical"
|
||||
android:gravity="bottom">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Username"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"/>
|
||||
|
||||
</LinearLayout>
|
||||
5
src/MaterialTest2/Resources/values/dimens.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="detail_backdrop_height">200dp</dimen>
|
||||
<dimen name="fab_margin">16dp</dimen>
|
||||
</resources>
|
||||