This commit is contained in:
aminecmi 2015-07-09 07:29:56 +02:00
parent 3222f7392e
commit 16b6330f40
3 changed files with 4 additions and 6 deletions

View File

@ -35,7 +35,7 @@ public class ForecastAdapter extends RecyclerView.Adapter<ForecastAdapter.ViewHo
public void onBindViewHolder(ForecastAdapter.ViewHolder holder, int position) {
ForecastWeather fw = this.forecast.getList().get(position);
// MARCHE PAS
Date date = new Date(fw.getDt());
Date date = new Date((long) fw.getDt() * 1000);
DateFormat format = new SimpleDateFormat("EEEE");
String finalDay = format.format(date);

View File

@ -14,7 +14,7 @@
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="New Text"/>
android:textAppearance="?android:attr/textAppearanceLarge"/>
<ImageView
android:id="@+id/weatherImage"

View File

@ -8,15 +8,13 @@
android:id="@+id/dateText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".2"
android:text="Large Text"
android:layout_weight=".4"
android:textAppearance="?android:attr/textAppearanceLarge"/>
<TextView
android:id="@+id/temp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".4"
android:text="New Text"/>
android:layout_weight=".6"/>
</LinearLayout>