Merge pull request #4751 from k9mail/cleanup
Remove unused views from accounts_item layout
This commit is contained in:
commit
13a0fbcee2
3 changed files with 0 additions and 100 deletions
|
@ -111,8 +111,6 @@ public abstract class AccountList extends K9ListActivity implements OnItemClickL
|
|||
view = convertView;
|
||||
} else {
|
||||
view = getLayoutInflater().inflate(R.layout.accounts_item, parent, false);
|
||||
view.findViewById(R.id.active_icons).setVisibility(View.GONE);
|
||||
view.findViewById(R.id.folders).setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
AccountViewHolder holder = (AccountViewHolder) view.getTag();
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/active_icons"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="2dip"
|
||||
android:paddingRight="2dip"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/flagged_message_count_wrapper"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:clickable="true"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
android:focusable="true">
|
||||
|
||||
<View
|
||||
android:id="@+id/flagged_message_count_icon"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/flagged_message_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/new_message_count_wrapper"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/flagged_message_count_wrapper"
|
||||
android:gravity="center_vertical"
|
||||
android:clickable="true"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="4dip"
|
||||
android:focusable="true">
|
||||
|
||||
<View
|
||||
android:id="@+id/new_message_count_icon"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/new_message_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
|
@ -2,7 +2,6 @@
|
|||
<LinearLayout
|
||||
android:id="@+id/accounts_item_layout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||
|
@ -47,35 +46,4 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
<include layout="@layout/accounts_folders_icons"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/folder_button_wrapper"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="2dip"
|
||||
android:layout_marginRight="4dip"
|
||||
android:background="?android:attr/dividerVertical" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/folders"
|
||||
android:gravity="center_vertical"
|
||||
android:focusable="false"
|
||||
android:layout_marginRight="3dip"
|
||||
app:srcCompat="?attr/iconFolder"
|
||||
android:background="?selectableItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="8dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
|
Loading…
Reference in a new issue