mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-07 10:40:11 -05:00
Removed unnecessary layout containers
This commit is contained in:
parent
b9e0ec1ab4
commit
661ed08061
@ -4,36 +4,27 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:orientation="horizontal"
|
android:orientation="vertical"
|
||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical"
|
||||||
|
android:paddingLeft="12dp"
|
||||||
|
android:paddingRight="4dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
<LinearLayout
|
android:id="@+id/name"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:singleLine="true"
|
||||||
android:gravity="center_vertical"
|
android:ellipsize="end"
|
||||||
android:paddingLeft="12dp"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
android:paddingRight="4dp">
|
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/name"
|
android:id="@+id/description"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
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>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -24,20 +24,13 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:background="#ededed" >
|
android:background="#ededed" >
|
||||||
|
|
||||||
<LinearLayout
|
<Button
|
||||||
android:id="@+id/identity_container"
|
android:id="@+id/identity"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:gravity="left|center"
|
||||||
<Button
|
android:layout_marginLeft="6dip"
|
||||||
android:id="@+id/identity"
|
android:layout_marginRight="6dip"/>
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="left|center"
|
|
||||||
android:layout_marginLeft="6dip"
|
|
||||||
android:layout_marginRight="6dip"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/to_wrapper"
|
android:id="@+id/to_wrapper"
|
||||||
|
@ -419,7 +419,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
|||||||
|
|
||||||
if (mAccount.getIdentities().size() == 1 &&
|
if (mAccount.getIdentities().size() == 1 &&
|
||||||
Preferences.getPreferences(this).getAvailableAccounts().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);
|
mToView = (MultiAutoCompleteTextView) findViewById(R.id.to);
|
||||||
|
Loading…
Reference in New Issue
Block a user