help
Added help
This commit is contained in:
parent
f2ab9404dd
commit
101c31fc49
10 changed files with 298 additions and 18 deletions
|
|
@ -1,9 +1,17 @@
|
|||
package orgprivacy_friendly_apps.secuso.privacyfriendlybreakreminder;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.app.ActionBar;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
|
||||
public class HelpActivity extends AppCompatActivity {
|
||||
|
||||
|
|
@ -12,6 +20,7 @@ public class HelpActivity extends AppCompatActivity {
|
|||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.help);
|
||||
setupActionBar();
|
||||
|
||||
}
|
||||
|
||||
private void setupActionBar() {
|
||||
|
|
@ -33,4 +42,45 @@ public class HelpActivity extends AppCompatActivity {
|
|||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
public void clickHandler(View v){
|
||||
switch (v.getId()){
|
||||
case R.id.imageView:
|
||||
setContentView(R.layout.help2);
|
||||
ImageView img = (ImageView) findViewById(R.id.img_back);
|
||||
img.setImageResource(R.drawable.start_screen);
|
||||
break;
|
||||
case R.id.imageView1:
|
||||
setContentView(R.layout.help2);
|
||||
img = (ImageView) findViewById(R.id.img_back);
|
||||
img.setImageResource(R.drawable.settings_screen);
|
||||
break;
|
||||
case R.id.imageView2:
|
||||
setContentView(R.layout.help2);
|
||||
img = (ImageView) findViewById(R.id.img_back);
|
||||
img.setImageResource(R.drawable.create_profile_screen);
|
||||
break;
|
||||
case R.id.imageView3:
|
||||
setContentView(R.layout.help2);
|
||||
img = (ImageView) findViewById(R.id.img_back);
|
||||
img.setImageResource(R.drawable.create_profile_screen);
|
||||
break;
|
||||
case R.id.imageView4:
|
||||
setContentView(R.layout.help2);
|
||||
img = (ImageView) findViewById(R.id.img_back);
|
||||
img.setImageResource(R.drawable.general_screen);
|
||||
break;
|
||||
case R.id.imageView5:
|
||||
setContentView(R.layout.help2);
|
||||
img = (ImageView) findViewById(R.id.img_back);
|
||||
img.setImageResource(R.drawable.notification_screen);
|
||||
break;
|
||||
case R.id.img_back:
|
||||
setContentView(R.layout.help);
|
||||
break;
|
||||
default:
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
BIN
app/src/main/res/drawable/create_profile_screen.png
Normal file
BIN
app/src/main/res/drawable/create_profile_screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
BIN
app/src/main/res/drawable/general_screen.png
Normal file
BIN
app/src/main/res/drawable/general_screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
app/src/main/res/drawable/notification_screen.png
Normal file
BIN
app/src/main/res/drawable/notification_screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/res/drawable/settings_screen.png
Normal file
BIN
app/src/main/res/drawable/settings_screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
BIN
app/src/main/res/drawable/start_screen.png
Normal file
BIN
app/src/main/res/drawable/start_screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
|
|
@ -1,15 +1,225 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:weightSum="1">
|
||||
android:weightSum="1"
|
||||
android:layout_margin="20dp"
|
||||
android:scrollbarAlwaysDrawVerticalTrack="true"
|
||||
android:scrollbars="vertical">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_click_information"
|
||||
android:id="@+id/textView20"
|
||||
android:layout_alignParentTop="true"
|
||||
android:textSize="10pt"
|
||||
android:textColor="@color/yellow"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center_horizontal"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_start_screen_title"
|
||||
android:id="@+id/textView10"
|
||||
android:textSize="12pt"
|
||||
android:layout_below="@+id/textView20"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="15dp"/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/imageView"
|
||||
android:src="@drawable/start_screen"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxWidth="130dp"
|
||||
android:maxHeight="190dp"
|
||||
android:layout_below="@+id/textView10"
|
||||
android:layout_gravity="top|left"
|
||||
android:clickable="true"
|
||||
android:onClick="clickHandler"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:text="Will be completed once the exercise activity is done"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_start_screen"
|
||||
android:id="@+id/textView9"
|
||||
android:layout_toRightOf="@+id/imageView"
|
||||
android:layout_below="@+id/textView10"
|
||||
android:textSize="7pt"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_settings_screen_title"
|
||||
android:id="@+id/textView11"
|
||||
android:textSize="12pt"
|
||||
android:layout_below="@+id/imageView"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="15dp"/>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/imageView1"
|
||||
android:src="@drawable/settings_screen"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxWidth="210dp"
|
||||
android:maxHeight="190dp"
|
||||
android:layout_below="@+id/textView11"
|
||||
android:layout_gravity="top|left"
|
||||
android:clickable="true"
|
||||
android:onClick="clickHandler"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_settings_screen"
|
||||
android:id="@+id/textView12"
|
||||
android:layout_toRightOf="@+id/imageView1"
|
||||
android:layout_below="@+id/textView11"
|
||||
android:textSize="6pt"/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/imageView4"
|
||||
android:src="@drawable/general_screen"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxWidth="130dp"
|
||||
android:maxHeight="190dp"
|
||||
android:layout_below="@+id/imageView1"
|
||||
android:layout_gravity="top|left"
|
||||
android:clickable="true"
|
||||
android:onClick="clickHandler"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_settings_screen1"
|
||||
android:id="@+id/textView18"
|
||||
android:layout_toRightOf="@+id/imageView4"
|
||||
android:layout_below="@+id/imageView1"
|
||||
android:textSize="6pt"/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/imageView5"
|
||||
android:src="@drawable/notification_screen"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxWidth="130dp"
|
||||
android:maxHeight="190dp"
|
||||
android:layout_below="@+id/imageView4"
|
||||
android:layout_gravity="top|left"
|
||||
android:clickable="true"
|
||||
android:onClick="clickHandler"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_settings_screen2"
|
||||
android:id="@+id/textView19"
|
||||
android:layout_toRightOf="@+id/imageView5"
|
||||
android:layout_below="@+id/imageView4"
|
||||
android:textSize="6pt"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_create_profile_screen_title"
|
||||
android:id="@+id/textView13"
|
||||
android:textSize="12pt"
|
||||
android:layout_below="@+id/imageView5"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="15dp"/>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/imageView2"
|
||||
android:src="@drawable/create_profile_screen"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxWidth="130dp"
|
||||
android:maxHeight="190dp"
|
||||
android:layout_below="@+id/textView13"
|
||||
android:layout_gravity="top|left"
|
||||
android:clickable="true"
|
||||
android:onClick="clickHandler"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_create_profile_screen"
|
||||
android:id="@+id/textView14"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center" />
|
||||
</LinearLayout>
|
||||
android:layout_toRightOf="@+id/imageView2"
|
||||
android:layout_below="@+id/textView13"
|
||||
android:textSize="6pt"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_break_screen_title"
|
||||
android:id="@+id/textView15"
|
||||
android:textSize="12pt"
|
||||
android:layout_below="@+id/imageView2"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="15dp"/>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/imageView3"
|
||||
android:src="@drawable/create_profile_screen"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxWidth="130dp"
|
||||
android:maxHeight="190dp"
|
||||
android:layout_below="@+id/textView15"
|
||||
android:layout_gravity="top|left"
|
||||
android:clickable="true"
|
||||
android:onClick="clickHandler"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/help_break_screen"
|
||||
android:id="@+id/textView16"
|
||||
android:layout_toRightOf="@+id/imageView3"
|
||||
android:layout_below="@+id/textView15"
|
||||
android:textSize="6pt"/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text=""
|
||||
android:id="@+id/textView17"
|
||||
android:textSize="12pt"
|
||||
android:layout_below="@+id/imageView3"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="20dp"/>
|
||||
</RelativeLayout>
|
||||
</ScrollView>
|
||||
15
app/src/main/res/layout/help2.xml
Normal file
15
app/src/main/res/layout/help2.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?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:layout_margin="20dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/img_back"
|
||||
android:clickable="true"
|
||||
android:onClick="clickHandler"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
@ -119,4 +119,19 @@
|
|||
<item>6</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
|
||||
<!-- settings for HelpActivity -->
|
||||
<string name="help_start_screen">1. Spinner to select the used profile \n2. Clock shows time and is clickable. Can starts and stop the time. \n3. Button start and stops the time. \n4. Resets the time</string>
|
||||
<string name="help_start_screen_title">Main Screen</string>
|
||||
<string name="help_settings_screen">1. Open the drawer and select \'Settings\' \n2. Select \'General\' to enter the profile settings. There you can change name, time and exercises of the profile. \n3. Select \'Notifications\' to activate or deactivate notifications. </string>
|
||||
<string name="help_settings_screen2">1. If selected it allows to vibrate, to use ringtones and message-notifications. If its disabled, non of the notifications will work.\n2. Select a ringtone. \n3. Choose if the mobile phone should vibrate, when the countdown ends. \n4. Choose if you want message notifications.\n5. If the flag is set the screen will stay on, while on main or exercise screen. </string>
|
||||
<string name="help_settings_screen1">1. Choose the profile to change \n2. Enter the new name \n3. Alter the working time \n4. Alter the break time \n5. Choose if the \'Continuously\' flag is set or not. if it is, the break will start directly. if not, you can choose to take or to skip it. \n6. Choose the sections you want to train in the breaks. </string>
|
||||
<string name="help_settings_screen_title">Settings Screen</string>
|
||||
<string name="help_create_profile_screen">1. Choose the name of the profile \n2. Choose the time of your work-interval \n3. Choose the break-time of this profile \n4. Press on \'Select\', if you want to enter the exercise screen to select the training region of your profile. Ignore it, if you don\'t want to train on this profile. \n5. Check it if you want to take the break directly. Uncheck it, if you want to decide every time if you\'ll take the break. </string>
|
||||
<string name="help_create_profile_screen_title">Create New Profile Screen</string>
|
||||
<string name="help_break_screen_title">Break Screen</string>
|
||||
<string name="help_break_screen">PLACEHOLDER</string>
|
||||
<string name="help_click_information">To see the images in real size simply click on them. To return back to this view re-click on the image!</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -1,18 +1,10 @@
|
|||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- A 'parent' preference, which enables/disables child preferences (below)
|
||||
when checked/unchecked. -->
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="notifications_new_message"
|
||||
android:title="@string/pref_title_new_message_notifications" />
|
||||
|
||||
<!-- Allows the user to choose a ringtone in the 'notification' category. -->
|
||||
<!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
|
||||
<!-- NOTE: RingtonePreference's summary should be set to its value by the activity code. -->
|
||||
<RingtonePreference
|
||||
android:defaultValue="content://settings/system/notification_sound"
|
||||
android:dependency="notifications_new_message"
|
||||
android:key="notifications_new_message_ringtone"
|
||||
android:ringtoneType="notification"
|
||||
android:title="@string/pref_title_ringtone" />
|
||||
|
|
@ -20,14 +12,12 @@
|
|||
<!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:dependency="notifications_new_message"
|
||||
android:key="notifications_new_message_vibrate"
|
||||
android:title="@string/pref_title_vibrate" />
|
||||
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:dependency="notifications_new_message"
|
||||
android:key="notifications_new_message_timeLeft"
|
||||
android:title="@string/pref_title_timeLeft" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue