Commit d685f0ba authored by francois's avatar francois

add schedule activity

parent a8713c82
......@@ -25,6 +25,7 @@
<activity android:name=".ContactsActivity_" />
<activity android:name=".MenuActivity_" />
<activity android:name=".WeatherActivity" />
<activity android:name=".ScheduleActivity" />
</application>
</manifest>
\ No newline at end of file
......@@ -20,11 +20,13 @@ public class MainActivity extends AppCompatActivity {
String[] web = {
"ContactsActivity_",
"MenuActivity_",
"WeatherActivity"
"WeatherActivity",
"ScheduleActivity"
} ;
int[] imageId = {
R.mipmap.ic_launcher,
R.mipmap.ic_launcher_round,
R.mipmap.ic_launcher_round,
R.mipmap.ic_launcher_round
};
......
package com.example.elisa.mob_data_project;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
public class ScheduleActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_schedule);
ImageView img = (ImageView) findViewById(R.id.imageView);
Picasso.with(this).load("https://cloud.utc.fr/index.php/s/4ZUWBHny8DdtANC/download").into(img);
}
}
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ScheduleActivity">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
</RelativeLayout>
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