diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 0da70ba4..d59839e4 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -8,25 +8,30 @@ android:targetSdkVersion="22" /> + android:largeScreens="true" + android:normalScreens="true" + android:smallScreens="true" + android:xlargeScreens="true" /> - + - + - + - + + android:name="org.kde.kdeconnect.BackgroundService" + android:enabled="true" > - + android:name="org.kde.kdeconnect.NewUserInterface.MaterialActivity" + android:label="KDE Connect" + android:theme="@style/KdeConnectTheme.NoActionBar"> @@ -51,65 +56,74 @@ - + + + + + + + + - + - - + - - + - - - + android:name="org.kde.kdeconnect.UserInterface.CustomDevicesActivity" + android:label="@string/custom_devices_settings" + android:parentActivityName="org.kde.kdeconnect.UserInterface.DeviceActivity" > + - - - + - + - + + @@ -120,7 +134,8 @@ - + + --> @@ -138,40 +154,44 @@ android:label="@string/remote_control" android:parentActivityName="org.kde.kdeconnect.UserInterface.DeviceActivity" > - - - - - + + + - + + + + - + diff --git a/res/drawable-hdpi/drawer_shadow.9.png b/res/drawable-hdpi/drawer_shadow.9.png new file mode 100644 index 00000000..236bff55 Binary files /dev/null and b/res/drawable-hdpi/drawer_shadow.9.png differ diff --git a/res/drawable-hdpi/ic_action_content_add_circle_outline.png b/res/drawable-hdpi/ic_action_content_add_circle_outline.png new file mode 100644 index 00000000..d3ac0f27 Binary files /dev/null and b/res/drawable-hdpi/ic_action_content_add_circle_outline.png differ diff --git a/res/drawable-hdpi/ic_action_image_edit.png b/res/drawable-hdpi/ic_action_image_edit.png new file mode 100644 index 00000000..d740cb34 Binary files /dev/null and b/res/drawable-hdpi/ic_action_image_edit.png differ diff --git a/res/drawable-hdpi/ic_drawer.png b/res/drawable-hdpi/ic_drawer.png new file mode 100644 index 00000000..65100a57 Binary files /dev/null and b/res/drawable-hdpi/ic_drawer.png differ diff --git a/res/drawable-mdpi/drawer_shadow.9.png b/res/drawable-mdpi/drawer_shadow.9.png new file mode 100644 index 00000000..ffe3a28d Binary files /dev/null and b/res/drawable-mdpi/drawer_shadow.9.png differ diff --git a/res/drawable-mdpi/ic_action_content_add_circle_outline.png b/res/drawable-mdpi/ic_action_content_add_circle_outline.png new file mode 100644 index 00000000..3d2861e8 Binary files /dev/null and b/res/drawable-mdpi/ic_action_content_add_circle_outline.png differ diff --git a/res/drawable-mdpi/ic_action_image_edit.png b/res/drawable-mdpi/ic_action_image_edit.png new file mode 100644 index 00000000..5c1da971 Binary files /dev/null and b/res/drawable-mdpi/ic_action_image_edit.png differ diff --git a/res/drawable-mdpi/ic_drawer.png b/res/drawable-mdpi/ic_drawer.png new file mode 100644 index 00000000..632dd87b Binary files /dev/null and b/res/drawable-mdpi/ic_drawer.png differ diff --git a/res/drawable-xhdpi/drawer_shadow.9.png b/res/drawable-xhdpi/drawer_shadow.9.png new file mode 100644 index 00000000..fabe9d96 Binary files /dev/null and b/res/drawable-xhdpi/drawer_shadow.9.png differ diff --git a/res/drawable-xhdpi/ic_action_content_add_circle_outline.png b/res/drawable-xhdpi/ic_action_content_add_circle_outline.png new file mode 100644 index 00000000..f2a6b4cf Binary files /dev/null and b/res/drawable-xhdpi/ic_action_content_add_circle_outline.png differ diff --git a/res/drawable-xhdpi/ic_action_image_edit.png b/res/drawable-xhdpi/ic_action_image_edit.png new file mode 100644 index 00000000..4a9089ae Binary files /dev/null and b/res/drawable-xhdpi/ic_action_image_edit.png differ diff --git a/res/drawable-xhdpi/ic_drawer.png b/res/drawable-xhdpi/ic_drawer.png new file mode 100644 index 00000000..51ca58e8 Binary files /dev/null and b/res/drawable-xhdpi/ic_drawer.png differ diff --git a/res/drawable-xxhdpi/drawer_shadow.9.png b/res/drawable-xxhdpi/drawer_shadow.9.png new file mode 100644 index 00000000..b91e9d7f Binary files /dev/null and b/res/drawable-xxhdpi/drawer_shadow.9.png differ diff --git a/res/drawable-xxhdpi/ic_action_content_add_circle_outline.png b/res/drawable-xxhdpi/ic_action_content_add_circle_outline.png new file mode 100644 index 00000000..ad0ac830 Binary files /dev/null and b/res/drawable-xxhdpi/ic_action_content_add_circle_outline.png differ diff --git a/res/drawable-xxhdpi/ic_action_image_edit.png b/res/drawable-xxhdpi/ic_action_image_edit.png new file mode 100644 index 00000000..d3674e7b Binary files /dev/null and b/res/drawable-xxhdpi/ic_action_image_edit.png differ diff --git a/res/drawable-xxhdpi/ic_drawer.png b/res/drawable-xxhdpi/ic_drawer.png new file mode 100644 index 00000000..c10211e2 Binary files /dev/null and b/res/drawable-xxhdpi/ic_drawer.png differ diff --git a/res/drawable/button_round.xml b/res/drawable/button_round.xml new file mode 100644 index 00000000..d90b94fe --- /dev/null +++ b/res/drawable/button_round.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/res/drawable/drawer_header.jpeg b/res/drawable/drawer_header.jpeg new file mode 100644 index 00000000..58ff6468 Binary files /dev/null and b/res/drawable/drawer_header.jpeg differ diff --git a/res/drawable/drawer_header_noscale.xml b/res/drawable/drawer_header_noscale.xml new file mode 100644 index 00000000..b9c87071 --- /dev/null +++ b/res/drawable/drawer_header_noscale.xml @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/res/layout/activity_device.xml b/res/layout/activity_device.xml index 77e2899e..40c1c30e 100644 --- a/res/layout/activity_device.xml +++ b/res/layout/activity_device.xml @@ -3,11 +3,7 @@ android:id="@+id/buttons_list" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingLeft="@dimen/activity_horizontal_margin" - android:paddingRight="@dimen/activity_horizontal_margin" - android:paddingTop="@dimen/activity_vertical_margin" - android:paddingBottom="@dimen/activity_vertical_margin" + android:layout_margin="16dip" android:fillViewport="true" - android:divider="@null" - tools:context=".MainActivity" + tools:context=".DeviceActivity" /> \ No newline at end of file diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml index 996dc57c..75a946aa 100644 --- a/res/layout/activity_main.xml +++ b/res/layout/activity_main.xml @@ -2,10 +2,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingLeft="@dimen/activity_horizontal_margin" - android:paddingRight="@dimen/activity_horizontal_margin" - android:paddingTop="@dimen/activity_vertical_margin" - android:paddingBottom="@dimen/activity_vertical_margin" + android:layout_margin="16dip" tools:context=".MainActivity" android:id="@+id/listView1" android:addStatesFromChildren="true" diff --git a/res/layout/activity_material.xml b/res/layout/activity_material.xml new file mode 100644 index 00000000..1bd34f30 --- /dev/null +++ b/res/layout/activity_material.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + diff --git a/res/layout/fragment_material.xml b/res/layout/fragment_material.xml new file mode 100644 index 00000000..27d16d3c --- /dev/null +++ b/res/layout/fragment_material.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/res/layout/fragment_navigation_drawer.xml b/res/layout/fragment_navigation_drawer.xml new file mode 100644 index 00000000..012abef5 --- /dev/null +++ b/res/layout/fragment_navigation_drawer.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/list_item_with_button_entry.xml b/res/layout/list_item_with_button_entry.xml new file mode 100644 index 00000000..a14808c7 --- /dev/null +++ b/res/layout/list_item_with_button_entry.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + +