mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Fixes for showing the selected checkbox correctly
This commit is contained in:
parent
cac85a29d4
commit
b2cfc40ab6
@ -28,8 +28,11 @@
|
|||||||
android:paddingTop="5dip">
|
android:paddingTop="5dip">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/checkbox_wrapper"
|
android:id="@+id/selected_checkbox_wrapper"
|
||||||
android:layout_width="42dip"
|
android:layout_width="wrap_content"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
@ -45,7 +48,7 @@
|
|||||||
android:button="?attr/messageListCheckbox"
|
android:button="?attr/messageListCheckbox"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:visibility="gone"/>
|
/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -57,7 +60,8 @@
|
|||||||
android:layout_marginBottom="3dip"
|
android:layout_marginBottom="3dip"
|
||||||
android:layout_height="40dip"
|
android:layout_height="40dip"
|
||||||
android:layout_width="40dip"
|
android:layout_width="40dip"
|
||||||
android:layout_toRightOf="@id/checkbox_wrapper"
|
android:layout_alignWithParentIfMissing="true"
|
||||||
|
android:layout_toRightOf="@id/selected_checkbox_wrapper"
|
||||||
android:src="@drawable/ic_contact_picture"
|
android:src="@drawable/ic_contact_picture"
|
||||||
style="?android:attr/quickContactBadgeStyleWindowLarge"
|
style="?android:attr/quickContactBadgeStyleWindowLarge"
|
||||||
android:background="@android:color/transparent"/>
|
android:background="@android:color/transparent"/>
|
||||||
|
@ -1845,11 +1845,11 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
holder.preview.setLines(Math.max(mPreviewLines,1));
|
holder.preview.setLines(Math.max(mPreviewLines,1));
|
||||||
mFontSizes.setViewTextSize(holder.preview, mFontSizes.getMessageListPreview());
|
mFontSizes.setViewTextSize(holder.preview, mFontSizes.getMessageListPreview());
|
||||||
holder.threadCount = (TextView) view.findViewById(R.id.thread_count);
|
holder.threadCount = (TextView) view.findViewById(R.id.thread_count);
|
||||||
|
view.findViewById(R.id.selected_checkbox_wrapper).setVisibility((mCheckboxes) ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
holder.selected = (CheckBox) view.findViewById(R.id.selected_checkbox);
|
holder.selected = (CheckBox) view.findViewById(R.id.selected_checkbox);
|
||||||
holder.selected.setVisibility((mCheckboxes) ? View.VISIBLE : View.GONE);
|
holder.selected.setOnClickListener(holder);
|
||||||
|
|
||||||
view.findViewById(R.id.checkbox_wrapper).setOnClickListener(holder);
|
|
||||||
|
|
||||||
view.setTag(holder);
|
view.setTag(holder);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user