Commit 1bb25906 authored by Lucas Braz Cunha's avatar Lucas Braz Cunha

Issue AGILE#153: [WIP] added recycler view list to layout

Signed-off-by: Lucas Braz Cunha's avatarLucas B. Cunha <lbc16@inf.ufpr.br>
parent a671a4a5
......@@ -2,6 +2,7 @@ package br.ufpr.c3sl.agendador.agendador;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
public class SchedulesActivity extends AppCompatActivity {
......@@ -10,7 +11,10 @@ public class SchedulesActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_schedules);
//fazer parecido com o agendador antigo e colocar uma string que diz quantos dias faltam
//arrumar os spinners pra terem duas coisas
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.rv_schedules);
}
}
......@@ -108,7 +108,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/ll_schedules_fields"
android:layout_marginTop="10dp"
android:layout_marginStart="15dp"
android:layout_marginStart="10dp"
android:gravity="left"
android:orientation="horizontal">
......@@ -131,6 +131,18 @@
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_schedules"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorGray"
android:layout_marginTop="20dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_below="@id/ll_schedules_buttons"/>
</RelativeLayout>
<ProgressBar
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tv_schedules_list_date"
android:layout_width="wrap_content"
android:text="@string/schedules_list_date"
android:textColor="@color/colorBlack"
android:layout_height="wrap_content" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/tv_schedules_list_date"
android:id="@+id/tv_schedules_list_date_content" />
<TextView
android:id="@+id/tv_schedules_list_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/schedules_list_location"
android:textColor="@color/colorBlack"
android:layout_below="@id/tv_schedules_list_date"/>
<TextView
android:id="@+id/tv_schedules_list_location_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_schedules_list_date"
android:layout_toEndOf="@id/tv_schedules_list_location"/>
<TextView
android:id="@+id/tv_schedules_list_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/colorBlack"
android:text="@string/schedules_list_type"
android:layout_alignParentTop="true"
android:layout_toEndOf="@+id/tv_schedules_list_date_content"
android:layout_marginStart="29dp" />
<TextView
android:id="@+id/tv_schedules_list_type_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:layout_toEndOf="@id/tv_schedules_list_type"/>
</RelativeLayout>
\ No newline at end of file
......@@ -148,4 +148,7 @@
<string name="highlight_date_scheduling_accessibility">Círculo ao redor de uma data demonstra que ela está disponível para agendamento</string>
<string name="highlight_date_schedules_accessibility">Círculo verde ao redor de uma data demonstra que existe um agendamento nessa data</string>
<string name="schedules_date">Atendimentos marcados</string>
<string name="schedules_list_date">Data:</string>
<string name="schedules_list_location">Local:</string>
<string name="schedules_list_type">Tipo de Atendimento:</string>
</resources>
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