res/layout/addcontact.xml
author Da Risk <da_risk@beem-project.com>
Tue, 14 May 2013 18:24:25 +0200
changeset 1036 a1f3a20c87f8
parent 981 e1b1c8ad710a
permissions -rw-r--r--
ContactList: Separate creation of ContactListAdapter and managment of the group list This is two separate things. getContactListAdapter is called in ContactListFragment.onActivityCreated() which is during a fragment transaction. Management of the group list calls FragmentPagerAdapter.notifyDataSetChanged() which repopulate the FragmentPagerAdapter and to do so calls FragmentManager.executePendingTransactions() in a recursive way and is not allowed (IllegalStateException).

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="fill_parent" android:layout_height="fill_parent"
	android:orientation="vertical">
	<LinearLayout android:layout_width="fill_parent"
		android:layout_height="wrap_content" android:orientation="vertical"
		android:padding="10dip">
		<TextView android:layout_width="fill_parent"
			android:layout_height="wrap_content" android:text="@string/AddCLogin"
			style="@style/Label" />
		<EditText android:id="@+id/addc_login" android:inputType="textEmailAddress"
			android:imeOptions="actionNext" android:scrollHorizontally="true"
			android:layout_width="fill_parent" android:layout_height="wrap_content"
			android:layout_margin="3dip"
			android:contentDescription="@string/AddCLogin"/>
		<TextView android:layout_width="fill_parent"
			android:layout_height="wrap_content" android:text="@string/AddCAlias"
			style="@style/Label" />
		<EditText android:id="@+id/addc_alias" android:inputType="text"
			android:imeOptions="actionNext"
			android:layout_width="fill_parent" android:layout_height="wrap_content"
			android:scrollHorizontally="true" android:layout_margin="3dip"
			android:contentDescription="@string/AddCAlias"/>
		<TextView android:layout_width="fill_parent"
			android:layout_height="wrap_content" android:text="@string/AddCGroup"
			style="@style/Label" />
		<EditText android:id="@+id/addc_group" android:inputType="text"
			android:layout_width="fill_parent"
			android:scrollHorizontally="true" android:layout_height="wrap_content"
			android:layout_margin="3dip"
			android:contentDescription="@string/AddCGroup"/>
		<View android:layout_width="fill_parent" android:layout_height="0dp"
			android:layout_weight="1" android:layout_marginBottom="18dp" />
		<Button android:id="@+id/addc_ok" android:layout_width="fill_parent"
			android:layout_height="wrap_content"
			android:textAppearance="?android:attr/textAppearanceMedium"
			android:text="@string/AddCOkButton" android:layout_gravity="bottom" />
	</LinearLayout>
</ScrollView>