Merge branch 'extendTutorTab' of git.wmi.amu.edu.pl:s416084/find-my-tutor-android into extendTutorTab

This commit is contained in:
marcin.jedynski 2018-12-15 00:33:41 +01:00
commit 0884fc4873
2 changed files with 24 additions and 8 deletions

View File

@ -80,7 +80,7 @@ public class TutorTab extends AppCompatActivity {
if (!tutorTabViewModel.getNote().equals("")) {
userNote.setText(String.format("%s", tutorTabViewModel.getNote()));
}
userDutyHours.setText(String.format("%s: %s", getString(R.string.userDutyHoursHeader), Arrays.toString(dutyHoursList.toArray())));
// userDutyHours.setText(String.format("%s: %s", getString(R.string.userDutyHoursHeader), Arrays.toString(dutyHoursList.toArray())));
}

View File

@ -10,6 +10,7 @@
android:paddingRight="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin">
<ImageButton
android:id="@+id/contentTutorTabInfoImageButton"
android:layout_width="wrap_content"
@ -79,41 +80,50 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:orientation="horizontal"
>
<android.support.design.widget.TextInputLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1">
<android.support.design.widget.TextInputEditText
android:id="@+id/userDutyHours"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="hint"
android:lineSpacingExtra="8sp"
android:paddingTop="5dp"
android:text="@string/dutyHours"
android:textColor="@color/note_list_text"
tools:text="@string/dutyHours" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1">
<android.support.design.widget.TextInputEditText
android:id="@+id/userDutyStart"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="hint"
android:lineSpacingExtra="8sp"
android:paddingTop="5dp"
android:text="@string/dutyHours"
android:textColor="@color/note_list_text"
tools:text="@string/dutyHours" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1">
<android.support.design.widget.TextInputEditText
android:id="@+id/userDutyStop"
@ -122,19 +132,25 @@
android:hint="hint"
android:lineSpacingExtra="8sp"
android:paddingTop="5dp"
android:text="@string/dutyHours"
android:textColor="@color/note_list_text"
tools:text="@string/dutyHours" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content">
</ListView>
<TextView
android:id="@+id/userNoteTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/activity_margin"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:paddingStart="@dimen/activity_margin"
android:textColor="@color/note_list_text" />
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"