diff options
Diffstat (limited to '')
22 files changed, 233 insertions, 0 deletions
diff --git a/android/VulpIRC/src/main/res/drawable-hdpi/drawer_shadow.9.png b/android/VulpIRC/src/main/res/drawable-hdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..236bff5 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-hdpi/drawer_shadow.9.png diff --git a/android/VulpIRC/src/main/res/drawable-hdpi/ic_drawer.png b/android/VulpIRC/src/main/res/drawable-hdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..6614ea4 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-hdpi/ic_drawer.png diff --git a/android/VulpIRC/src/main/res/drawable-hdpi/ic_launcher.png b/android/VulpIRC/src/main/res/drawable-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..c1b44cc --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/android/VulpIRC/src/main/res/drawable-mdpi/drawer_shadow.9.png b/android/VulpIRC/src/main/res/drawable-mdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..ffe3a28 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-mdpi/drawer_shadow.9.png diff --git a/android/VulpIRC/src/main/res/drawable-mdpi/ic_drawer.png b/android/VulpIRC/src/main/res/drawable-mdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..b05c026 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-mdpi/ic_drawer.png diff --git a/android/VulpIRC/src/main/res/drawable-mdpi/ic_launcher.png b/android/VulpIRC/src/main/res/drawable-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..a1bf709 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-mdpi/ic_launcher.png diff --git a/android/VulpIRC/src/main/res/drawable-xhdpi/drawer_shadow.9.png b/android/VulpIRC/src/main/res/drawable-xhdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..fabe9d9 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-xhdpi/drawer_shadow.9.png diff --git a/android/VulpIRC/src/main/res/drawable-xhdpi/ic_drawer.png b/android/VulpIRC/src/main/res/drawable-xhdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..bcf49dd --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-xhdpi/ic_drawer.png diff --git a/android/VulpIRC/src/main/res/drawable-xhdpi/ic_launcher.png b/android/VulpIRC/src/main/res/drawable-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..3b5ae5b --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-xhdpi/ic_launcher.png diff --git a/android/VulpIRC/src/main/res/drawable-xxhdpi/drawer_shadow.9.png b/android/VulpIRC/src/main/res/drawable-xxhdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..b91e9d7 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-xxhdpi/drawer_shadow.9.png diff --git a/android/VulpIRC/src/main/res/drawable-xxhdpi/ic_drawer.png b/android/VulpIRC/src/main/res/drawable-xxhdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..f7e3b30 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-xxhdpi/ic_drawer.png diff --git a/android/VulpIRC/src/main/res/drawable-xxhdpi/ic_launcher.png b/android/VulpIRC/src/main/res/drawable-xxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..b7df51b --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable-xxhdpi/ic_launcher.png diff --git a/android/VulpIRC/src/main/res/drawable/window_status.xml b/android/VulpIRC/src/main/res/drawable/window_status.xml new file mode 100644 index 0000000..232a645 --- /dev/null +++ b/android/VulpIRC/src/main/res/drawable/window_status.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> + +<level-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:minLevel="1" android:maxLevel="1"> + <color android:color="#3fff" /> + </item> + <item android:minLevel="2" android:maxLevel="2"> + <color android:color="#fff" /> + </item> +</level-list>
\ No newline at end of file diff --git a/android/VulpIRC/src/main/res/layout/activity_login.xml b/android/VulpIRC/src/main/res/layout/activity_login.xml new file mode 100644 index 0000000..d8e10bc --- /dev/null +++ b/android/VulpIRC/src/main/res/layout/activity_login.xml @@ -0,0 +1,111 @@ +<merge xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + tools:context=".LoginActivity"> + + <!-- Login progress --> + <LinearLayout + android:id="@+id/containerLoginStatus" + android:visibility="invisible" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:gravity="center_horizontal" + android:orientation="vertical"> + <ProgressBar style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp"/> + <TextView + android:id="@+id/loginStatus" + android:textAppearance="?android:attr/textAppearanceMedium" + android:fontFamily="sans-serif-light" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="16dp" + android:text="---" /> + <Button + android:id="@+id/buttonCancel" + android:text="Cancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + </LinearLayout> + + <!-- Login form --> + <ScrollView + android:id="@+id/containerLoginForm" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="invisible" + android:padding="12dp"> + + <RelativeLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <EditText + android:id="@+id/inputUsername" + android:singleLine="true" + android:maxLines="1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textNoSuggestions" + android:hint="Username" /> + + <EditText + android:id="@+id/inputPassword" + android:layout_below="@id/inputUsername" + android:layout_marginBottom="12dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:maxLines="1" + android:fontFamily="sans-serif" + android:hint="Password" + android:inputType="textPassword" /> + + <EditText + android:id="@+id/inputPort" + android:layout_below="@id/inputPassword" + android:layout_alignParentRight="true" + android:layout_width="120dp" + android:layout_height="wrap_content" + android:singleLine="true" + android:maxLines="1" + android:hint="Port" + android:inputType="number"/> + + <EditText + android:id="@+id/inputHostname" + android:layout_below="@id/inputPassword" + android:layout_toLeftOf="@id/inputPort" + android:layout_alignParentLeft="true" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:maxLines="1" + android:hint="Server address" + android:inputType=""/> + + <CheckBox + android:id="@+id/checkUseTls" + android:layout_below="@id/inputHostname" + android:layout_marginBottom="12dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Use secured connection (SSL/TLS)" + /> + + <Button android:id="@+id/buttonConnect" + android:layout_below="@id/checkUseTls" + android:layout_alignParentRight="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Connect" + android:paddingLeft="32dp" + android:paddingRight="32dp" /> + + </RelativeLayout> + + </ScrollView> +</merge> diff --git a/android/VulpIRC/src/main/res/layout/activity_main.xml b/android/VulpIRC/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..06c6ef5 --- /dev/null +++ b/android/VulpIRC/src/main/res/layout/activity_main.xml @@ -0,0 +1,40 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + tools:context=".MainActivity" + tools:ignore="MergeRootFrame" + android:background="#000000"> + <android.support.v4.widget.DrawerLayout + android:id="@+id/drawerLayout" + android:layout_width="match_parent" + android:layout_height="match_parent" + > + <android.support.v4.view.ViewPager + android:id="@+id/windowPager" + android:layout_width="300dp" + android:layout_height="match_parent" + android:layout_weight="1"> + </android.support.v4.view.ViewPager> + <ListView + android:id="@+id/windowList" + android:layout_width="160dp" + android:layout_height="match_parent" + android:layout_gravity="left" + > + + </ListView> +<!-- + <ListView + android:id="@+id/messagesList" + android:layout_width="300dp" + android:layout_height="match_parent" + android:layout_weight="1" + > + + </ListView> + --> + </android.support.v4.widget.DrawerLayout> +</LinearLayout> diff --git a/android/VulpIRC/src/main/res/layout/window_list_entry.xml b/android/VulpIRC/src/main/res/layout/window_list_entry.xml new file mode 100644 index 0000000..8fb74cf --- /dev/null +++ b/android/VulpIRC/src/main/res/layout/window_list_entry.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="32dp"> + + <ImageView + android:id="@+id/windowStatus" + android:layout_width="8dp" + android:layout_height="match_parent" + /> + + <TextView + android:id="@+id/windowName" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:paddingLeft="8dp" + android:text="test" + android:gravity="start|center_vertical" + /> + +</LinearLayout>
\ No newline at end of file diff --git a/android/VulpIRC/src/main/res/menu/login.xml b/android/VulpIRC/src/main/res/menu/login.xml new file mode 100644 index 0000000..debb9ef --- /dev/null +++ b/android/VulpIRC/src/main/res/menu/login.xml @@ -0,0 +1,2 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android"> +</menu> diff --git a/android/VulpIRC/src/main/res/menu/main.xml b/android/VulpIRC/src/main/res/menu/main.xml new file mode 100644 index 0000000..6a0f783 --- /dev/null +++ b/android/VulpIRC/src/main/res/menu/main.xml @@ -0,0 +1,12 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:id="@+id/actionLogOut" + android:title="Disconnect" + android:showAsAction="never" /> + + + <item android:id="@+id/action_settings" + android:title="@string/action_settings" + android:orderInCategory="100" + android:showAsAction="never" /> +</menu> diff --git a/android/VulpIRC/src/main/res/values-w820dp/dimens.xml b/android/VulpIRC/src/main/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..63fc816 --- /dev/null +++ b/android/VulpIRC/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> diff --git a/android/VulpIRC/src/main/res/values/dimens.xml b/android/VulpIRC/src/main/res/values/dimens.xml new file mode 100644 index 0000000..5d703a0 --- /dev/null +++ b/android/VulpIRC/src/main/res/values/dimens.xml @@ -0,0 +1,10 @@ +<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="app_defaultsize_w">632.0dip</dimen> +<dimen name="app_defaultsize_h">598.0dip</dimen> +<dimen name="app_minimumsize_w">632.0dip</dimen> +<dimen name="app_minimumsize_h">598.0dip</dimen> + + </resources> diff --git a/android/VulpIRC/src/main/res/values/strings.xml b/android/VulpIRC/src/main/res/values/strings.xml new file mode 100644 index 0000000..49a1195 --- /dev/null +++ b/android/VulpIRC/src/main/res/values/strings.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="app_name">VulpIRC</string> + <string name="hello_world">Hello world!</string> + <string name="action_settings">Settings</string> + <string name="drawer_open">Open Drawer</string> + <string name="drawer_close">Close Drawer</string> + +</resources> diff --git a/android/VulpIRC/src/main/res/values/styles.xml b/android/VulpIRC/src/main/res/values/styles.xml new file mode 100644 index 0000000..c6ece80 --- /dev/null +++ b/android/VulpIRC/src/main/res/values/styles.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="android:Theme.Holo"> + <!-- Customize your theme here. --> + </style> + +</resources> |