From a04f7480142a787e22fb4e152aae566bf0c43f29 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Sep 2011 14:23:44 +0400 Subject: implement login --- res/layout/login.xml | 12 ++++++++++++ res/menu/login_menu.xml | 15 +++++++++++++++ res/menu/main_menu.xml | 12 ++++++++++++ res/values/arrays.xml | 12 ++++++++++++ res/values/attrs.xml | 4 ++++ res/values/strings.xml | 23 ++++++++++++++++++++++- res/values/style.xml | 8 ++++++++ res/xml/preferences.xml | 24 ++++++++++++++++++++++++ 8 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 res/layout/login.xml create mode 100644 res/menu/login_menu.xml create mode 100644 res/menu/main_menu.xml create mode 100644 res/values/arrays.xml create mode 100644 res/values/attrs.xml create mode 100644 res/values/style.xml create mode 100644 res/xml/preferences.xml (limited to 'res') diff --git a/res/layout/login.xml b/res/layout/login.xml new file mode 100644 index 00000000..73fa1869 --- /dev/null +++ b/res/layout/login.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/res/menu/login_menu.xml b/res/menu/login_menu.xml new file mode 100644 index 00000000..0c244247 --- /dev/null +++ b/res/menu/login_menu.xml @@ -0,0 +1,15 @@ + + + + + + + diff --git a/res/menu/main_menu.xml b/res/menu/main_menu.xml new file mode 100644 index 00000000..8552cfcd --- /dev/null +++ b/res/menu/main_menu.xml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/res/values/arrays.xml b/res/values/arrays.xml new file mode 100644 index 00000000..fcac426d --- /dev/null +++ b/res/values/arrays.xml @@ -0,0 +1,12 @@ + + + + @string/theme_dark + @string/theme_light + + + + THEME_DARK + THEME_LIGHT + + diff --git a/res/values/attrs.xml b/res/values/attrs.xml new file mode 100644 index 00000000..9ad509d1 --- /dev/null +++ b/res/values/attrs.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 11c590fa..76ff7d7e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1,5 +1,26 @@ - Hello World, MainActivity! + Login session refused by server + Logging in... + Login failed. Tiny Tiny RSS + Please configure the application first. + Ready to login. + Log in + Log out + Login + Password + http://example.domain/tt-rss/ + Authentication + Look and feel + Theme + Changes color theme of the application. + Tiny Tiny RSS URL + Login automatically + Dark + Preferences + Light + Login failed: API disabled. + Login failed: username or password incorrect. + Logged in. diff --git a/res/values/style.xml b/res/values/style.xml new file mode 100644 index 00000000..952f70ff --- /dev/null +++ b/res/values/style.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml new file mode 100644 index 00000000..c158a5f8 --- /dev/null +++ b/res/xml/preferences.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3-54-g00ecf