diff options
Diffstat (limited to 'project/res')
31 files changed, 415 insertions, 0 deletions
diff --git a/project/res/drawable-hdpi/ic_launcher.png b/project/res/drawable-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..50093ae --- /dev/null +++ b/project/res/drawable-hdpi/ic_launcher.png diff --git a/project/res/drawable-hdpi/ic_launcher2.png b/project/res/drawable-hdpi/ic_launcher2.png Binary files differnew file mode 100644 index 0000000..78d26b2 --- /dev/null +++ b/project/res/drawable-hdpi/ic_launcher2.png diff --git a/project/res/drawable-hdpi/ic_launcher_bis.png b/project/res/drawable-hdpi/ic_launcher_bis.png Binary files differnew file mode 100644 index 0000000..1ddfad3 --- /dev/null +++ b/project/res/drawable-hdpi/ic_launcher_bis.png diff --git a/project/res/drawable-hdpi/ic_launcher_tris.png b/project/res/drawable-hdpi/ic_launcher_tris.png Binary files differnew file mode 100644 index 0000000..ddaa253 --- /dev/null +++ b/project/res/drawable-hdpi/ic_launcher_tris.png diff --git a/project/res/drawable-mdpi/ic_launcher.png b/project/res/drawable-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..e2fe865 --- /dev/null +++ b/project/res/drawable-mdpi/ic_launcher.png diff --git a/project/res/drawable-mdpi/ic_launcher2.png b/project/res/drawable-mdpi/ic_launcher2.png Binary files differnew file mode 100644 index 0000000..4a61a75 --- /dev/null +++ b/project/res/drawable-mdpi/ic_launcher2.png diff --git a/project/res/drawable-mdpi/ic_launcher_bis.png b/project/res/drawable-mdpi/ic_launcher_bis.png Binary files differnew file mode 100644 index 0000000..c205105 --- /dev/null +++ b/project/res/drawable-mdpi/ic_launcher_bis.png diff --git a/project/res/drawable-mdpi/ic_launcher_tris.png b/project/res/drawable-mdpi/ic_launcher_tris.png Binary files differnew file mode 100644 index 0000000..935010c --- /dev/null +++ b/project/res/drawable-mdpi/ic_launcher_tris.png diff --git a/project/res/drawable-xhdpi/ic_launcher.png b/project/res/drawable-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..71ed985 --- /dev/null +++ b/project/res/drawable-xhdpi/ic_launcher.png diff --git a/project/res/drawable-xhdpi/ic_launcher2.png b/project/res/drawable-xhdpi/ic_launcher2.png Binary files differnew file mode 100644 index 0000000..01fc7ef --- /dev/null +++ b/project/res/drawable-xhdpi/ic_launcher2.png diff --git a/project/res/drawable-xhdpi/ic_launcher_bis.png b/project/res/drawable-xhdpi/ic_launcher_bis.png Binary files differnew file mode 100644 index 0000000..4a0f08f --- /dev/null +++ b/project/res/drawable-xhdpi/ic_launcher_bis.png diff --git a/project/res/drawable-xhdpi/ic_launcher_tris.png b/project/res/drawable-xhdpi/ic_launcher_tris.png Binary files differnew file mode 100644 index 0000000..5992ef4 --- /dev/null +++ b/project/res/drawable-xhdpi/ic_launcher_tris.png diff --git a/project/res/drawable-xxhdpi/ic_launcher.png b/project/res/drawable-xxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..5545989 --- /dev/null +++ b/project/res/drawable-xxhdpi/ic_launcher.png diff --git a/project/res/drawable-xxhdpi/ic_launcher2.png b/project/res/drawable-xxhdpi/ic_launcher2.png Binary files differnew file mode 100644 index 0000000..aaf68c6 --- /dev/null +++ b/project/res/drawable-xxhdpi/ic_launcher2.png diff --git a/project/res/drawable-xxhdpi/ic_launcher_bis.png b/project/res/drawable-xxhdpi/ic_launcher_bis.png Binary files differnew file mode 100644 index 0000000..ea36964 --- /dev/null +++ b/project/res/drawable-xxhdpi/ic_launcher_bis.png diff --git a/project/res/drawable-xxhdpi/ic_launcher_tris.png b/project/res/drawable-xxhdpi/ic_launcher_tris.png Binary files differnew file mode 100644 index 0000000..0bf88f3 --- /dev/null +++ b/project/res/drawable-xxhdpi/ic_launcher_tris.png diff --git a/project/res/layout/activity_credits.xml b/project/res/layout/activity_credits.xml new file mode 100644 index 0000000..871536c --- /dev/null +++ b/project/res/layout/activity_credits.xml @@ -0,0 +1,17 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="@color/ThemeDark"> + + <TextView + android:id="@+id/txt_credits" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:textColor="@color/ThemeLight" + android:textColorLink="@color/ThemeLight" + android:textSize="7pt" + android:scrollbars = "vertical" /> + + +</LinearLayout>
\ No newline at end of file diff --git a/project/res/layout/activity_input_password.xml b/project/res/layout/activity_input_password.xml new file mode 100644 index 0000000..a024879 --- /dev/null +++ b/project/res/layout/activity_input_password.xml @@ -0,0 +1,65 @@ +<merge xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + tools:context=".InputPasswordActivity" > + + + + <ScrollView + android:id="@+id/login_form" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background = "@color/black" > + + <LinearLayout + style="@style/LoginFormContainer" + android:orientation="vertical" + android:background="@color/black" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <TextView + android:id="@+id/txt_insert_pass" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textCursorDrawable="@null" + android:textColor="@color/ThemeLight" + android:textSize="10pt" + android:layout_marginBottom="10dp" + android:background="@color/black" + android:maxLines = "10" + android:text="@string/insert_nets_password" /> + + <EditText + android:id="@+id/txt_password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textPassword" + android:textColor="@color/ThemeLight" + android:textSize="10pt" + android:maxLines="1" + android:singleLine="true" /> + + <CheckBox + android:id="@+id/chk_show_pass" + android:textColor="@color/ThemeLight" + android:text="@string/show_password" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <Button + android:id="@+id/sign_in_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@color/ThemeDark" + android:textColor="@color/ThemeLight" + android:layout_gravity="right" + android:layout_marginTop="16dp" + android:paddingLeft="32dp" + android:paddingRight="32dp" + android:text="@string/button_text_next" + android:onClick="onBtnNextClick" /> + + </LinearLayout> + </ScrollView> + +</merge>
\ No newline at end of file diff --git a/project/res/layout/activity_long_task.xml b/project/res/layout/activity_long_task.xml new file mode 100644 index 0000000..769144e --- /dev/null +++ b/project/res/layout/activity_long_task.xml @@ -0,0 +1,25 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/black" > + + <ProgressBar + android:id="@+id/progbar" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" /> + + <TextView + android:id="@+id/txt_msg" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" + android:layout_below="@id/progbar" + android:padding="10dp" + android:textColor="@color/ThemeLight" /> + + +</RelativeLayout>
\ No newline at end of file diff --git a/project/res/layout/activity_main.xml b/project/res/layout/activity_main.xml new file mode 100644 index 0000000..3818751 --- /dev/null +++ b/project/res/layout/activity_main.xml @@ -0,0 +1,57 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="15dp" + android:background="@color/black" > + + <TextView + android:id="@+id/txt_main" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:textColor="@color/ThemeLight" + android:background="@color/black" + android:maxLines = "10" + android:layout_marginTop="10dp" + android:layout_marginBottom="10dp" + android:text="" /> + + <Button + android:id="@+id/btn_scan" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:layout_centerHorizontal="true" + android:textColor="@color/ThemeLight" + android:background="@color/ThemeDark" + android:text="@string/scan_networks" + android:onClick="btnScanClick" + android:layout_marginTop="15dp" + android:layout_marginBottom="20dp" /> + + <Button + android:id="@+id/btn_manage_nets" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/btn_scan" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:layout_centerHorizontal="true" + android:textColor="@color/ThemeLight" + android:background="@color/ThemeDark" + android:text="@string/manage_networks" + android:onClick="btnManageClick" + android:layout_marginBottom="20dp" /> + + <ImageView + android:id="@+id/img_logo" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_centerHorizontal="true" + android:layout_below="@id/btn_manage_nets" + android:layout_margin="20dp" > + + </ImageView> + + </RelativeLayout>
\ No newline at end of file diff --git a/project/res/layout/activity_network_details.xml b/project/res/layout/activity_network_details.xml new file mode 100644 index 0000000..a36c957 --- /dev/null +++ b/project/res/layout/activity_network_details.xml @@ -0,0 +1,38 @@ +<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:padding="15dp" + android:background="@color/black" + tools:context=".NetworkDetailsActivity" > + + <TextView + android:id="@+id/txt_net_details" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="10dp" + android:textColor="@color/ThemeLight" + android:textSize="7pt" + android:background="@color/black" /> + + <CheckBox + android:id="@+id/chk_show_pass_details" + android:layout_below="@id/txt_net_details" + android:textColor="@color/ThemeLight" + android:text="@string/show_password" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <Button + android:id="@+id/btn_delete" + android:layout_below="@id/chk_show_pass_details" + android:layout_marginTop="15dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:textColor="@color/ThemeLight" + android:background="@color/ThemeDark" + android:text="@string/delete" + android:onClick="btnDeleteClick" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/project/res/layout/activity_select_network.xml b/project/res/layout/activity_select_network.xml new file mode 100644 index 0000000..2dd7958 --- /dev/null +++ b/project/res/layout/activity_select_network.xml @@ -0,0 +1,58 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/layout_selnets" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="15dp" + tools:context=".SelectNetworkActivity" + android:background="@color/black" > + + <TextView + android:id="@+id/txt_selnets" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:textColor="@color/ThemeLight" + android:textSize="10pt" + android:maxLines = "5" + android:scrollbars = "vertical" + android:layout_marginBottom="10dp" /> + + <Button + android:id="@+id/btn_rescan" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/txt_selnets" + android:paddingLeft="10dp" + android:paddingRight="10dp" + android:layout_centerHorizontal="true" + android:textColor="@color/ThemeLight" + android:background="@color/ThemeDark" + android:text="@string/rescan" + android:onClick="btnScanClick" /> + + <ScrollView + android:id="@+id/scrollview" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_below="@id/btn_rescan" + android:layout_centerHorizontal="true" + android:scrollbars="vertical" + android:fillViewport="true" + android:textColor="@color/ThemeLight" + android:background="@color/White" > + + <TableLayout + android:id="@+id/table_networks" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="fill_horizontal" + android:isScrollContainer="true" + android:textColor="@color/ThemeLight" + android:background="@color/black" > + </TableLayout> + + + </ScrollView> + +</RelativeLayout>
\ No newline at end of file diff --git a/project/res/layout/activity_show_status.xml b/project/res/layout/activity_show_status.xml new file mode 100644 index 0000000..9f7e584 --- /dev/null +++ b/project/res/layout/activity_show_status.xml @@ -0,0 +1,43 @@ +<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:padding="15dp" + android:background="@color/black" + tools:context=".ShowStatusActivity" > + + <TextView + android:id="@+id/txt_status" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:background="@color/black" + android:textColor="@color/ThemeLight" /> + + <Button + android:id="@+id/btn_disconnect" + android:background="@color/ThemeDark" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_centerHorizontal="true" + android:layout_below="@id/txt_status" + android:layout_marginTop="10dp" + android:textColor="@color/ThemeLight" + android:text="@string/disconnect" + android:onClick="onBtnDisconnectClick"/> + + <Button + android:id="@+id/btn_back" + android:background="@color/ThemeDark" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_centerHorizontal="true" + android:layout_below="@id/txt_status" + android:layout_marginTop="10dp" + android:textColor="@color/ThemeLight" + android:text="@string/back_main" + android:onClick="onBtnMainClick"/> + +</RelativeLayout>
\ No newline at end of file diff --git a/project/res/menu/activity_main.xml b/project/res/menu/activity_main.xml new file mode 100644 index 0000000..cd7c0cb --- /dev/null +++ b/project/res/menu/activity_main.xml @@ -0,0 +1,9 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android" > + + <item + android:id="@+id/menu_credits" + android:orderInCategory="100" + android:showAsAction="never" + android:title="@string/menu_credits" /> + +</menu>
\ No newline at end of file diff --git a/project/res/values-large/styles.xml b/project/res/values-large/styles.xml new file mode 100644 index 0000000..acd524d --- /dev/null +++ b/project/res/values-large/styles.xml @@ -0,0 +1,10 @@ +<resources> + + <style name="LoginFormContainer"> + <item name="android:layout_width">400dp</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_gravity">center</item> + <item name="android:padding">16dp</item> + </style> + +</resources>
\ No newline at end of file diff --git a/project/res/values-v11/styles.xml b/project/res/values-v11/styles.xml new file mode 100644 index 0000000..541752f --- /dev/null +++ b/project/res/values-v11/styles.xml @@ -0,0 +1,11 @@ +<resources> + + <!-- + Base application theme for API 11+. This theme completely replaces + AppBaseTheme from res/values/styles.xml on API 11+ devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Holo.Light"> + <!-- API 11 theme customizations can go here. --> + </style> + +</resources>
\ No newline at end of file diff --git a/project/res/values-v14/styles.xml b/project/res/values-v14/styles.xml new file mode 100644 index 0000000..f20e015 --- /dev/null +++ b/project/res/values-v14/styles.xml @@ -0,0 +1,12 @@ +<resources> + + <!-- + Base application theme for API 14+. This theme completely replaces + AppBaseTheme from BOTH res/values/styles.xml and + res/values-v11/styles.xml on API 14+ devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"> + <!-- API 14 theme customizations can go here. --> + </style> + +</resources>
\ No newline at end of file diff --git a/project/res/values/colors.xml b/project/res/values/colors.xml new file mode 100644 index 0000000..22767c8 --- /dev/null +++ b/project/res/values/colors.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="ThemeLight">#FFA500</color> + <color name="ThemeDark">#5F021F</color> + <color name="black">#000000</color> + <color name="White">#FFFFFF</color> +</resources>
\ No newline at end of file diff --git a/project/res/values/strings.xml b/project/res/values/strings.xml new file mode 100644 index 0000000..00168b5 --- /dev/null +++ b/project/res/values/strings.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="app_name">RepWifi App</string> + <string name="menu_credits">Info and Credits</string> + <string name="scan_networks">Scan for Networks</string> + <string name="title_activity_select_network">Select Network</string> + <string name="rescan">Repeat Scan</string> + <string name="button_text_next">Next ></string> + <string name="insert_nets_password">Insert a Password to connect to:</string> + <string name="show_password">Show password</string> + <string name="title_activity_connect">ConnectActivity</string> + <string name="hello_world">Hello world!</string> + <string name="title_activity_show_status">Connection status</string> + <string name="back_main">Back to main</string> + <string name="disconnect">Disconnect</string> + <string name="force_disconnect">Force Disconnection</string> + <string name="title_activity_long_task">LongTaskActivity</string> + <string name="title_activity_manage_networks">ManageNetworksActivity</string> + <string name="delete">Delete network info</string> + <string name="manage_networks">Manage Networks</string> + <string name="title_activity_credits">Credits</string> + <string name="credit_text">Copyright 2017 Filippo \"Fil\" Bergamo<br/><br/>This app is Free Software.<br/>It\'s licensed under the terms of <a href="https://www.gnu.org/licenses/gpl.txt">GPL v3</a><br/><br/>This app is developed as a contribution to <br/><a href="http://www.replicant.us">The Replicant Project</a><br/><br/><b><u><big>Thank GNUs:</big></u></b><br/><br/><b>Tibi \"tct\" Turbureanu</b><br/>for having done the initial job of porting libre WiFi to Replicant 4.2.<br/><br/><b>Wolfgang Wiedmeyer</b><br/>for porting libre WiFi to Replicant 6.0 and for helping with the scripts.<br/><br/>To report on bugs, request features, or any help request, please refer to:<br/><a href="http://redmine.replicant.us/projects/replicant/boards">Replicant\'s Forum</a><br/></string> + +</resources>
\ No newline at end of file diff --git a/project/res/values/strings_activity_input_password.xml b/project/res/values/strings_activity_input_password.xml new file mode 100644 index 0000000..4770a51 --- /dev/null +++ b/project/res/values/strings_activity_input_password.xml @@ -0,0 +1,17 @@ +<resources> + + <string name="title_activity_input_password">Insert passwrod for network</string> + + <!-- Strings related to login --> + <string name="prompt_email">Email</string> + <string name="prompt_password">Password</string> + <string name="action_sign_in_register"><b>Sign in</b> or register</string> + <string name="action_sign_in_short">Sign in</string> + <string name="menu_forgot_password">Recover lost password</string> + <string name="login_progress_signing_in">Signing in…</string> + <string name="error_invalid_email">This email address is invalid</string> + <string name="error_invalid_password">This password is too short</string> + <string name="error_incorrect_password">This password is incorrect</string> + <string name="error_field_required">This field is required</string> + +</resources>
\ No newline at end of file diff --git a/project/res/values/styles.xml b/project/res/values/styles.xml new file mode 100644 index 0000000..c414ecc --- /dev/null +++ b/project/res/values/styles.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <!-- + Base application theme, dependent on API level. This theme is replaced + by AppBaseTheme from res/values-vXX/styles.xml on newer devices. + --> + <style name="AppBaseTheme" parent="android:Theme.Light"> + <!-- + Theme customizations available in newer API levels can go in + res/values-vXX/styles.xml, while customizations related to + backward-compatibility can go here. + --> + </style> + + <!-- Application theme. --> + <style name="AppTheme" parent="AppBaseTheme"> + <!-- All customizations that are NOT specific to a particular API-level can go here. --> + </style> + +</resources>
\ No newline at end of file |