Repository: incubator-wave-android Updated Branches: refs/heads/master 28eb7a7dd -> 2f2c2acad
http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/inbox_activity.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/inbox_activity.xml b/app/src/main/res/layout/inbox_activity.xml new file mode 100644 index 0000000..e51a159 --- /dev/null +++ b/app/src/main/res/layout/inbox_activity.xml @@ -0,0 +1,44 @@ +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <LinearLayout + android:id="@+id/container_toolbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <include + android:id="@+id/toolbar" + layout="@layout/toolbar" /> + </LinearLayout> + + <FrameLayout + android:id="@+id/container_body" + android:layout_width="fill_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + + </LinearLayout> + + + <fragment + android:id="@+id/fragment_navigation_drawer" + android:name="app.android.box.waveprotocol.org.androidwave.activities.FragmentDrawer" + android:layout_width="@dimen/nav_drawer_width" + android:layout_height="match_parent" + android:layout_gravity="start" + app:layout="@layout/fragment_navigation_drawer" + tools:layout="@layout/fragment_navigation_drawer" /> + +</android.support.v4.widget.DrawerLayout> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/inbox_fragment.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/inbox_fragment.xml b/app/src/main/res/layout/inbox_fragment.xml new file mode 100644 index 0000000..8aa3fe3 --- /dev/null +++ b/app/src/main/res/layout/inbox_fragment.xml @@ -0,0 +1,23 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/coordinatorLayout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + tools:context="info.androidhive.materialdesign.activity.HomeFragment"> + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + </ListView> + + <android.support.design.widget.FloatingActionButton + android:id="@+id/fab" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_margin="16dp" + android:src="@drawable/ic_action" /> +</RelativeLayout> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/list_item.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/list_item.xml b/app/src/main/res/layout/list_item.xml new file mode 100644 index 0000000..da36281 --- /dev/null +++ b/app/src/main/res/layout/list_item.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:padding="16dp" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <FrameLayout + android:layout_marginRight="16dp" + android:layout_width="60dp" + android:layout_height="60dp"> + + <ImageView + android:layout_width="60dp" + android:layout_height="60dp" + android:id="@+id/imageView"/> + + <ImageView + android:visibility="gone" + android:layout_width="60dp" + android:layout_height="60dp" + android:src="@drawable/check_sm" + android:id="@+id/check_icon"/> + </FrameLayout> + + <TextView + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center_vertical" + android:id="@+id/textView"/> + +</LinearLayout> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/list_item_layout.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/list_item_layout.xml b/app/src/main/res/layout/list_item_layout.xml new file mode 100644 index 0000000..bd69f42 --- /dev/null +++ b/app/src/main/res/layout/list_item_layout.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:padding="16dp" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <FrameLayout + android:layout_marginRight="16dp" + android:layout_width="60dp" + android:layout_height="60dp"> + + <ImageView + android:layout_width="60dp" + android:layout_height="60dp" + android:id="@+id/imageView"/> + + <ImageView + android:visibility="gone" + android:layout_width="60dp" + android:layout_height="60dp" + android:src="@drawable/check_sm" + android:id="@+id/check_icon"/> + </FrameLayout> + + <TextView + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center_vertical" + android:id="@+id/textView"/> + +</LinearLayout> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/login_activity.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/login_activity.xml b/app/src/main/res/layout/login_activity.xml new file mode 100644 index 0000000..6a41c17 --- /dev/null +++ b/app/src/main/res/layout/login_activity.xml @@ -0,0 +1,64 @@ +<?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:background="@color/colorPrimary" + android:paddingLeft="24dp" + android:paddingRight="24dp" + > + + <ImageView + android:layout_width="150dp" + android:layout_height="150dp" + android:src="@drawable/ic_launcher" + android:layout_gravity="center_horizontal" + android:paddingTop="50dp" + /> + + <!-- Username Label --> + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="30dp" + android:layout_marginBottom="8dp"> + <EditText android:id="@+id/input_email" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textEmailAddress" + android:hint="Username" /> + </android.support.design.widget.TextInputLayout> + + <!-- Password Label --> + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"> + <EditText android:id="@+id/input_password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textPassword" + android:hint="Password"/> + </android.support.design.widget.TextInputLayout> + + <android.support.v7.widget.AppCompatButton + android:id="@+id/btn_login" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="24dp" + android:layout_marginBottom="24dp" + android:padding="12dp" + android:text="Sign In"/> + + <TextView android:id="@+id/link_signup" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="24dp" + android:text="No account yet? Create one" + android:gravity="center" + android:textSize="16dip"/> + + + +</LinearLayout> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/main_activity.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml new file mode 100644 index 0000000..c62ed2a --- /dev/null +++ b/app/src/main/res/layout/main_activity.xml @@ -0,0 +1,15 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/colorPrimary" + tools:context=".MainActivity" + android:gravity="center" + > + <ImageView + android:id="@+id/myImage" + android:layout_width="100dp" + android:layout_height="100dp" + android:src="@drawable/ic_launcher" + android:layout_gravity="center"/> + +</RelativeLayout> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/nav_drawer_row.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/nav_drawer_row.xml b/app/src/main/res/layout/nav_drawer_row.xml new file mode 100644 index 0000000..a6a135b --- /dev/null +++ b/app/src/main/res/layout/nav_drawer_row.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:clickable="true"> + + <TextView + android:id="@+id/title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="30dp" + android:paddingTop="10dp" + android:paddingBottom="10dp" + android:textSize="15dp" + android:textStyle="bold" /> + +</RelativeLayout> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/search_activity.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/search_activity.xml b/app/src/main/res/layout/search_activity.xml new file mode 100644 index 0000000..f07ae1b --- /dev/null +++ b/app/src/main/res/layout/search_activity.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + + <ImageButton + android:paddingTop="10dp" + android:id="@+id/button_back" + android:layout_width="50dp" + android:layout_height="50dp" + android:src="@drawable/ic_action_search_back" + android:layout_alignParentLeft="true" + android:text="Button"/> + + <ImageButton + android:paddingTop="10dp" + android:id="@+id/button_forward" + android:layout_width="50dp" + android:layout_height="50dp" + android:layout_alignParentRight="true" + android:src="@drawable/ic_action_search_forward" + android:text="Button"/> + + <AutoCompleteTextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_toRightOf="@+id/button_back" + android:layout_toLeftOf="@id/button_forward" + android:id="@+id/searchWave" + android:hint="@string/search_hint" + + /> + + + +</RelativeLayout> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/select_friend_activity.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/select_friend_activity.xml b/app/src/main/res/layout/select_friend_activity.xml new file mode 100644 index 0000000..fdf6581 --- /dev/null +++ b/app/src/main/res/layout/select_friend_activity.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/drawer_layout"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <LinearLayout + android:id="@+id/container_toolbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <include + android:id="@+id/toolbar" + layout="@layout/toolbar" /> + </LinearLayout> + + <FrameLayout + android:id="@+id/container_body_newWave" + android:layout_width="fill_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + + </LinearLayout> +</LinearLayout> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/select_friend_fragment.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/select_friend_fragment.xml b/app/src/main/res/layout/select_friend_fragment.xml new file mode 100644 index 0000000..028267f --- /dev/null +++ b/app/src/main/res/layout/select_friend_fragment.xml @@ -0,0 +1,15 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/coordinatorLayout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + tools:context="info.androidhive.materialdesign.activity.HomeFragment"> + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + </ListView> + +</RelativeLayout> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/signup_activity.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/signup_activity.xml b/app/src/main/res/layout/signup_activity.xml new file mode 100644 index 0000000..6aa4ec3 --- /dev/null +++ b/app/src/main/res/layout/signup_activity.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/colorPrimary" + android:paddingLeft="24dp" + android:paddingRight="24dp" + android:orientation="vertical"> + + <ImageView + android:layout_width="108dp" + android:layout_height="108dp" + android:src="@drawable/ic_launcher" + android:layout_gravity="center_horizontal" + android:paddingTop="25dp" + /> + + <!-- Username Label --> + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="20dp" + android:layout_marginBottom="8dp"> + <EditText android:id="@+id/input_username" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textEmailAddress" + android:hint="Username" /> + </android.support.design.widget.TextInputLayout> + + + <!-- Password Label --> + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"> + <EditText android:id="@+id/input_password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textPassword" + android:hint="Password"/> + </android.support.design.widget.TextInputLayout> + + <!-- Re-enter Password Label --> + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"> + <EditText android:id="@+id/input_reEnterPassword" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textPassword" + android:hint="Re-enter Password"/> + </android.support.design.widget.TextInputLayout> + + <android.support.v7.widget.AppCompatButton + android:id="@+id/btn_signIn" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="15dp" + android:layout_marginBottom="15dp" + android:padding="12dp" + android:text="Sign Up"/> + + <TextView android:id="@+id/link_signup" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="20dp" + android:text="Already a member ? Sign In" + android:gravity="center" + android:textSize="16dip"/> + +</LinearLayout> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/test_activity.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/test_activity.xml b/app/src/main/res/layout/test_activity.xml new file mode 100644 index 0000000..bd649e4 --- /dev/null +++ b/app/src/main/res/layout/test_activity.xml @@ -0,0 +1,8 @@ +<ListView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/listView" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context="com.amulyakhare.td.sample.MiscActivity"> + +</ListView> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/tool_bar.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/tool_bar.xml b/app/src/main/res/layout/tool_bar.xml new file mode 100644 index 0000000..733cb1a --- /dev/null +++ b/app/src/main/res/layout/tool_bar.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:background="@color/colorPrimary" + android:theme="@style/ThemeOverlay.AppCompat.Dark" + android:elevation="4dp"> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@color/colorPrimary" + android:src="@drawable/ic_action_drawer" + android:id="@+id/ic_drawer" + /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toRightOf="@+id/ic_drawer" + android:text="Inbox" + android:textSize="25dp" + android:id="@+id/text_inbox" + android:textColor="#FFFFFF" + android:paddingLeft="20dp"/> + + <ImageButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@color/colorPrimary" + android:src="@drawable/ic_search2" + android:id="@+id/ic_search" + android:layout_alignParentRight="true" + android:paddingRight="5dp" + /> + + </RelativeLayout> +</android.support.v7.widget.Toolbar> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/layout/toolbar.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/toolbar.xml b/app/src/main/res/layout/toolbar.xml new file mode 100644 index 0000000..b6dc0a2 --- /dev/null +++ b/app/src/main/res/layout/toolbar.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:local="http://schemas.android.com/apk/res-auto" + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?attr/actionBarSize" + android:background="?attr/colorPrimary" + local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" + local:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/menu/menu_main.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml new file mode 100644 index 0000000..26a5fcc --- /dev/null +++ b/app/src/main/res/menu/menu_main.xml @@ -0,0 +1,18 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + tools:context=".MainActivity"> + + <item + android:id="@+id/action_search" + android:title="@string/action_search" + android:orderInCategory="100" + android:icon="@drawable/ic_action_search" + app:showAsAction="ifRoom" /> + + <item + android:id="@+id/action_settings" + android:title="@string/action_settings" + android:orderInCategory="100" + app:showAsAction="never" /> +</menu> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/menu/menu_main2.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/menu/menu_main2.xml b/app/src/main/res/menu/menu_main2.xml new file mode 100644 index 0000000..53f3015 --- /dev/null +++ b/app/src/main/res/menu/menu_main2.xml @@ -0,0 +1,13 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + tools:context=".MainActivity"> + + <item + android:id="@+id/action_forward" + android:title="@string/title_new_wave_forworad" + android:orderInCategory="100" + android:icon="@drawable/ic_arrow_forward_white_2" + app:showAsAction="ifRoom" /> + +</menu> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/mipmap-hdpi/ic_launcher.png ---------------------------------------------------------------------- diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..2b10f1d Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/mipmap-mdpi/ic_launcher.png ---------------------------------------------------------------------- diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..34820fa Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/mipmap-xhdpi/ic_launcher.png ---------------------------------------------------------------------- diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..37bdce9 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/mipmap-xxhdpi/ic_launcher.png ---------------------------------------------------------------------- diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..19da7a0 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png ---------------------------------------------------------------------- diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..fc3a49a Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/values-v21/styles.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml new file mode 100644 index 0000000..4145fab --- /dev/null +++ b/app/src/main/res/values-v21/styles.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <!-- + <style name="AppTheme" parent="android:Theme.Material.Light"> + </style> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"></style> + + <style name="AppTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"> + + <item name="colorPrimary">@color/colorPrimary</item> + + + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + + <item name="colorAccent">@color/colorAccent</item> + + </style> + --> + + <style name="MyMaterialTheme" parent="MyMaterialTheme.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> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/values-w820dp/dimens.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..63fc816 --- /dev/null +++ b/app/src/main/res/values-w820dp/dimens.xml @@ -0,0 +1,6 @@ +<resources> + <!-- Example customization of dimensions originally defined in res/values/dimens.xml + (such as screen margins) for screens with more than 820dp of available width. This + would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). --> + <dimen name="activity_horizontal_margin">64dp</dimen> +</resources> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/values/colors.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..43aef38 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#2586B3</color> + <color name="colorPrimaryDark">#0B7BBA</color> + <color name="textColorPrimary">#FFFFFF</color> + <color name="windowBackground">#FFFFFF</color> + <color name="navigationBarColor">#0B7BBA</color> + <color name="colorAccent">#70C8FA</color> + <!-- #70C8FA--> +</resources> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/values/dimens.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..bf080f4 --- /dev/null +++ b/app/src/main/res/values/dimens.xml @@ -0,0 +1,6 @@ +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="activity_horizontal_margin">16dp</dimen> + <dimen name="activity_vertical_margin">16dp</dimen> + <dimen name="nav_drawer_width">260dp</dimen> +</resources> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/values/strings.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..a2c6097 --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,69 @@ +<resources> + + <string name="app_name">Android Wave</string> + <string name="inbox_name">Inbox</string> + <string name="new_wave_name">Create Wave</string> + + <string name="hello_world">Hello world!</string> + <string name="action_settings">Settings</string> + + <string name="inbox_string">Inbox</string> + <string name="sing_out_string">Inbox</string> + + <string name="search_name">Search</string> + + <string name="search_hint">Search wave</string> + + <string name="action_search">Search</string> + <string name="drawer_open">Open</string> + <string name="drawer_close">Close</string> + + <string name="nav_item_home">Inbox</string> + <string name="nav_item_friends">Friends</string> + <string name="nav_item_notifications">Waves</string> + <string name="nav_item_signout">Sign out</string> + + <!-- navigation drawer item labels --> + <string-array name="nav_drawer_labels"> + <item>@string/nav_item_home</item> + <item>@string/nav_item_friends</item> + <item>@string/nav_item_notifications</item> + <item>@string/nav_item_signout</item> + </string-array> + + <string name="title_messages">Waves</string> + <string name="title_friends">Friends</string> + <string name="title_home">Inbox</string> + <string name="title_signout">Sign out</string> + + <string-array name="friend_names"> + <item>Ali</item> + <item>Roshan</item> + <item>Evan</item> + <item>Grobmeier</item> + <item>Upayavira</item> + <item>Blossom</item> + <item>Michael</item> + <item>Pablo</item> + <item>Yuri</item> + <item>Dain</item> + </string-array> + + <string-array name="friend_names2"> + <item>>wave message from Ali</item> + <item>>wave message from Roshan</item> + <item>>wave message from Evan</item> + <item>>wave message from Grobmeier</item> + <item>>wave message from Upayavira</item> + <item>>wave message from Blossom</item> + <item>>wave message from Michael</item> + <item>>wave message from Pablo</item> + <item>>wave message from Yuri</item> + <item>>wave message from Dain</item> + </string-array> + + <string name="title_new_wave_forworad">Forward</string> + + + +</resources> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/values/styles.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..1491ae6 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,36 @@ +<resources> + + <!-- + <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> +<style name="AppTheme" parent="android:Theme.Material"> + <style name="AppTheme" parent="AppTheme.Base"/> + + <style name="AppTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"> + + <item name="colorPrimary">@color/colorPrimary</item> + + + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + + + <item name="colorAccent">@color/colorAccent</item> + + + </style> +</style> + </style>--> + + <!-- theme customizations --> + + + + <style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light.NoActionBar"> + <item name="icon">@drawable/ic_action_search</item> + <item name="android:windowNoTitle">true</item> + <item name="windowActionBar">false</item> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/app/src/main/res/values/test.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/values/test.xml b/app/src/main/res/values/test.xml new file mode 100644 index 0000000..3ea04e7 --- /dev/null +++ b/app/src/main/res/values/test.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources></resources> http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..9405f3f --- /dev/null +++ b/build.gradle @@ -0,0 +1,19 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:1.2.3' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + jcenter() + } +} http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/gradle.properties ---------------------------------------------------------------------- diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..1d3591c --- /dev/null +++ b/gradle.properties @@ -0,0 +1,18 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx10248m -XX:MaxPermSize=256m +# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/gradle/wrapper/gradle-wrapper.jar ---------------------------------------------------------------------- diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..8c0fb64 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/gradle/wrapper/gradle-wrapper.properties ---------------------------------------------------------------------- diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..0c71e76 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Wed Apr 10 15:27:10 PDT 2013 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/gradlew ---------------------------------------------------------------------- diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..91a7e26 --- /dev/null +++ b/gradlew @@ -0,0 +1,164 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >&- +APP_HOME="`pwd -P`" +cd "$SAVED" >&- + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/gradlew.bat ---------------------------------------------------------------------- diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..8a0b282 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega http://git-wip-us.apache.org/repos/asf/incubator-wave-android/blob/514564b1/settings.gradle ---------------------------------------------------------------------- diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..e7b4def --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include ':app'
