diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index d209b5a..2e32ae2 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -38,11 +38,11 @@
+ android:screenOrientation="portrait"
+ android:windowSoftInputMode="adjustPan" />
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/LoginActivity.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/LoginActivity.java
index fda30bf..caf7eae 100644
--- a/app/src/main/java/com/uam/wmi/findmytutor/activity/LoginActivity.java
+++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/LoginActivity.java
@@ -39,7 +39,8 @@ import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.schedulers.Schedulers;
import okhttp3.ResponseBody;
-public class LoginActivity extends AppCompatActivity {
+public class
+LoginActivity extends AppCompatActivity {
private AutoCompleteTextView mLoginNameView;
private EditText mPasswordView;
diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/SharingFragment.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/SharingFragment.java
index a6b41f8..5e900e7 100644
--- a/app/src/main/java/com/uam/wmi/findmytutor/activity/SharingFragment.java
+++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/SharingFragment.java
@@ -3,6 +3,7 @@ package com.uam.wmi.findmytutor.activity;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.app.FragmentTransaction;
+import android.app.TimePickerDialog;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphics.drawable.ColorDrawable;
@@ -17,6 +18,7 @@ import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
+import android.widget.TimePicker;
import android.widget.Toast;
import com.annimon.stream.IntPair;
@@ -124,28 +126,6 @@ public class SharingFragment extends PreferenceFragment implements SharedPrefere
String[] stringnames = predefinedLocationsNames.toArray(new String[0]);
predefinedLocationsList = new ArrayList<>(Arrays.asList(stringnames));
- if (!PrefUtils.getLocationLevel(getApplicationContext()).equals("manual")) {
- preferenceCategory.removePreference(manualLocationList);
- preferenceCategory.removePreference(removeManualLocation);
- preferenceCategory.removePreference(manualLocationButton);
- }else{
- if(predefinedCoordsList.isEmpty()){
- locationSharing.setEnabled(false);
- locationSharing.setChecked(false);
- PrefUtils.disableSharing(getApplicationContext());
- ((MapActivity) getActivity()).handleBackgroundTaskLifeCycle();
- removeManualLocation.setEnabled(false);
- manualLocationList.setEnabled(false);
- manualLocationList.setSummary("");
- }else{
- manualLocationList.setEnabled(true);
- manualLocationList.setSummary(PrefUtils.getCurrentManualLocationName(getApplicationContext()));
- removeManualLocation.setEnabled(true);
- locationSharing.setEnabled(true);
-
-
- }
- }
List activesId = Stream.of(coords).indexed()
.filter(v -> v.getSecond().getPredefinedCoordinateId().equals(currentCoordId)).map(IntPair::getFirst).toList();
@@ -200,10 +180,31 @@ public class SharingFragment extends PreferenceFragment implements SharedPrefere
statusMapping.put(0, "available");
statusMapping.put(1, "consultation");
statusMapping.put(2, "busy");
-
+ if (!PrefUtils.getLocationLevel(getApplicationContext()).equals("manual")) {
+ preferenceCategory.removePreference(manualLocationList);
+ preferenceCategory.removePreference(removeManualLocation);
+ preferenceCategory.removePreference(manualLocationButton);
+ }else{
+ if(predefinedCoordsList.isEmpty()){
+ locationSharing.setEnabled(false);
+ locationSharing.setChecked(false);
+ PrefUtils.disableSharing(getApplicationContext());
+ ((MapActivity) getActivity()).handleBackgroundTaskLifeCycle();
+ removeManualLocation.setEnabled(false);
+ manualLocationList.setEnabled(false);
+ manualLocationList.setSummary("");
+ }else{
+ manualLocationList.setEnabled(true);
+ manualLocationList.setSummary(PrefUtils.getCurrentManualLocationName(getApplicationContext()));
+ removeManualLocation.setEnabled(true);
+ locationSharing.setEnabled(true);
+ }
+ }
statusList.setSummary(PrefUtils.getUserStatus(getApplicationContext()));
manualLocationList.setSummary(PrefUtils.getCurrentManualLocationName(getApplicationContext()));
+
+
/** Main sharing switch**/
locationSharing.setOnPreferenceChangeListener((buttonView, newValue) -> {
PrefUtils.storeEnableSharingLocalization(getApplicationContext(), (Boolean) newValue);
@@ -282,7 +283,17 @@ public class SharingFragment extends PreferenceFragment implements SharedPrefere
lp.setSummary(entries[Integer.parseInt((String) newValue)]);
return true;
});
+ statusList.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
+ @Override
+ public boolean onPreferenceClick(Preference preference) {
+ if(statusesArray.length == 0)
+ {
+ builder.setTitle("nie ma wody na pustyni");
+ }
+ return true;
+ }
+ });
/** Custom status edittext change listener **/
manualStatus.setOnPreferenceChangeListener((preference, newValue) -> {
diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/StartupActivity.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/StartupActivity.java
index 9f6e086..efcb3c9 100644
--- a/app/src/main/java/com/uam/wmi/findmytutor/activity/StartupActivity.java
+++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/StartupActivity.java
@@ -7,6 +7,7 @@ import android.content.res.Resources;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.DisplayMetrics;
+import android.widget.ScrollView;
import android.widget.Toast;
@@ -30,6 +31,7 @@ public class StartupActivity extends AppCompatActivity {
finish();
} else {
Intent loginIntent = new Intent(this, LoginActivity.class);
+// Intent loginIntent = new Intent(this, ScrollingActivity.class);
startActivityForResult(loginIntent, AUTHENTICATION_REQUEST_CODE);
}
diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/TimePickerFragment.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/TimePickerFragment.java
new file mode 100644
index 0000000..dcc2580
--- /dev/null
+++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/TimePickerFragment.java
@@ -0,0 +1,46 @@
+package com.uam.wmi.findmytutor.activity;
+import android.app.Dialog;
+import android.app.DialogFragment;
+import android.app.TimePickerDialog;
+import android.os.Bundle;
+import android.text.format.DateFormat;
+import android.widget.TextView;
+import android.widget.TimePicker;
+
+import com.uam.wmi.findmytutor.model.DutyHourViewModel;
+
+import java.util.Calendar;
+
+public class TimePickerFragment extends DialogFragment
+ implements TimePickerDialog.OnTimeSetListener {
+ private TextView textView;
+ private String field;
+ private DutyHourViewModel duty;
+ public TimePickerFragment(TextView view, DutyHourViewModel duty, String field){
+ this.textView = view;
+ this.duty=duty;
+ this.field=field;
+ }
+ @Override
+ public Dialog onCreateDialog(Bundle savedInstanceState) {
+ // Use the current time as the default values for the picker
+ final Calendar c = Calendar.getInstance();
+ int hour = c.get(Calendar.HOUR_OF_DAY);
+ int minute = c.get(Calendar.MINUTE);
+
+ // Create a new instance of TimePickerDialog and return it
+ return new TimePickerDialog(getActivity(), this, hour, minute,
+ DateFormat.is24HourFormat(getActivity()));
+ }
+
+ public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
+ String time = String.format("%d:%02d",hourOfDay,minute);
+ textView.setText(time);
+ if(field.equals("start")){
+ duty.setStart(time);
+ }else{
+ duty.setEnd(time);
+ }
+ // Do something with the time chosen by the user
+ }
+}
diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/TutorTab.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/TutorTab.java
index 575ff5d..5e9adac 100644
--- a/app/src/main/java/com/uam/wmi/findmytutor/activity/TutorTab.java
+++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/TutorTab.java
@@ -1,14 +1,22 @@
package com.uam.wmi.findmytutor.activity;
+import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.design.widget.TextInputEditText;
import android.support.design.widget.TextInputLayout;
+import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
+import android.support.v7.widget.Toolbar;
import android.util.Log;
+import android.view.Gravity;
+import android.view.Menu;
+import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
+import android.widget.LinearLayout;
+import android.widget.PopupWindow;
import android.widget.TextView;
import android.widget.Toast;
@@ -28,6 +36,8 @@ import com.uam.wmi.findmytutor.utils.RestApiHelper;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import butterknife.ButterKnife;
import io.reactivex.android.schedulers.AndroidSchedulers;
@@ -59,12 +69,34 @@ public class TutorTab extends AppCompatActivity {
private DutyHoursAdapter dutyHoursAdapter;
private RecyclerView.LayoutManager dutyHoursLayoutManager;
private TutorTabViewModel newTab;
+ public boolean isEmailValid(String email)
+ {
+ String regExpn =
+ "^(([\\w-]+\\.)+[\\w-]+|([a-zA-Z]{1}|[\\w-]{2,}))@"
+ +"((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?"
+ +"[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\."
+ +"([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?"
+ +"[0-9]{1,2}|25[0-5]|2[0-4][0-9])){1}|"
+ +"([a-zA-Z]+[\\w-]+\\.)+[a-zA-Z]{2,4})$";
+ CharSequence inputStr = email;
+
+ Pattern pattern = Pattern.compile(regExpn,Pattern.CASE_INSENSITIVE);
+ Matcher matcher = pattern.matcher(inputStr);
+
+ if(matcher.matches())
+ return true;
+ else
+ return false;
+ }
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
setContentView(R.layout.content_tutor_tab);
+ Toolbar toolbar = findViewById(R.id.toolbar);
+ toolbar.setTitle(getString(R.string.profile_activity_title));
+ setSupportActionBar(toolbar);
ButterKnife.bind(this);
userName = findViewById(R.id.userName);
@@ -86,7 +118,7 @@ public class TutorTab extends AppCompatActivity {
getTutorTab();
- findViewById(R.id.contentTutorTabInfoImageButton).setOnClickListener(v-> InfoHelperUtils.infoPopUp(v,R.layout.info_popup_tutor_tab));
+// findViewById(R.id.contentTutorTabInfoImageButton).setOnClickListener(v-> InfoHelperUtils.infoPopUp(v,R.layout.info_popup_tutor_tab));
userName.setText(String.format("%s %s", PrefUtils.getUserFirstName(getApplicationContext()), PrefUtils.getUserLastName(getApplicationContext())));
@@ -112,6 +144,34 @@ public class TutorTab extends AppCompatActivity {
scrapButton.setOnClickListener(view -> scrapTutorTab());
}
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ getMenuInflater().inflate(R.menu.menu_profile, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+
+ if (item.getItemId()==R.id.action_profile_info_popup){
+ int layoutID = R.layout.info_popup_tutor_tab;
+
+ View popupView = getLayoutInflater().inflate(layoutID,null);
+
+ PopupWindow popupWindow = new PopupWindow(popupView,
+ LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
+ // If the PopupWindow should be focusable
+ popupWindow.setFocusable(true);
+ // If you need the PopupWindow to dismiss when when touched outside
+ popupWindow.setBackgroundDrawable(new ColorDrawable());
+ // Get the View's(the one that was clicked in the Fragment) location
+ View anchorView= getWindow().getDecorView().findViewById(android.R.id.content);
+ popupWindow.showAtLocation(anchorView,Gravity.TOP|Gravity.END, 0, 0);
+ }
+
+ return super.onOptionsItemSelected(item);
+ }
+
private void getTutorTab(){
disposable.add(
tutorTabService.apiUsersTutorTabByTutorIdGet(PrefUtils.getUserId(getApplicationContext()))
@@ -123,7 +183,7 @@ public class TutorTab extends AppCompatActivity {
dutyHourList = tutorTabViewModel.getDutyHours();
if(dutyHourList != null){
- dutyHoursAdapter = new DutyHoursAdapter(getApplicationContext(),dutyHourList);
+ dutyHoursAdapter = new DutyHoursAdapter(getApplicationContext(),dutyHourList, getFragmentManager());
dutyHoursRecycller.setAdapter(dutyHoursAdapter);
addDutyButton.setOnClickListener(v -> addEmptyDuty(dutyHoursAdapter));
}
@@ -144,7 +204,7 @@ public class TutorTab extends AppCompatActivity {
if( code == 404){
ifTutorTabExists = false;
- dutyHoursAdapter = new DutyHoursAdapter(getApplicationContext(),new ArrayList());
+ dutyHoursAdapter = new DutyHoursAdapter(getApplicationContext(),new ArrayList(), getFragmentManager());
dutyHoursRecycller.setAdapter(dutyHoursAdapter);
addDutyButton.setOnClickListener(v -> addEmptyDuty(dutyHoursAdapter));
}
@@ -161,17 +221,22 @@ public class TutorTab extends AppCompatActivity {
private void setUpSaveListener(Button button) {
button.setOnClickListener(view -> {
- newTab = new TutorTabViewModel(PrefUtils.getUserId(getApplicationContext()),
- userRoom.getText().toString(),
- userEmail.getText().toString(),
- userNote.getText().toString(),
- dutyHoursAdapter.getDutyList());
- if(ifTutorTabExists){
- putUserTab(newTab);
+ if( isEmailValid(userEmail.getText().toString())){
+ newTab = new TutorTabViewModel(PrefUtils.getUserId(getApplicationContext()),
+ userRoom.getText().toString(),
+ userEmail.getText().toString(),
+ userNote.getText().toString(),
+ dutyHoursAdapter.getDutyList());
+ if(ifTutorTabExists){
+ putUserTab(newTab);
+ }else{
+ postUserTab(newTab);
+ ifTutorTabExists=true;
+ }
}else{
- postUserTab(newTab);
- ifTutorTabExists=true;
+ userEmail.setError(getString(R.string.error_invalid_email));
}
+
});
}
diff --git a/app/src/main/java/com/uam/wmi/findmytutor/adapters/DutyHoursAdapter.java b/app/src/main/java/com/uam/wmi/findmytutor/adapters/DutyHoursAdapter.java
index eaa95f1..c0f23b1 100644
--- a/app/src/main/java/com/uam/wmi/findmytutor/adapters/DutyHoursAdapter.java
+++ b/app/src/main/java/com/uam/wmi/findmytutor/adapters/DutyHoursAdapter.java
@@ -1,6 +1,9 @@
package com.uam.wmi.findmytutor.adapters;
+import android.app.DialogFragment;
+import android.app.FragmentManager;
import android.content.Context;
+import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
@@ -14,6 +17,7 @@ import android.widget.TextView;
import com.annimon.stream.Collectors;
import com.annimon.stream.Stream;
import com.uam.wmi.findmytutor.R;
+import com.uam.wmi.findmytutor.activity.TimePickerFragment;
import com.uam.wmi.findmytutor.model.DutyHourViewModel;
import java.util.ArrayList;
import java.util.List;
@@ -24,10 +28,12 @@ import butterknife.ButterKnife;
public class DutyHoursAdapter extends RecyclerView.Adapter {
private Context context;
private List hours;
+ private FragmentManager fragmentManager;
- public DutyHoursAdapter(Context context, List hours) {
+ public DutyHoursAdapter(Context context, List hours, FragmentManager fragmentManager) {
this.context = context;
- this.hours = new ArrayList<>(hours);
+ this.hours = new ArrayList(hours);
+ this.fragmentManager = fragmentManager;
}
@@ -75,7 +81,7 @@ public class DutyHoursAdapter extends RecyclerView.Adapter
-
-
-
+ android:layout_height="match_parent"
+ android:fitsSystemWindows="true"
+ android:id="@+id/activity_whitelist_container"
+ tools:context=".activity.WhiteList">
-
-
+ android:layout_height="132dp"
+ android:fitsSystemWindows="true"
+ android:theme="@style/AppTheme.AppBarOverlay">
-
-
-
-
-
-
-
-
-
+ android:layout_height="match_parent"
+ android:fitsSystemWindows="true"
+ app:contentScrim="?attr/colorPrimary"
+ app:expandedTitleGravity="top|right"
+ app:layout_scrollFlags="scroll|exitUntilCollapsed"
+ app:toolbarId="@+id/toolbar">
+
-
+ android:layout_height="match_parent"
+ android:layout_marginBottom="20dp"
+ android:gravity="left|bottom"
+ android:orientation="vertical"
+ android:padding="10dp"
+ app:layout_collapseMode="parallax">
-
-
-
+ android:layout_alignParentRight="true"
+ android:text="User Name"
+ android:textSize="22sp" />
-
-
-
-
-
-
+ android:layout_height="?attr/actionBarSize"
+ app:layout_collapseMode="pin"
+ app:popupTheme="@style/AppTheme.PopupOverlay" />
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_tutor_tab_layout.xml b/app/src/main/res/layout/content_tutor_tab_layout.xml
new file mode 100644
index 0000000..3f73272
--- /dev/null
+++ b/app/src/main/res/layout/content_tutor_tab_layout.xml
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/duty_hour_row.xml b/app/src/main/res/layout/duty_hour_row.xml
index 81d5199..8b27897 100644
--- a/app/src/main/res/layout/duty_hour_row.xml
+++ b/app/src/main/res/layout/duty_hour_row.xml
@@ -33,7 +33,9 @@
android:inputType="text"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:text="@tools:sample/date/hhmm" />
+ tools:text="@tools:sample/date/hhmm"
+ android:focusableInTouchMode="false"
+ />
+ tools:text="@tools:sample/date/hhmm"
+ android:focusableInTouchMode="false"
+ />
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 52f5d89..5cac04a 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -126,7 +126,6 @@
SettingsSENDPlease name choosen location.
- modal_feedback_send
@@ -301,7 +300,7 @@
After clicking on a name, the tutor tab will pop up, containing details about selected tutor.\n\nYou can search for any tutor on the map by entering his name and surname in the search field.\n\nBy default, only active users are shown. You can change that in menu (three dots icon).\n\nYou can also search for a tutor directly, by entering name and surname of person that you look for.
-
+
User indexAdd user to blacklistAdd
@@ -310,6 +309,7 @@
App issues reporting
+ ProfileDayStartEnd
@@ -331,7 +331,7 @@
MapONOFF
- Scrap!
+ Scrap from WMIData updated!
@@ -351,5 +351,96 @@
User has been added!User removed!
+ ScrollingActivity
+
+ "Material is the metaphor.\n\n"
+
+ "A material metaphor is the unifying theory of a rationalized space and a system of motion."
+ "The material is grounded in tactile reality, inspired by the study of paper and ink, yet "
+ "technologically advanced and open to imagination and magic.\n"
+ "Surfaces and edges of the material provide visual cues that are grounded in reality. The "
+ "use of familiar tactile attributes helps users quickly understand affordances. Yet the "
+ "flexibility of the material creates new affordances that supercede those in the physical "
+ "world, without breaking the rules of physics.\n"
+ "The fundamentals of light, surface, and movement are key to conveying how objects move, "
+ "interact, and exist in space and in relation to each other. Realistic lighting shows "
+ "seams, divides space, and indicates moving parts.\n\n"
+
+ "Bold, graphic, intentional.\n\n"
+
+ "The foundational elements of print based design typography, grids, space, scale, color, "
+ "and use of imagery guide visual treatments. These elements do far more than please the "
+ "eye. They create hierarchy, meaning, and focus. Deliberate color choices, edge to edge "
+ "imagery, large scale typography, and intentional white space create a bold and graphic "
+ "interface that immerse the user in the experience.\n"
+ "An emphasis on user actions makes core functionality immediately apparent and provides "
+ "waypoints for the user.\n\n"
+
+ "Motion provides meaning.\n\n"
+
+ "Motion respects and reinforces the user as the prime mover. Primary user actions are "
+ "inflection points that initiate motion, transforming the whole design.\n"
+ "All action takes place in a single environment. Objects are presented to the user without "
+ "breaking the continuity of experience even as they transform and reorganize.\n"
+ "Motion is meaningful and appropriate, serving to focus attention and maintain continuity. "
+ "Feedback is subtle yet clear. Transitions are efficient yet coherent.\n\n"
+
+ "3D world.\n\n"
+
+ "The material environment is a 3D space, which means all objects have x, y, and z "
+ "dimensions. The z-axis is perpendicularly aligned to the plane of the display, with the "
+ "positive z-axis extending towards the viewer. Every sheet of material occupies a single "
+ "position along the z-axis and has a standard 1dp thickness.\n"
+ "On the web, the z-axis is used for layering and not for perspective. The 3D world is "
+ "emulated by manipulating the y-axis.\n\n"
+
+ "Light and shadow.\n\n"
+
+ "Within the material environment, virtual lights illuminate the scene. Key lights create "
+ "directional shadows, while ambient light creates soft shadows from all angles.\n"
+ "Shadows in the material environment are cast by these two light sources. In Android "
+ "development, shadows occur when light sources are blocked by sheets of material at "
+ "various positions along the z-axis. On the web, shadows are depicted by manipulating the "
+ "y-axis only. The following example shows the card with a height of 6dp.\n\n"
+
+ "Resting elevation.\n\n"
+
+ "All material objects, regardless of size, have a resting elevation, or default elevation "
+ "that does not change. If an object changes elevation, it should return to its resting "
+ "elevation as soon as possible.\n\n"
+
+ "Component elevations.\n\n"
+
+ "The resting elevation for a component type is consistent across apps (e.g., FAB elevation "
+ "does not vary from 6dp in one app to 16dp in another app).\n"
+ "Components may have different resting elevations across platforms, depending on the depth "
+ "of the environment (e.g., TV has a greater depth than mobile or desktop).\n\n"
+
+ "Responsive elevation and dynamic elevation offsets.\n\n"
+
+ "Some component types have responsive elevation, meaning they change elevation in response "
+ "to user input (e.g., normal, focused, and pressed) or system events. These elevation "
+ "changes are consistently implemented using dynamic elevation offsets.\n"
+ "Dynamic elevation offsets are the goal elevation that a component moves towards, relative "
+ "to the component’s resting state. They ensure that elevation changes are consistent "
+ "across actions and component types. For example, all components that lift on press have "
+ "the same elevation change relative to their resting elevation.\n"
+ "Once the input event is completed or cancelled, the component will return to its resting "
+ "elevation.\n\n"
+
+ "Avoiding elevation interference.\n\n"
+
+ "Components with responsive elevations may encounter other components as they move between "
+ "their resting elevations and dynamic elevation offsets. Because material cannot pass "
+ "through other material, components avoid interfering with one another any number of ways, "
+ "whether on a per component basis or using the entire app layout.\n"
+ "On a component level, components can move or be removed before they cause interference. "
+ "For example, a floating action button (FAB) can disappear or move off screen before a "
+ "user picks up a card, or it can move if a snackbar appears.\n"
+ "On the layout level, design your app layout to minimize opportunities for interference. "
+ "For example, position the FAB to one side of stream of a cards so the FAB won’t interfere "
+ "when a user tries to pick up one of cards.\n\n"
+
+