1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-30 23:00:09 -05:00

Removed unnecessary layout containers

This commit is contained in:
cketti 2012-03-24 22:51:33 +01:00
parent b9e0ec1ab4
commit 661ed08061
3 changed files with 25 additions and 41 deletions

View File

@ -4,36 +4,27 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:orientation="horizontal"
android:gravity="center_vertical">
android:orientation="vertical"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:paddingRight="4dp">
<LinearLayout
android:layout_width="wrap_content"
<TextView
android:id="@+id/name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_vertical"
android:paddingLeft="12dp"
android:paddingRight="4dp">
android:singleLine="true"
android:ellipsize="end"
android:textColor="?android:attr/textColorPrimary"
android:textAppearance="?android:attr/textAppearanceSmall"/>
<TextView
android:id="@+id/name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="end"
android:textColor="?android:attr/textColorPrimary"
android:textAppearance="?android:attr/textAppearanceSmall"/>
<TextView
android:id="@+id/description"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="end"
android:textColor="?android:attr/textColorSecondary"
android:textAppearance="?android:attr/textAppearanceSmall"/>
</LinearLayout>
<TextView
android:id="@+id/description"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="end"
android:textColor="?android:attr/textColorSecondary"
android:textAppearance="?android:attr/textAppearanceSmall"/>
</LinearLayout>

View File

@ -24,20 +24,13 @@
android:orientation="vertical"
android:background="#ededed" >
<LinearLayout
android:id="@+id/identity_container"
<Button
android:id="@+id/identity"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/identity"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="left|center"
android:layout_marginLeft="6dip"
android:layout_marginRight="6dip"/>
</LinearLayout>
android:gravity="left|center"
android:layout_marginLeft="6dip"
android:layout_marginRight="6dip"/>
<LinearLayout
android:id="@+id/to_wrapper"

View File

@ -419,7 +419,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
if (mAccount.getIdentities().size() == 1 &&
Preferences.getPreferences(this).getAvailableAccounts().size() == 1) {
findViewById(R.id.identity_container).setVisibility(View.GONE);
mChooseIdentityButton.setVisibility(View.GONE);
}
mToView = (MultiAutoCompleteTextView) findViewById(R.id.to);