ELE codes page Preparer .pdf



Nom original: ELE_codes-page-Preparer.pdfAuteur: BTS1SIO

Ce document au format PDF 1.7 a été généré par Microsoft® Word 2016, et a été envoyé sur fichier-pdf.fr le 20/02/2019 à 12:28, depuis l'adresse IP 176.132.x.x. La présente page de téléchargement du fichier a été vue 153 fois.
Taille du document: 185 Ko (13 pages).
Confidentialité: fichier public


Aperçu du document


Code Android Studio Page Preparer
Java
package fr.yusit.gallevisit.view;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import fr.yusit.gallevisit.R;
public class PreparerActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.preparer);
//Configuration de la fenêtre en portrait et fullscreen
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
Typeface titre = Typeface.createFromAsset(getAssets(), "fonts/Foglihten.otf");
((TextView) findViewById(R.id.About)).setTypeface(titre);
((TextView) findViewById(R.id.INFOS)).setTypeface(titre);
((TextView) findViewById(R.id.Howto)).setTypeface(titre);
((TextView) findViewById(R.id.etiquette)).setTypeface(titre);
View About = findViewById(R.id.LayoutAbout);
View Infos = findViewById(R.id.LayoutInfos);
View Howto = findViewById(R.id.LayoutHowto);
View Etiquette = findViewById(R.id.LayoutEtiquette);
ImageView imageViewA = findViewById(R.id.ImageViewAbout);
Glide.with(this).load(R.drawable.about).apply(RequestOptions.centerInsideTransform()).into(imag
eViewA);
ImageView imageViewI = findViewById(R.id.ImageViewInfos);
Glide.with(this).load(R.drawable.practical).apply(RequestOptions.centerInsideTransform()).into(im
ageViewI);
ImageView imageViewH = findViewById(R.id.ImageViewHowto);
Glide.with(this).load(R.drawable.how).apply(RequestOptions.centerInsideTransform()).into(image
ViewH);

ImageView imageViewE = findViewById(R.id.ImageViewEtiquette);
Glide.with(this).load(R.drawable.etiquette).apply(RequestOptions.centerInsideTransform()).into(i
mageViewE);

// assignation des fonctions aux 'boutons' //
About.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
goAbout();
}
});
Infos.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
goInfos();
}
});
Howto.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
goHowTo();
}
});
Etiquette.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
goEtiquette();
}
});

}
/*Fonction des boutons*/
private void goAbout(){
Intent intent = new Intent(this,AboutActivity.class);
startActivity(intent);
}
private void goInfos(){
Intent intent = new Intent(this,InfoActivity.class);
startActivity(intent);
}
private void goHowTo(){
Intent intent = new Intent(this,HowToActivity.class);
startActivity(intent);
}
private void goEtiquette(){
Intent intent = new Intent(this,EtiquetteActivity.class);
startActivity(intent);
}

@Override
public void onBackPressed() {
super.onBackPressed();
Intent intent = getParentActivityIntent();
navigateUpTo(intent);
}
}
Xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="0dp"
tools:context="fr.yusit.gallevisit.view.PreparerActivity"
tools:layout_editor_absoluteY="25dp">
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/anthracite"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0">
<android.support.constraint.ConstraintLayout
android:id="@+id/LayoutAbout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@color/greenBritish">
<ImageView
android:id="@+id/ImageViewAbout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@color/greenBritish"
android:paddingBottom="5dp"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"

android:contentDescription="@string/imagedescription"/>
<LinearLayout
android:id="@+id/linearLayoutAbout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent">
<TextView
android:id="@+id/About"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/greenAbout"
android:gravity="center"
android:maxWidth="250dp"
android:minHeight="45dp"
android:text="@string/apropos"
android:textAlignment="center"
android:textAllCaps="true"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/ImageViewAbout"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:visibility="invisible"
app:layout_constraintBottom_toTopOf="@+id/linearLayoutHowto"
app:layout_constraintEnd_toEndOf="parent" />
</LinearLayout>
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout
android:id="@+id/LayoutInfos"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@color/redevent">
<ImageView
android:id="@+id/ImageViewInfos"

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@color/redevent"
android:maxWidth="300dp"
android:paddingBottom="5dp"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:contentDescription="@string/imagedescription"/>
<LinearLayout
android:id="@+id/linearLayoutInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/INFOS"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/redInfo"
android:gravity="center"
android:maxWidth="250dp"
android:minHeight="45dp"
android:text="@string/infos"
android:textAlignment="center"
android:textAllCaps="true"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/ImageViewInfos"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:visibility="invisible"
app:layout_constraintBottom_toTopOf="@+id/linearLayoutHowto"
app:layout_constraintEnd_toEndOf="parent" />
</LinearLayout>
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout

