Bonjour,

Je continue mon application et je me retrouve bien ennuyé par le manifest...
J'ai 3 tabs, et je voudrais afficher un champ login et mot de passe, ainsi que deux boutons en dessous.
Le soucis c'est que j'ai 3 TAB et que je n'arrive à rien lui faire entendre...

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
	package="clement.hallet.solar" android:versionCode="1"
	android:versionName="1.0">
	<uses-sdk android:minSdkVersion="3" />
 
	<uses-permission android:name="android.permission.INTERNET"></uses-permission>
 
	<application android:icon="@drawable/icon" android:label="@string/app_name">
		<activity android:name=".Main" android:label="@string/app_name"
			android:theme="@android:style/Theme.NoTitleBar">
			<intent-filter>
				<action android:name="android.intent.action.MAIN" />
				<category android:name="android.intent.category.LAUNCHER" />
			</intent-filter>
		</activity>
 
		<activity android:name=".FirstTab" android:label="@string/app_name"
			android:theme="@android:style/Theme.NoTitleBar">
		</activity>
		<activity android:name=".SecondTab" android:label="@string/app_name"
			android:theme="@android:style/Theme.NoTitleBar">
		</activity>
		<activity android:name=".ThirdTab" android:label="@string/app_name"
			android:theme="@android:style/Theme.NoTitleBar">
 
			<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
				android:orientation="vertical" android:layout_width="fill_parent"
				android:layout_height="fill_parent">
				<EditText android:layout_width="fill_parent"
					android:layout_height="wrap_content" android:hint="@string/login_text" />
			</LinearLayout>
 
 
		</activity>
 
	</application>
</manifest>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="hello">Hello World, Main!</string>
    <string name="app_name">Solar</string>
    <string name="login_text">Login ...</string>
 
</resources>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
public class ThirdTab extends Activity {
 
    @Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
 
 
		/** Third Tab Content */
		TextView textView = new TextView(this);
		textView.setText(Html.fromHtml("<br /><b>Réglages</b><br />"));
		setContentView(textView);
Seconde question: comment je pourrai faire pour sauvegarder des préférences et le jeu de login et mot de passe des utilisateurs pour ne pas devoir toujours les encoder??


Milles mercis à celui qui m'à a lu et des milliards pour celui qui me répond ;-)