Commit 0126dcf0 authored by RAUSHAN RAJ's avatar RAUSHAN RAJ

[Raushan] - voice as a service working and Ui chnage

parent 240c358e
......@@ -40,7 +40,7 @@
</receiver>
<service
android:name=".AlarmService"
android:name=".ReadTheMessage"
android:enabled="true" />
</application>
......
......@@ -85,28 +85,29 @@ public class AlarmReceiver extends BroadcastReceiver {
// tts
// context.startService(new Intent(context, ReadTheMessage.class));
// String number = mTitle;
// Intent i = new Intent(this, ReadTheMessage.class);
// i.putExtra("MyNumber", number);
// startService(i);
//
Intent i = new Intent(context, ReadTheMessage.class);
i.putExtra("MyTitle", mTitle);
context.startService(i);
context.startService(i);
context.startService(i);
//context.startService(new Intent(context, ReadTheMessage.class));
Intent speechIntent = new Intent();
speechIntent.setClass(context, ReadTheMessage.class);
speechIntent.putExtra("MESSAGE",mTitle );
speechIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
context.startActivity(speechIntent);
// Intent speechIntent = new Intent();
// speechIntent.setClass(context, ReadTheMessage.class);
// speechIntent.putExtra("MESSAGE",mTitle );
// speechIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
// context.startActivity(speechIntent);
////
// Intent speechIntent = new Intent();
......
......@@ -86,11 +86,11 @@ public class NotificationHelper extends ContextWrapper {
.setContentText(mTitle)
//.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM))
// .setSound(Uri.fromFile(new File("SDCARD/s1.mp3")))
.setSound(null)
//.setSound(null)
.setPriority(NotificationManager.IMPORTANCE_LOW)
.setContentIntent(mClick)
.setAutoCancel(true)
.setOnlyAlertOnce(false);
.setOnlyAlertOnce(true);
}
public TextToSpeech getTextToSpeech(){
......
......@@ -30,7 +30,13 @@ public class ReadTheMessage extends Service implements TextToSpeech.OnInitListen
public void onCreate() {
mTts = new TextToSpeech(this, this);
// This is a good place to set spokenText
spokenText="raushan";
// spokenText="raushan raushan raushan raushan";
}
@Override
public int onStartCommand (Intent intent, int flags, int startId) {
spokenText = intent.getStringExtra("MyTitle");
return START_STICKY;
}
@Override
......@@ -38,7 +44,13 @@ public class ReadTheMessage extends Service implements TextToSpeech.OnInitListen
if (status == TextToSpeech.SUCCESS) {
int result = mTts.setLanguage(Locale.US);
if (result != TextToSpeech.LANG_MISSING_DATA && result != TextToSpeech.LANG_NOT_SUPPORTED) {
mTts.speak(spokenText, TextToSpeech.QUEUE_FLUSH, null);
mTts.speak(spokenText, TextToSpeech.QUEUE_ADD, null);
}
}
}
......
......@@ -28,6 +28,7 @@ import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.Switch;
......@@ -43,7 +44,7 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton;
import java.util.Calendar;
public class ReminderAddActivity extends AppCompatActivity {
public class ReminderAddActivity extends AppCompatActivity implements View.OnClickListener{
private Toolbar mToolbar;
private EditText mTitleText;
......@@ -60,6 +61,7 @@ public class ReminderAddActivity extends AppCompatActivity {
private String mRepeatNo;
private String mRepeatType;
private String mActive;
private Button btnDatePicker, btnTimePicker;
// Values for orientation change
private static final String KEY_TITLE = "title_key";
......@@ -86,14 +88,15 @@ public class ReminderAddActivity extends AppCompatActivity {
// Initialize Views
mToolbar = (Toolbar) findViewById(R.id.toolbar);
mTitleText = (EditText) findViewById(R.id.reminder_title);
mDateText = (TextView) findViewById(R.id.set_date);
mTimeText = (TextView) findViewById(R.id.set_time);
mDateText = (EditText) findViewById(R.id.set_date);
mTimeText = (EditText) findViewById(R.id.set_time);
mRepeatText = (TextView) findViewById(R.id.set_repeat);
mRepeatNoText = (TextView) findViewById(R.id.set_repeat_no);
mRepeatTypeText = (TextView) findViewById(R.id.set_repeat_type);
mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
// mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
// mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
btnDatePicker = (Button) findViewById(R.id.btn_date);
btnTimePicker = (Button) findViewById(R.id.btn_time);
// Setup Toolbar
setSupportActionBar(mToolbar);
getSupportActionBar().setTitle(R.string.title_activity_add_reminder);
......@@ -168,15 +171,15 @@ public class ReminderAddActivity extends AppCompatActivity {
mActive = savedInstanceState.getString(KEY_ACTIVE);
}
// Setup up active buttons
if (mActive.equals("false")) {
mFAB1.show();
mFAB2.hide();
} else if (mActive.equals("true")) {
mFAB1.hide();
mFAB2.show();
}
// // Setup up active buttons
// if (mActive.equals("false")) {
// mFAB1.show();
// mFAB2.hide();
//
// } else if (mActive.equals("true")) {
// mFAB1.hide();
// mFAB2.show();
// }
}
// To save state on device rotation
......@@ -237,7 +240,7 @@ public class ReminderAddActivity extends AppCompatActivity {
datePickerDialog.show();
}
// Obtain time from time picker
// // Obtain time from time picker
// @Override
// public void onTimeSet(TimePicker timePicker, int hourOfDay, int minute) {
// mHour = hourOfDay;
......@@ -261,24 +264,76 @@ public class ReminderAddActivity extends AppCompatActivity {
// mDateText.setText(mDate);
// }
// On clicking the active button
public void selectFab1(View v) {
mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
mFAB1.hide();
mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
mFAB2.show();
mActive = "true";
}
// On clicking the inactive button
public void selectFab2(View v) {
mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
mFAB2.hide();
mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
mFAB1.show();
mActive = "false";
@Override
public void onClick(View v) {
if (v == btnDatePicker) {
// Get Current Date
final Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);
DatePickerDialog datePickerDialog = new DatePickerDialog(this,
new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year,
int monthOfYear, int dayOfMonth) {
mDateText.setText(dayOfMonth + "-" + (monthOfYear + 1) + "-" + year);
}
}, mYear, mMonth, mDay);
datePickerDialog.show();
}
if (v == btnTimePicker) {
// Get Current Time
final Calendar c = Calendar.getInstance();
mHour = c.get(Calendar.HOUR_OF_DAY);
mMinute = c.get(Calendar.MINUTE);
// Launch Time Picker Dialog
TimePickerDialog timePickerDialog = new TimePickerDialog(this,
new TimePickerDialog.OnTimeSetListener() {
@Override
public void onTimeSet(TimePicker view, int hourOfDay,
int minute) {
mTimeText.setText(hourOfDay + ":" + minute);
}
}, mHour, mMinute, false);
timePickerDialog.show();
}
}
// // On clicking the active button
// public void selectFab1(View v) {
// // mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
// mFAB1.hide();
// mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
// mFAB2.show();
// mActive = "true";
// }
//
// // On clicking the inactive button
// public void selectFab2(View v) {
// mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
// mFAB2.hide();
// mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
// mFAB1.show();
// mActive = "false";
// }
// On clicking the repeat switch
public void onSwitchRepeat(View view) {
boolean on = ((Switch) view).isChecked();
......
......@@ -102,8 +102,8 @@ public class ReminderEditActivity extends AppCompatActivity {
mRepeatText = (TextView) findViewById(R.id.set_repeat);
mRepeatNoText = (TextView) findViewById(R.id.set_repeat_no);
mRepeatTypeText = (TextView) findViewById(R.id.set_repeat_type);
mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
// mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
//mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
mRepeatSwitch = (Switch) findViewById(R.id.repeat_switch);
// Setup Toolbar
......@@ -180,15 +180,15 @@ public class ReminderEditActivity extends AppCompatActivity {
mActive = savedInstanceState.getString(KEY_ACTIVE);
}
// Setup up active buttons
if (mActive.equals("false")) {
mFAB1.show();
mFAB2.hide();
} else if (mActive.equals("true")) {
mFAB1.hide();
mFAB2.show();
}
// // Setup up active buttons
// if (mActive.equals("false")) {
// mFAB1.show();
// mFAB2.hide();
//
// } else if (mActive.equals("true")) {
// mFAB1.hide();
// mFAB2.show();
// }
// Setup repeat switch
if (mRepeat.equals("false")) {
......@@ -298,22 +298,22 @@ public class ReminderEditActivity extends AppCompatActivity {
// }
// On clicking the active button
public void selectFab1(View v) {
mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
mFAB1.hide();
mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
mFAB2.show();
mActive = "true";
}
// On clicking the inactive button
public void selectFab2(View v) {
mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
mFAB2.hide();
mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
mFAB1.show();
mActive = "false";
}
// public void selectFab1(View v) {
// mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
// mFAB1.hide();
// mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
// mFAB2.show();
// mActive = "true";
// }
//
// // On clicking the inactive button
// public void selectFab2(View v) {
// mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
// mFAB2.hide();
// mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
// mFAB1.show();
// mActive = "false";
// }
// On clicking the repeat switch
public void onSwitchRepeat(View view) {
......
......@@ -32,318 +32,223 @@
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:background="?attr/colorPrimary" />
<LinearLayout
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/toolbar"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:id="@+id/add_reminder_layout_top"
android:background="@color/primary"
android:orientation="vertical"
android:layout_height="148dp">
android:background="#00B33D3D">
<EditText
android:id="@+id/textTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="03"
android:fontFamily="sans-serif"
android:hint="Title"
android:padding="16dp"
android:textColor="#772406"
android:textSize="25sp" />
<EditText
android:layout_width="match_parent"
android:id="@+id/reminder_title"
android:layout_marginLeft="72dp"
android:hint="@string/add_reminder"
android:textSize="25dp"
android:lines="4"
android:minLines="4"
android:gravity="top|left"
android:textColor="@android:color/white"
android:scrollHorizontally="false"
android:textColorHint="@color/primary_text_disabled_material_dark"
android:inputType="textCapWords|textMultiLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/textTitle"
android:layout_alignBottom="@+id/textTitle"
android:layout_marginStart="31dp"
android:layout_marginLeft="31dp"
android:layout_toEndOf="@+id/textTitle"
android:layout_toRightOf="@+id/textTitle"
android:ems="10"
android:hint="Reminder Text"
android:inputType="textCapSentences"
android:textColor="#772406" />
</RelativeLayout>
<EditText
android:id="@+id/set_date"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="132dp"
android:autofillHints="" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SELECT DATE"
android:id="@+id/btn_date"
android:textColor="#772406"
android:onClick="setDate"
android:layout_alignBottom="@+id/set_date"
android:layout_toRightOf="@+id/set_date"
android:layout_toEndOf="@+id/set_date" />
<EditText
android:layout_width="200dp"
android:layout_height="wrap_content"
android:id="@+id/set_time"
android:layout_below="@+id/set_date"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:autofillHints="" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SELECT TIME"
android:id="@+id/btn_time"
android:textColor="#772406"
android:layout_below="@+id/btn_date"
android:onClick="setTime"
android:layout_alignLeft="@+id/btn_date"
android:layout_alignStart="@+id/btn_date" />
<RelativeLayout
android:layout_width="match_parent"
android:id="@+id/repeat"
android:layout_marginTop="230dp"
android:layout_height="72dp">
<ImageView
android:id="@+id/repeat_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:src="@drawable/ic_sync_grey600_24dp"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:id="@+id/repeat_ll"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/repeat_icon"
android:layout_height="wrap_content">
<TextView
android:id="@+id/repeat_text"
android:textColor="#772406"
android:layout_width="wrap_content"
android:textSize="15dp"
android:layout_height="wrap_content"
android:text="@string/repeat" />
<TextView
android:layout_width="wrap_content"
android:id="@+id/set_repeat"
android:textSize="15dp"
android:layout_height="wrap_content"/>
</LinearLayout>
<Switch
android:id="@+id/repeat_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginRight="16dp"
android:layout_height="140dp"/>
android:layout_marginLeft="8dp"
android:onClick="onSwitchRepeat"
android:checked="true"
android:textOn="On"
android:textOff="Off"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:id="@+id/RepeatNo"
android:clickable="true"
android:onClick="setRepeatNo"
</LinearLayout>
android:layout_marginTop="310dp"
android:layout_height="72dp">
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_below="@id/add_reminder_layout_top"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/repeat_no_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:src="@drawable/ic_unfold_more_grey600_24dp"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/repeat_no_icon"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_marginTop="8dp"
android:text="@string/details"
android:id="@+id/details"
android:id="@+id/repeat_no_text"
android:textColor="#772406"
android:layout_width="wrap_content"
android:textSize="15dp"
android:gravity="center_vertical"
android:layout_marginLeft="72dp"
android:textColor="@color/abc_secondary_text_material_dark"
android:layout_height="72dp"/>
<RelativeLayout
android:layout_width="match_parent"
android:clickable="true"
android:onClick="setDate"
android:id="@+id/date"
android:background="?android:attr/selectableItemBackground"
android:layout_height="72dp">
<ImageView
android:id="@+id/date_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:src="@drawable/ic_view_day_grey600_24dp"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/date_icon"
android:layout_height="wrap_content">
<TextView
android:id="@+id/date_text"
android:textColor="@color/abc_primary_text_material_dark"
android:layout_width="wrap_content"
android:textSize="15dp"
android:layout_height="wrap_content"
android:text="@string/date" />
<TextView
android:layout_width="wrap_content"
android:id="@+id/set_date"
android:textSize="15dp"
android:textColor="@color/abc_secondary_text_material_dark"
android:layout_height="wrap_content"/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:clickable="true"
android:onClick="setTime"
android:id="@+id/time"
android:background="?android:attr/selectableItemBackground"
android:layout_height="72dp">
<ImageView
android:id="@+id/time_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:src="@drawable/ic_access_time_grey600_24dp"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/time_icon"
android:layout_height="wrap_content">
<TextView
android:id="@+id/time_text"
android:textColor="@color/abc_primary_text_material_dark"
android:layout_width="wrap_content"
android:textSize="15dp"
android:layout_height="wrap_content"
android:text="@string/time" />
<TextView
android:layout_width="wrap_content"
android:id="@+id/set_time"
android:textSize="15dp"
android:textColor="@color/abc_secondary_text_material_dark"
android:layout_height="wrap_content"/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:id="@+id/repeat"
android:layout_height="72dp">
<ImageView
android:id="@+id/repeat_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:src="@drawable/ic_sync_grey600_24dp"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:id="@+id/repeat_ll"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/repeat_icon"
android:layout_height="wrap_content">
<TextView
android:id="@+id/repeat_text"
android:textColor="@color/abc_primary_text_material_dark"
android:layout_width="wrap_content"
android:textSize="15dp"
android:layout_height="wrap_content"
android:text="@string/repeat" />
<TextView
android:layout_width="wrap_content"
android:id="@+id/set_repeat"
android:textSize="15dp"
android:textColor="@color/abc_secondary_text_material_dark"
android:layout_height="wrap_content"/>
</LinearLayout>
<Switch
android:id="@+id/repeat_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginRight="16dp"
android:layout_marginLeft="8dp"
android:onClick="onSwitchRepeat"
android:checked="true"
android:textOn="On"
android:textOff="Off"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:id="@+id/RepeatNo"
android:clickable="true"
android:onClick="setRepeatNo"
android:background="?android:attr/selectableItemBackground"
android:layout_height="72dp">
<ImageView
android:id="@+id/repeat_no_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:src="@drawable/ic_unfold_more_grey600_24dp"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/repeat_no_icon"
android:layout_height="wrap_content">
<TextView
android:id="@+id/repeat_no_text"
android:textColor="@color/abc_primary_text_material_dark"
android:layout_width="wrap_content"
android:textSize="15dp"
android:layout_height="wrap_content"
android:text="@string/repeat_no" />
<TextView
android:layout_width="wrap_content"
android:id="@+id/set_repeat_no"
android:textSize="15dp"
android:textColor="@color/abc_secondary_text_material_dark"
android:layout_height="wrap_content"/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:id="@+id/RepeatType"
android:clickable="true"
android:onClick="selectRepeatType"
android:background="?android:attr/selectableItemBackground"
android:layout_height="72dp">
<ImageView
android:id="@+id/repeat_type_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:src="@drawable/ic_subject_grey600_24dp"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/repeat_type_icon"
android:layout_height="wrap_content">
<TextView
android:id="@+id/repeat_type_text"
android:textColor="@color/abc_primary_text_material_dark"
android:layout_width="wrap_content"
android:textSize="15dp"
android:layout_height="wrap_content"
android:text="@string/repeat_type" />
<TextView
android:layout_width="wrap_content"
android:id="@+id/set_repeat_type"
android:textSize="15dp"
android:textColor="@color/abc_secondary_text_material_dark"
android:layout_height="wrap_content"/>
</LinearLayout>
</RelativeLayout>
android:layout_height="wrap_content"
android:text="@string/repeat_no" />
<TextView
android:layout_width="wrap_content"
android:id="@+id/set_repeat_no"
android:textSize="15dp"
android:layout_height="wrap_content"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
<View
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_below="@+id/add_reminder_layout_top"
android:background="@drawable/toolbar_dropshadow" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/starred1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/RepeatType"
android:clickable="true"
android:onClick="selectFab1"
android:icon="@drawable/ic_notifications_off_grey600_24dp"
android:layout_alignParentLeft="true"
android:layout_marginTop="168dp"
android:layout_centerHorizontal="true"
android:layout_marginLeft="8dp"/>
android:onClick="selectRepeatType"
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/starred2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:onClick="selectFab2"
android:icon="@drawable/ic_notifications_on_white_24dp"
android:layout_alignParentLeft="true"
android:layout_marginTop="168dp"
android:layout_centerHorizontal="true"
android:layout_marginLeft="8dp"/>
android:layout_marginTop="390dp"
android:layout_height="72dp">
<ImageView
android:id="@+id/repeat_type_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dp"
android:layout_marginRight="32dp"
android:src="@drawable/ic_subject_grey600_24dp"
android:layout_centerVertical="true" />
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/repeat_type_icon"
android:layout_height="wrap_content">
<TextView
android:id="@+id/repeat_type_text"
android:textColor="#772406"
android:layout_width="wrap_content"
android:textSize="15dp"
android:layout_height="wrap_content"
android:text="@string/repeat_type" />
<TextView
android:layout_width="wrap_content"
android:id="@+id/set_repeat_type"
android:textSize="15dp"
android:layout_height="wrap_content"/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
......@@ -16,7 +16,7 @@
<resources>
<string name="app_name">Remindly</string>
<string name="app_name">Talking Reminder</string>
<string name="title_activity_add_reminder">Add Reminder</string>
<string name="title_activity_edit_reminder">Edit Reminder</string>
......
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