forecast
This commit is contained in:
parent
3222f7392e
commit
16b6330f40
@ -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);
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user