android:id="@+id/LayoutHowto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@color/Bluetrain">
<ImageView
android:id="@+id/ImageViewHowto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@color/Bluetrain"
android:paddingBottom="5dp"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:contentDescription="@string/imagedescription"/>
<LinearLayout
android:id="@+id/linearLayoutHowto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/Howto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/BlueHowto"
android:gravity="center"
android:maxWidth="250dp"
android:minHeight="45dp"
android:text="@string/howto"
android:textAlignment="center"
android:textAllCaps="true"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/ImageViewInfos"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="match_parent"

android:layout_weight="1"
android:visibility="invisible"
app:layout_constraintBottom_toTopOf="@+id/linearLayoutHowto"
app:layout_constraintEnd_toEndOf="parent" />
</LinearLayout>
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout
android:id="@+id/LayoutEtiquette"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@color/jaunatreMuslim">
<ImageView
android:id="@+id/ImageViewEtiquette"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@color/jaunatreMuslim"
android:paddingBottom="5dp"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:contentDescription="@string/imagedescription"/>
<LinearLayout
android:id="@+id/linearLayoutEtiquette"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent">
<TextView
android:id="@+id/etiquette"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/jaunatreEtiquette"
android:gravity="center"
android:maxWidth="250dp"
android:minHeight="45dp"
android:text="@string/etiquette"
android:textAlignment="center"
android:textAllCaps="true"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold"

app:layout_constraintBottom_toBottomOf="@+id/ImageViewInfos"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:visibility="invisible"
app:layout_constraintBottom_toTopOf="@+id/linearLayoutHowto"
app:layout_constraintEnd_toEndOf="parent" />
</LinearLayout>
</android.support.constraint.ConstraintLayout>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
Equivalent Ionic
TypeScript
import { Component, OnInit } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';
// Imports des pages filles
import { EtiquettePage } from './etiquette/etiquette';
import { HowtoPage } from './howto/howto';
import { InfoPratiquePage } from './info-pratique/info-pratique';
import { AProposPage } from './a-propos/a-propos';
// import de la BDD local en format JSON
// import './../../../assets/bdd/images.json';
@Component({
selector: 'page-preparer',
templateUrl: 'preparer.html',
})
export class PreparerPage implements OnInit {
langue: string;
// imageJson: './../../../assets/bdd/images.json';
constructor(public navCtrl: NavController,
public platform: Platform) {
}
// Pour pouvoir faire passer l'id de la langue
ngOnInit(){
this.langue = this.platform.lang();
}
// Méthode pour aller à la page fille AProposPage
onGoToAPropos() {

this.navCtrl.push(AProposPage);
}
// Méthode pour aller à la page fille InfoPratiquePage
onGoToInfoPratiques() {
this.navCtrl.push(InfoPratiquePage);
}
// Méthode pour aller à la page fille HowtoPage
onGoToCommentRendre() {
this.navCtrl.push(HowtoPage);
}
// Méthode pour aller à la page fille EtiquettePage
onGoTEtiquette() {
this.navCtrl.push(EtiquettePage);
}
}
Html
<ion-content padding class="fondAnthracite divtaille">
<ion-grid class="fondAnthracite divtaille">

<ion-row full class="itemtaille ColAbout">
<ion-item class="ColAbout" (click)="onGoToAPropos()">
<ion-row>
<label class="labelStyleColAbout">
<div [ngSwitch]="langue">
<div *ngSwitchCase="'fr'">
<p>à propos</p>
</div>
<div *ngSwitchCase="'si'">
<p>ගාලු නගරය ගැන</p>
</div>
<div *ngSwitchDefault>
<p>About</p>
</div>
</div>
</label>
</ion-row>
<ion-row>

<img src="assets/imgs-fixe/about.jpg">
</ion-row>
</ion-item>
</ion-row>

<ion-row full class="itemtaille ColInfo">
<ion-item class="ColInfo" (click)="onGoToInfoPratiques()">
<label class="labelStyleColInfo">
<div [ngSwitch]="langue">
<div *ngSwitchCase="'fr'">
<p>Informations pratiques</p>
</div>
<div *ngSwitchCase="'si'">
<p>ප්‍රායයෝගික ය ාරතුරු</p>
</div>
<div *ngSwitchDefault>
<p>Practical information</p>
</div>
</div>
</label>
<img src="assets/imgs-fixe/practical.jpg">
</ion-item>
</ion-row>

<ion-row full class="itemtaille colHowTo">
<ion-item class="colHowTo" (click)="onGoToCommentRendre()">
<label class="labelStyleColHowTo">
<div [ngSwitch]="langue">
<div *ngSwitchCase="'fr'">
<p>comment s'y rendre</p>
</div>
<div *ngSwitchCase="'si'">
<p>ගාල්ලට පැමිණිය හැකි ක්‍රම</p>
</div>
<div *ngSwitchDefault>

<p>How to get there</p>
</div>
</div>
</label>
<img src="assets/imgs-fixe/how.jpg">
</ion-item>
</ion-row>

<ion-row full class="itemtaille ColEtiquette">
<ion-item class="ColEtiquette" (click)="onGoTEtiquette()">
<label class="labelStyleColEtiquette">
<div [ngSwitch]="langue">
<div *ngSwitchCase="'fr'">
<p>étiquette</p>
</div>
<div *ngSwitchCase="'si'">
<p>ආචාර රීති</p>
</div>
<div *ngSwitchDefault>
<p>Etiquette</p>
</div>
</div>
</label>
<img src="assets/imgs-fixe/etiquette.jpg">
</ion-item>
</ion-row>
</ion-grid>
</ion-content>
Scss
page-preparer {
// Couleur du frm About (à propos)
.ColAbout {
background-color: color($colors, greenAbout);
}
.labelStyleColAbout {
color: color($colors, white);
text-align: center;
font-family: 'Foglihten';
text-transform: uppercase;
background-color: color($colors, greenAbout);
}

// Couleur du Frm Info
.ColInfo {
background-color: color($colors, redInfo);
}
.labelStyleColInfo {
color: color($colors, white);
text-align: center;
font-family: 'Foglihten';
text-transform: uppercase;
background-color: color($colors, redInfo);
}
// Couleur du Frm HowTo (comment s'y rendre)
.colHowTo {
background-color: color($colors, BlueHowto);
}
.labelStyleColHowTo {
color: color($colors, white);
text-align: center;
font-family: 'Foglihten';
text-transform: uppercase;
background-color: color($colors, BlueHowto);
}
// Couleur du Frm étiquette
.ColEtiquette {
background-color: color($colors, jaunatreEtiquette);
}
.labelStyleColEtiquette {
color: color($colors, white);
text-align: center;
font-family: 'Foglihten';
text-transform: uppercase;
background-color: color($colors, jaunatreEtiquette);
}

.fondAnthracite {
background-color: color($colors, anthracite);
}
.entete {
height: 50%;
}
.ImageConf{
width: 100%;
height: 100%;
}
.maisoncolor {
color: color($colors, black);
}
.itemtaille {
height: 24.5%;

width: 100%;
border-width: 5px;
border-style: solid;
border-color: color($colors, anthracite);
}
.divtaille {
height: 100%;
}
.textStyle1 {
// font-weight: bold;
color: color($colors, white);
text-align: center;
font-family: 'LinLibertine';
text-transform: uppercase;
}
.textStyle2 {
// font-weight: bold;
color: color($colors, white);
text-align: center;
font-family: 'Foglihten';
text-transform: uppercase;
}
}


ELE_codes-page-Preparer.pdf - page 1/13
 
ELE_codes-page-Preparer.pdf - page 2/13
ELE_codes-page-Preparer.pdf - page 3/13
ELE_codes-page-Preparer.pdf - page 4/13
ELE_codes-page-Preparer.pdf - page 5/13
ELE_codes-page-Preparer.pdf - page 6/13
 




Télécharger le fichier (PDF)


ELE_codes-page-Preparer.pdf (PDF, 185 Ko)

Télécharger
Formats alternatifs: ZIP



Documents similaires


elecodes page informations
elecodes page preparer
elecodes page visiter
style paletttejlb 28 10 2012t bloc notes
desing pinturebleu 1
stackoverflow com questions 27110158 how to center group of

Sur le même sujet..