Commit 6a3bcfe2 authored by Ishankha K.C's avatar Ishankha K.C

device controls

device settings
application about
parent 368d7cd8
......@@ -17,6 +17,15 @@
android:supportsRtl="true"
android:theme="@style/Theme.BabyCare"
tools:targetApi="31">
<activity
android:name=".activities.ApplicationSettingsActivity"
android:exported="false" />
<activity
android:name=".activities.DeviceSettingsActivity"
android:exported="false" />
<activity
android:name=".activities.DeviceControlsActivity"
android:exported="false" />
<activity
android:name=".activities.SettingsActivity"
android:exported="false" />
......
package com.kaluwa.enterprises.babycare.activities;
import static com.kaluwa.enterprises.babycare.config.TokenSaver.clearToken;
import static com.kaluwa.enterprises.babycare.utils.Utils.animationChanger;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;
import androidx.activity.EdgeToEdge;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.PopupMenu;
import androidx.appcompat.widget.Toolbar;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.kaluwa.enterprises.babycare.MainActivity;
import com.kaluwa.enterprises.babycare.R;
public class ApplicationSettingsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_application_settings);
// define actionbar
defineActionbar();
}
private void defineActionbar() {
Toolbar toolbar = findViewById(R.id.b_care_action_bar);
setSupportActionBar(toolbar);
if (getSupportActionBar() != null) {
getSupportActionBar().setDisplayShowTitleEnabled(false);
}
toolbar.setNavigationIcon(R.drawable.ico_menu_32);
toolbar.setNavigationOnClickListener(v -> {
// Initializing the popup menu and giving the reference as current context
PopupMenu popupMenu = new PopupMenu(this, toolbar);
popupMenu.setGravity(Gravity.BOTTOM);
popupMenu.getMenuInflater().inflate(R.menu.menu_main, popupMenu.getMenu());
popupMenu.setOnMenuItemClickListener(item -> {
int id = item.getItemId();
if (id == R.id.mm_device_setting) {
Toast.makeText(this, "You Clicked " + item.getTitle(), Toast.LENGTH_SHORT).show();
} else if (id == R.id.mm_app_setting) {
Toast.makeText(this, "You Clicked " + item.getTitle(), Toast.LENGTH_SHORT).show();
} else if (id == R.id.mm_logout) {
clearToken(getApplicationContext());
Toast.makeText(this, "Logout successful.", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(this, MainActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();
animationChanger(this);
}
return true;
});
popupMenu.show();
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.user_action_menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
int id = item.getItemId();
if (id == R.id.user) {
Intent intent = new Intent(this, UserProfileActivity.class);
startActivity(intent);
animationChanger(this);
} else {
Toast.makeText(this, "No item.", Toast.LENGTH_SHORT).show();
}
return super.onOptionsItemSelected(item);
}
@Override
public void onBackPressed() {
super.onBackPressed();
animationChanger(this);
}
}
\ No newline at end of file
......@@ -51,7 +51,9 @@ public class DashboardActivity extends AppCompatActivity {
startActivity(intent);
});
btn4.setOnClickListener(v -> {
Intent intent = new Intent(this, DeviceControlsActivity.class);
startActivity(intent);
animationChanger(this);
});
btn5.setOnClickListener(v -> {
Intent intent = new Intent(this, BabyDashboardActivity.class);
......
package com.kaluwa.enterprises.babycare.activities;
import static com.kaluwa.enterprises.babycare.config.TokenSaver.clearToken;
import static com.kaluwa.enterprises.babycare.utils.Utils.animationChanger;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.PopupMenu;
import androidx.appcompat.widget.Toolbar;
import com.kaluwa.enterprises.babycare.MainActivity;
import com.kaluwa.enterprises.babycare.R;
public class DeviceControlsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_device_controls);
// define actionbar
defineActionbar();
}
private void defineActionbar() {
Toolbar toolbar = findViewById(R.id.b_care_action_bar);
setSupportActionBar(toolbar);
if (getSupportActionBar() != null) {
getSupportActionBar().setDisplayShowTitleEnabled(false);
}
toolbar.setNavigationIcon(R.drawable.ico_menu_32);
toolbar.setNavigationOnClickListener(v -> {
// Initializing the popup menu and giving the reference as current context
PopupMenu popupMenu = new PopupMenu(this, toolbar);
popupMenu.setGravity(Gravity.BOTTOM);
popupMenu.getMenuInflater().inflate(R.menu.menu_main, popupMenu.getMenu());
popupMenu.setOnMenuItemClickListener(item -> {
int id = item.getItemId();
if (id == R.id.mm_device_setting) {
Toast.makeText(this, "You Clicked " + item.getTitle(), Toast.LENGTH_SHORT).show();
} else if (id == R.id.mm_app_setting) {
Toast.makeText(this, "You Clicked " + item.getTitle(), Toast.LENGTH_SHORT).show();
} else if (id == R.id.mm_logout) {
clearToken(getApplicationContext());
Toast.makeText(this, "Logout successful.", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(this, MainActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();
animationChanger(this);
}
return true;
});
popupMenu.show();
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.user_action_menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
int id = item.getItemId();
if (id == R.id.user) {
Intent intent = new Intent(this, UserProfileActivity.class);
startActivity(intent);
animationChanger(this);
} else {
Toast.makeText(this, "No item.", Toast.LENGTH_SHORT).show();
}
return super.onOptionsItemSelected(item);
}
@Override
public void onBackPressed() {
super.onBackPressed();
animationChanger(this);
}
}
\ No newline at end of file
package com.kaluwa.enterprises.babycare.activities;
import static com.kaluwa.enterprises.babycare.config.TokenSaver.clearToken;
import static com.kaluwa.enterprises.babycare.utils.Utils.animationChanger;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;
import androidx.activity.EdgeToEdge;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.PopupMenu;
import androidx.appcompat.widget.Toolbar;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.kaluwa.enterprises.babycare.MainActivity;
import com.kaluwa.enterprises.babycare.R;
public class DeviceSettingsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_device_settings);
// define actionbar
defineActionbar();
}
private void defineActionbar() {
Toolbar toolbar = findViewById(R.id.b_care_action_bar);
setSupportActionBar(toolbar);
if (getSupportActionBar() != null) {
getSupportActionBar().setDisplayShowTitleEnabled(false);
}
toolbar.setNavigationIcon(R.drawable.ico_menu_32);
toolbar.setNavigationOnClickListener(v -> {
// Initializing the popup menu and giving the reference as current context
PopupMenu popupMenu = new PopupMenu(this, toolbar);
popupMenu.setGravity(Gravity.BOTTOM);
popupMenu.getMenuInflater().inflate(R.menu.menu_main, popupMenu.getMenu());
popupMenu.setOnMenuItemClickListener(item -> {
int id = item.getItemId();
if (id == R.id.mm_device_setting) {
Toast.makeText(this, "You Clicked " + item.getTitle(), Toast.LENGTH_SHORT).show();
} else if (id == R.id.mm_app_setting) {
Toast.makeText(this, "You Clicked " + item.getTitle(), Toast.LENGTH_SHORT).show();
} else if (id == R.id.mm_logout) {
clearToken(getApplicationContext());
Toast.makeText(this, "Logout successful.", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(this, MainActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();
animationChanger(this);
}
return true;
});
popupMenu.show();
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.user_action_menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
int id = item.getItemId();
if (id == R.id.user) {
Intent intent = new Intent(this, UserProfileActivity.class);
startActivity(intent);
animationChanger(this);
} else {
Toast.makeText(this, "No item.", Toast.LENGTH_SHORT).show();
}
return super.onOptionsItemSelected(item);
}
@Override
public void onBackPressed() {
super.onBackPressed();
animationChanger(this);
}
}
\ No newline at end of file
......@@ -52,7 +52,6 @@ public class LiveFeedActivity extends AppCompatActivity {
private Handler handler = new Handler();
private Runnable updateRunnable;
private WebSocket webSocket;
private OkHttpClient client;
@Override
protected void onCreate(Bundle savedInstanceState) {
......@@ -76,17 +75,6 @@ public class LiveFeedActivity extends AppCompatActivity {
handler.post(updateRunnable);
// Toggle flashlight
lfFlashBtn.setOnClickListener(v -> toggleFlashlight());
// Initialize the WebSocket connection
// client = new OkHttpClient();
// Request request = new Request.Builder()
// .url(EMOTIONAL_VIDEO_PROCESS_WS_URL)
// .build();
// BabyEmotionWebSocketListener listener = new BabyEmotionWebSocketListener(this, tvLlStatusValue);
// webSocket = client.newWebSocket(request, listener);
//
// // Clean up the WebSocket connection when done
// client.dispatcher().executorService().shutdown();
}
private void toggleFlashlight() {
......
......@@ -49,7 +49,9 @@ public class SettingsActivity extends AppCompatActivity {
private void onClickListeners() {
btnDevSet.setOnClickListener(v -> {
Intent intent = new Intent(this, DeviceSettingsActivity.class);
startActivity(intent);
animationChanger(this);
});
btnProfSet.setOnClickListener(v -> {
......@@ -59,7 +61,9 @@ public class SettingsActivity extends AppCompatActivity {
});
btnAppSet.setOnClickListener(v -> {
Intent intent = new Intent(this, ApplicationSettingsActivity.class);
startActivity(intent);
animationChanger(this);
});
}
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape android:shape="rectangle">
<solid android:color="@color/dark_purple"/> <!-- Pressed state color -->
<corners android:radius="20dp"/> <!-- Rounded corners for pressed state -->
<stroke android:width="2dp" android:color="@color/purple"/> <!-- Purple border -->
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="@color/white"/> <!-- Default color -->
<corners android:radius="50dp"/> <!-- Rounded corners for default state -->
<stroke android:width="2dp" android:color="@color/purple"/> <!-- Purple border -->
</shape>
</item>
</selector>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="32dp" android:viewportHeight="124" android:viewportWidth="124" android:width="32dp">
<path android:fillColor="#000000" android:pathData="M29.8,5.6c-1.5,0.8 -3.2,2.3 -3.8,3.4 -1.4,2.6 -1.4,103.4 0,106.1 2.5,4.5 5.1,4.9 36.2,4.9 27.4,-0 29.5,-0.1 32.5,-2 3.8,-2.3 4.5,-4.5 4.1,-12.2l-0.3,-5.6 -3.5,1.7c-3.1,1.4 -3.5,2.1 -3.8,5.9l-0.3,4.2 -29,-0 -28.9,-0 0,-50 0,-50 6.6,-0c5.2,-0 7,0.4 8,1.7 1.1,1.6 3,1.8 14.4,1.8 11.4,-0 13.3,-0.2 14.4,-1.8 1,-1.3 2.8,-1.7 7.9,-1.7l6.6,-0 0.3,4.2c0.3,3.8 0.7,4.5 3.8,5.9l3.5,1.7 0.3,-5.6c0.4,-7.7 -0.3,-9.9 -4.1,-12.2 -3,-1.9 -5.1,-2 -32.7,-2 -24.1,0.1 -30,0.4 -32.2,1.6zM65.8,10.2c-0.3,2 -1,2.3 -5.1,2.6 -5.1,0.3 -7.9,-1 -7,-3.4 0.4,-1 2.2,-1.4 6.5,-1.4 5.6,-0 5.9,0.1 5.6,2.2zM74.6,9.1c0.3,0.6 0,1.8 -0.9,2.6 -1.8,1.8 -3.7,0.9 -3.7,-1.8 0,-2.1 3.4,-2.7 4.6,-0.8z" android:strokeColor="#00000000"/>
<path android:fillCol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9 2.6,-2 1.7,-1.9 1.7,-2.1 0,-4 -2.2,-2.4 -2.9,-2.5 -4.9,-0.4z" android:strokeColor="#00000000"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="32dp" android:viewportHeight="124" android:viewportWidth="124" android:width="32dp">
<path android:fillColor="#000000" android:pathData="M55.5,13.9c-11.2,3 -17.5,12.1 -17.5,25.1 0.1,8.2 1.4,12.6 5.5,17.6 9.7,11.8 27.2,11.9 36.8,0.2 4.1,-5 5.7,-10.1 5.7,-17.8 0,-5.4 -1.6,-13 -2.9,-14 -0.3,-0.3 -1.4,-1.7 -2.3,-3.1 -3.9,-6.2 -16.9,-10.3 -25.3,-8z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000" android:pathData="M95.4,43.5c-1.3,3.4 4.6,11.6 11.5,15.9 4.8,3.1 7.7,3.3 8.6,0.6 1.1,-3.6 -6.1,-13.6 -12.2,-16.8 -3.1,-1.7 -7.3,-1.5 -7.9,0.3z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000" android:pathData="M89.1,72.1c-4.5,1.4 -8,3.6 -11.4,7.3 -4.5,5 -4.5,5.1 -5.8,11.5 -1.1,4.9 -1.1,7.3 0,12.2 1.4,6.7 1.7,7.4 7.8,13.3 2.8,2.8 5.9,4.6 10,5.9 7.4,2.2 8.9,2.2 16,-0.4 7.8,-2.9 14.2,-9.4 16.6,-17 2.1,-6.9 2.1,-7.9 0,-14.8 -3.4,-11.3 -11.9,-18 -23.7,-18.7 -3.3,-0.2 -7.6,0.1 -9.5,0.7zM91.7,87.8c1.3,2.8 1.4,3.8 0.4,5.4 -1.1,1.8 -0.9,2.5 2.1,5.5 2.8,3 3.8,3.4 6.7,2.9 3.5,-0.5 7.7,1.1 10,3.7 1,1.3 0.7,2 -1.6,4.1 -1.5,1.4 -3.6,2.6 -4.7,2.6 -6.6,-0 -22.6,-16.6 -22.6,-23.5 0,-0.7 1.2,-2.4 2.6,-3.9 3.1,-3 4.4,-2.4 7.1,3.2z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000" android:pathData="M39.5,83.5c-15.6,5.6 -22,10.3 -22,16.5 0,2.2 0.6,4.5 1.3,5.2 1,1 7,1.4 22.5,1.6l21.2,0.3 0,-10 0,-10.1 -3.5,-0c-1.9,-0 -5.8,-1.3 -8.5,-2.8l-5,-2.8 -6,2.1z" android:strokeColor="#00000000"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="32dp" android:viewportHeight="124" android:viewportWidth="124" android:width="32dp">
<path android:fillColor="#000000" android:pathData="M69,13.7c-0.8,0.3 -2.8,1.1 -4.5,1.9 -1.6,0.7 -5.9,2.5 -9.5,3.9 -3.6,1.4 -7.9,3.3 -9.7,4.1 -1.7,0.8 -3.5,1.4 -4,1.4 -0.4,0.1 -2.6,0.9 -4.8,2 -6.6,3.2 -10.7,2.6 -22.7,-3.6 -1.4,-0.8 -3.1,-1.4 -3.7,-1.4 -0.8,-0 -1.1,5.1 -1.1,16l0,15.9 3.9,1.1c2.2,0.6 5.2,1.7 6.8,2.5 1.5,0.8 3.5,1.5 4.3,1.5 0.8,-0 2.8,0.7 4.4,1.5 3.3,1.7 5.9,1.9 8.4,0.5 0.9,-0.5 6.7,-3 12.7,-5.6 21.5,-9 25.4,-10.9 27.3,-13.2 1.8,-2.3 1.5,-4.9 -1,-7.2l-2.2,-2 3.3,-0c1.8,-0 4.9,0.7 6.9,1.6 2.1,0.9 5.5,2.5 7.7,3.5 2.2,1 5.2,2.1 6.8,2.5 1.5,0.3 3,1 3.3,1.5 0.2,0.5 2.3,1.3 4.5,1.9 3.3,0.9 4.5,0.8 6.5,-0.5 2.4,-1.5 3.1,-4.8 1.6,-7.2 -1,-1.6 -18.5,-11.7 -37.2,-21.5 -3.5,-1.8 -5.3,-2.1 -8,-1.1z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000" android:pathData="M74.5,64.4c-7.5,3.5 -13.5,10.7 -13.5,16.3 0,1 -0.9,2.4 -2.1,3.1 -2.9,1.8 -2.3,7.6 0.9,8 1.2,0.2 2.2,0.8 2.2,1.4 0,1.9 6,8.7 9.8,11 5.4,3.3 16.2,3.2 21.7,-0.2 3.9,-2.4 7,-5.5 9.1,-9.2 0.6,-1.1 2.1,-2.5 3.5,-3.1 3.1,-1.6 3.7,-5.5 1.1,-7.6 -1.1,-0.9 -2.7,-3.8 -3.7,-6.4 -2.5,-6.6 -7,-11.1 -13.5,-13.6 -6.9,-2.6 -9.2,-2.6 -15.5,0.3zM77.6,79.4c2.9,3 1,7.6 -3.1,7.6 -2.7,-0 -4.5,-1.8 -4.5,-4.5 0,-4.1 4.6,-6 7.6,-3.1zM94.3,80.1c0.5,0.9 0.7,2.8 0.3,4.2 -0.5,2.2 -1.2,2.7 -3.6,2.7 -3.2,-0 -4.6,-2.5 -3.6,-6.6 0.5,-2 1.2,-2.5 3.3,-2.2 1.4,0.2 3,1 3.6,1.9zM90.8,96.2c-0.3,0.7 -2.2,1.9 -4.3,2.6 -3.1,1 -4.6,1 -7.9,-0.1 -7.1,-2.4 -5.7,-3.7 3.9,-3.7 6.5,-0 8.6,0.3 8.3,1.2z" android:strokeColor="#00000000"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="32dp" android:viewportHeight="124" android:viewportWidth="124" android:width="32dp">
<path android:fillColor="#000000" android:pathData="M52,14c-7.9,1.3 -18,6.8 -24.6,13.4 -19.1,19.1 -19,50.4 0.2,69.2 16.5,16.3 42,18.8 61.9,6.2 2.6,-1.7 11.7,-10.7 13.3,-13.3 12.6,-20.2 10.1,-45.7 -6.2,-62.1 -11.6,-11.6 -27.3,-16.3 -44.6,-13.4zM82.8,57.7l0.2,20.2 -2.7,2.5c-2,1.9 -3.9,2.6 -6.7,2.6 -4.8,-0 -7.6,-2.3 -7.6,-6.3 0,-3.9 2.6,-6.7 6.1,-6.7 5.6,-0 5.9,-0.5 5.9,-10.4l0,-9.2 -7.7,0.8c-4.3,0.4 -10.5,1.1 -13.8,1.5l-6,0.8 -0.5,14.7c-0.5,13.9 -0.6,14.7 -2.9,16.7 -3,2.6 -9.6,2.8 -12.3,0.4 -2.2,-2 -2.3,-7 -0.1,-9.5 0.9,-1 2.9,-1.8 4.4,-1.8 5.9,-0 5.9,0.1 5.9,-16.5 0,-11 0.3,-15.5 1.3,-16.2 0.6,-0.6 4.1,-1.3 7.7,-1.7 3.6,-0.4 9,-1 12,-1.5 3,-0.5 8,-0.8 11,-0.7l5.5,0.1 0.3,20.2z" android:strokeColor="#00000000"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="32dp" android:viewportHeight="120" android:viewportWidth="120" android:width="32dp">
<path android:fillColor="#000000" android:pathData="M54,13c0,0.5 -2.2,1 -5,1 -2.7,-0 -5,0.4 -5,1 0,0.5 -0.9,1 -2,1 -1.1,-0 -2,0.4 -2,1 0,0.5 -0.9,1 -2,1 -1.1,-0 -2,0.4 -2,1 0,0.5 -0.7,1 -1.5,1 -2,-0 -14.5,12.5 -14.5,14.5 0,0.8 -0.4,1.5 -1,1.5 -0.5,-0 -1,0.9 -1,2 0,1.1 -0.4,2 -1,2 -0.5,-0 -1,0.9 -1,2 0,1.1 -0.4,2 -1,2 -0.5,-0 -1,2.2 -1,5 0,2.7 -0.4,5 -1,5 -0.6,-0 -1,2.7 -1,6 0,3.3 0.4,6 1,6 0.6,-0 1,2.2 1,5 0,2.7 0.5,5 1,5 0.6,-0 1,0.9 1,2 0,1.1 0.5,2 1,2 0.6,-0 1,0.9 1,2 0,1.1 0.5,2 1,2 0.6,-0 1,0.7 1,1.5 0,2 12.5,14.5 14.5,14.5 0.8,-0 1.5,0.4 1.5,1 0,0.5 0.9,1 2,1 1.1,-0 2,0.4 2,1 0,0.5 0.9,1 2,1 1.1,-0 2,0.4 2,1 0,0.5 2.3,1 5,1 2.8,-0 5,0.4 5,1 0,0.6 3,1 7,1 4,-0 7,-0.4 7,-1 0,-0.6 0.7,-1 1.6,-1 2,-0 4.4,-2.4 4.4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,-0 4.4,2.4 4.4,4.3 0,0.9 0.6,1.8 1.3,2.1 1,0.5 1,0.7 0,1.2 -0.7,0.3 -1.3,1.2 -1.3,2 0,2.4 -4.7,6.4 -7.5,6.4 -1.4,-0 -2.5,-0.5 -2.5,-1 0,-0.6 -0.7,-1 -1.6,-1 -4.7,-0 -6,-7.5 -1.9,-11.5 1.3,-1.4 3.1,-2.5 4,-2.5 0.8,-0 1.5,-0.5 1.5,-1 0,-0.6 0.5,-1 1,-1 0.6,-0 1,0.4 1,1zM33.5,54.5c3.3,3.2 3.3,7.8 0,11 -7.2,7.3 -18.3,-3.5 -11.2,-11 3,-3.3 8,-3.3 11.2,-0zM97.5,54.5c3.3,3.2 3.3,7.8 0,11 -7.2,7.3 -18.3,-3.5 -11.2,-11 3,-3.3 8,-3.3 11.2,-0zM65.5,82.5c3.6,3.5 3.6,11.5 0,15 -3.5,3.6 -11.5,3.6 -15,-0 -3.4,-3.3 -3.5,-11.5 -0.2,-15 3.2,-3.5 11.8,-3.5 15.2,-0z" android:strokeColor="#00000000"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="32dp" android:viewportHeight="124" android:viewportWidth="124" android:width="32dp">
<path android:fillColor="#000000" android:pathData="M53.7,13.9c-4.8,1 -10.5,5.6 -13,10.5 -1.9,3.6 -2.5,10 -1.9,20.1 0,1.6 0.1,4.8 0,6.9 -0.1,2.8 0.4,4.4 1.9,5.5 1.1,0.9 2.3,2.8 2.6,4.1 0.3,1.4 2,4 3.7,5.8 2.4,2.7 3,4.2 3,7.8 0,3 -0.5,4.6 -1.5,5 -0.8,0.3 -1.7,1.3 -2,2.2 -0.5,1.9 -4.3,3.8 -11.3,5.7 -5.6,1.5 -11.8,4.2 -13.8,5.8 -4.3,3.5 -6.3,6.4 -7.3,10.3 -2,8 -3.5,7.4 19.8,7.4l20.9,-0 0.7,-3.2c0.4,-1.8 1.2,-3.9 1.8,-4.6 1.4,-1.8 1.5,-11.1 0.1,-12 -1.9,-1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-0.7,4.6 -4.1,8.1 -3.5,3.4 -4.8,4.1 -8.1,4.1 -6.9,-0 -10.6,-3.2 -13.1,-11.2 -1.6,-4.7 3.2,-12.1 8.9,-13.8 4,-1.2 3.9,-1.2 8.4,0.6z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000" android:pathData="M96.5,97c-1.8,2 -1.8,2.1 0.1,4.1 3.6,3.5 8.1,-0.5 4.8,-4.2 -2.2,-2.4 -2.7,-2.4 -4.9,0.1z" android:strokeColor="#00000000"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="32dp" android:viewportHeight="124" android:viewportWidth="124" android:width="32dp">
<path android:fillColor="#000000" android:pathData="M15.3,15.6c-2.1,2.1 -2.4,3.2 -2,6.2 0.4,2 1.3,4 2.2,4.4 1.3,0.8 1.5,6.3 1.5,43.7 0,37.9 0.2,43 1.6,44.2 2.2,1.8 4.8,-0 5.4,-3.7l0.5,-2.9 37.5,-0 37.5,-0 0.5,2.9c0.6,3.7 3.2,5.5 5.4,3.7 1.4,-1.2 1.6,-6.3 1.6,-44.3 0,-36.8 0.2,-42.9 1.5,-43.4 1.9,-0.8 3,-6.7 1.6,-9.3 -2.9,-5.4 -10.5,-5.2 -13.5,0.3 -1.6,3.1 -1.7,3.6 -0.2,6.4 0.9,1.7 2,3.4 2.6,3.7 0.5,0.3 1,1.7 1,3.1l0,2.4 -38,-0 -38,-0 0,-2.4c0,-1.4 0.4,-2.7 0.9,-3.1 0.6,-0.3 1.7,-2 2.6,-3.7 1.5,-3 1.4,-3.5 -0.2,-6.5 -2.7,-5 -7.9,-5.8 -12,-1.7zM33,59.5l0,18.5 4,-0 4,-0 0,-18.5 0,-18.5 4.5,-0 4.5,-0 0,18.5 0,18.5 4,-0 4,-0 0,-18.5 0,-18.5 4,-0 4,-0 0,18.5 0,18.5 4,-0 4,-0 0,-18.5 0,-18.5 4.5,-0 4.5,-0 0,18.5 0,18.5 4,-0 4,-0 0,-18.6 0,-18.5 4.3,0.3 4.2,0.3 0,22.5 0,22.5 -37.5,-0 -37.5,-0 -0.3,-21.5c-0.1,-11.8 0,-22 0.2,-22.7 0.3,-0.8 2.2,-1.3 4.6,-1.3l4,-0 0,18.5z" android:strokeColor="#00000000"/>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@android:color/transparent"/> <!-- Background color -->
<stroke android:width="2dp" android:color="@color/purple"/> <!-- Border color and width -->
<corners android:radius="16dp"/> <!-- Rounded corners -->
<padding android:left="2dp" android:top="2dp" android:right="2dp" android:bottom="2dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activities.ApplicationSettingsActivity">
<include
layout="@layout/appbar"/>
<ImageView
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/b_care_action_bar"
app:layout_constraintBottom_toBottomOf="parent"
android:src="@drawable/background"
android:contentDescription="background-image"
android:scaleType="centerCrop"
android:alpha="0.4"/>
<RelativeLayout
android:id="@+id/rl_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/rl_background"
android:backgroundTint="#62178F"
app:layout_constraintTop_toTopOf="@+id/background"
app:layout_constraintStart_toStartOf="@id/background"
app:layout_constraintEnd_toEndOf="@id/background"
android:padding="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Application Settings"
android:textAlignment="center"
android:textColor="@color/white"
android:textAllCaps="true"
android:fontFamily="@font/inknut_antiqua_regular"
android:textSize="20sp"/>
</RelativeLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toBottomOf="@id/rl_header"
app:layout_constraintBottom_toBottomOf="@id/background"
app:layout_constraintEnd_toEndOf="@id/background"
app:layout_constraintStart_toStartOf="@id/background"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="8dp"
android:paddingBottom="50dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:padding="16dp"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="16dp"
app:cardElevation="4dp"
android:background="@drawable/image_border">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/img_application_settings"
android:contentDescription="Application Settings"
android:scaleType="centerCrop"/>
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/tvAppName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Childy App"
android:textAllCaps="true"
android:layout_marginTop="18dp"
android:textStyle="bold"
android:textColor="@color/purple"
android:textSize="24sp"
android:fontFamily="@font/inknut_antiqua_regular"/>
<TextView
android:id="@+id/tvAbout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textStyle="bold"
android:textSize="16sp"
android:textColor="@color/black"
android:text="@string/about"
android:justificationMode="inter_word"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textStyle="bold"
android:textSize="14sp"
android:textColor="@color/purple"
android:text="@string/version"
android:textAlignment="textEnd"/>
</LinearLayout>
<LinearLayout
android:id="@+id/btnChangeAppTheme"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:layout_marginTop="28dp"
android:layout_marginRight="40dp"
android:background="@drawable/btn_backgroup_radius"
android:padding="6dp"
android:orientation="horizontal"
android:gravity="center_vertical">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Color Theme"
android:textColor="@color/black"
android:textStyle="bold"
android:textAlignment="center"
android:fontFamily="@font/inknut_antiqua_regular"
android:textSize="18sp"/>
<ImageView
android:layout_width="0dp"
android:layout_height="80dp"
android:src="@drawable/ico_pallete"
android:contentDescription="Settings"
android:layout_weight="0.5"
app:tint="@color/purple"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activities.DeviceControlsActivity">
<include
layout="@layout/appbar"/>
<ImageView
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/b_care_action_bar"
app:layout_constraintBottom_toBottomOf="parent"
android:src="@drawable/background"
android:contentDescription="background-image"
android:scaleType="centerCrop"
android:alpha="0.4"/>
<RelativeLayout
android:id="@+id/rl_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/rl_background"
android:backgroundTint="#62178F"
app:layout_constraintTop_toTopOf="@+id/background"
app:layout_constraintStart_toStartOf="@id/background"
app:layout_constraintEnd_toEndOf="@id/background"
android:padding="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Device Controls"
android:textAlignment="center"
android:textColor="@color/white"
android:textAllCaps="true"
android:fontFamily="@font/inknut_antiqua_regular"
android:textSize="20sp"/>
</RelativeLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toBottomOf="@id/rl_header"
app:layout_constraintBottom_toBottomOf="@id/background"
app:layout_constraintEnd_toEndOf="@id/background"
app:layout_constraintStart_toStartOf="@id/background"
android:scrollbars="none">
<GridLayout
android:id="@+id/gridLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:columnCount="2"
android:rowCount="3"
android:orientation="horizontal"
android:paddingTop="20dp"
android:paddingBottom="20dp"
android:layout_gravity="center_horizontal">
<LinearLayout
android:id="@+id/btnSwing"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_margin="16dp"
android:background="@drawable/positive_btn_background"
android:backgroundTint="@color/white"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="90dp"
android:layout_height="90dp"
android:src="@drawable/ico_swing_set"
app:tint="@color/icon_color" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:fontFamily="@font/acme_regular"
android:text="Swing ON"
android:textColor="@color/black"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/btnPlaySong"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_margin="16dp"
android:background="@drawable/positive_btn_background"
android:backgroundTint="@color/white"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="90dp"
android:layout_height="90dp"
android:src="@drawable/ico_music_set"
app:tint="@color/icon_color" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:fontFamily="@font/acme_regular"
android:text="Play Song"
android:textColor="@color/black"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/btnCallNanny"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_margin="16dp"
android:background="@drawable/positive_btn_background"
android:backgroundTint="@color/white"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="90dp"
android:layout_height="90dp"
android:src="@drawable/ico_call_nany_set"
app:tint="@color/icon_color" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:fontFamily="@font/acme_regular"
android:text="Call Nanny"
android:textColor="@color/black"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/btnCallCradle"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_margin="16dp"
android:background="@drawable/positive_btn_background"
android:backgroundTint="@color/white"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="90dp"
android:layout_height="90dp"
android:src="@drawable/ico_call_cradle_set"
app:tint="@color/icon_color" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:fontFamily="@font/acme_regular"
android:text="Call Cradle"
android:textColor="@color/black"
android:textSize="15sp" />
</LinearLayout>
</GridLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activities.DeviceSettingsActivity">
<include
layout="@layout/appbar"/>
<ImageView
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/b_care_action_bar"
app:layout_constraintBottom_toBottomOf="parent"
android:src="@drawable/background"
android:contentDescription="background-image"
android:scaleType="centerCrop"
android:alpha="0.4"/>
<RelativeLayout
android:id="@+id/rl_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/rl_background"
android:backgroundTint="#62178F"
app:layout_constraintTop_toTopOf="@+id/background"
app:layout_constraintStart_toStartOf="@id/background"
app:layout_constraintEnd_toEndOf="@id/background"
android:padding="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Settings"
android:textAlignment="center"
android:textColor="@color/white"
android:textAllCaps="true"
android:fontFamily="@font/inknut_antiqua_regular"
android:textSize="20sp"/>
</RelativeLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toBottomOf="@id/rl_header"
app:layout_constraintBottom_toBottomOf="@id/background"
app:layout_constraintEnd_toEndOf="@id/background"
app:layout_constraintStart_toStartOf="@id/background"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<LinearLayout
android:id="@+id/btnSetCradleCont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:background="@drawable/positive_btn_background"
android:backgroundTint="@color/white"
android:orientation="horizontal"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:paddingStart="30dp"
android:paddingEnd="30dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:fontFamily="@font/acme_regular"
android:text="Cradle Contact"
android:textColor="@color/black"
android:textSize="18sp" />
<ImageView
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_gravity="center_vertical"
android:src="@drawable/ico_call_cradle_set"
app:tint="@color/icon_color" />
</LinearLayout>
<LinearLayout
android:id="@+id/btnSetNannyCont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:background="@drawable/positive_btn_background"
android:backgroundTint="@color/white"
android:orientation="horizontal"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:paddingStart="30dp"
android:paddingEnd="30dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:fontFamily="@font/acme_regular"
android:text="Nanny Contact"
android:textColor="@color/black"
android:textSize="18sp" />
<ImageView
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_gravity="center_vertical"
android:src="@drawable/ico_call_nany_set"
app:tint="@color/icon_color" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -74,7 +74,7 @@
android:id="@+id/tvLlStatusLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Last Baby's Status:"
android:text="Last Baby's Mood:"
android:textColor="@color/black"
android:textSize="18sp"
android:layout_marginEnd="8dp"/>
......
......@@ -117,7 +117,7 @@
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_gravity="center_vertical"
android:src="@drawable/ico_computer_settings"
android:src="@drawable/ico_prof_set"
app:tint="@color/icon_color" />
</LinearLayout>
......@@ -148,7 +148,7 @@
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_gravity="center_vertical"
android:src="@drawable/ico_computer_settings"
android:src="@drawable/ico_app_set"
app:tint="@color/icon_color" />
</LinearLayout>
......
......@@ -20,4 +20,6 @@
<string name="last_name_label">Last name</string>
<string name="birth_date_req">Birth date<font color="#FF0000"> *</font></string>
<string name="sex">Sex<font color="#FF0000"> *</font></string>
<string name="about">A child is a human being between the stages of birth and puberty, or between the developmental periods of infancy and puberty. It may also refer to an unborn human being. The legal definition of a child generally refers to a minor, which is a person younger than the age of majority.</string>
<string name="version">Version 0.1</string>
</resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment