p***@mautilus.com
2011-09-13 12:06:05 UTC
Hello,
I am able to customize the Spinner widget drop-down background by
specifying the drawable resource in the Spinner XML element:
<Spinner
android:id="@+id/search_spinner"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:background="@drawable/spinner_dropdown">
</Spinner>
Once the spinner drop down is tapped by user's finger the pop-up list
with options appears. This I am able to customize as well by calling
the adapter.setDropDownViewResource(R.layout.spinner_row_layout);
where the spinner_row_layout is the layout for one line for the list.
By specifying the row layout with use of a TextView I have the custom
row, but I miss the radio button on the right side. If I put there
instead of the TextView the CheckedTextView then I can have custom
background for the row as well, but it used the default check mark.
The problem with the default checkmark is that its color does not fit
the company color guidelines for the application.
How can I define the custom check mark - ideally by using styles/
themes for the whole application? I have tried many ways including
this one, but nothing works. If anyone has the working example please
share.
Thanks a lot
Regards,
STeN
I am able to customize the Spinner widget drop-down background by
specifying the drawable resource in the Spinner XML element:
<Spinner
android:id="@+id/search_spinner"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:background="@drawable/spinner_dropdown">
</Spinner>
Once the spinner drop down is tapped by user's finger the pop-up list
with options appears. This I am able to customize as well by calling
the adapter.setDropDownViewResource(R.layout.spinner_row_layout);
where the spinner_row_layout is the layout for one line for the list.
By specifying the row layout with use of a TextView I have the custom
row, but I miss the radio button on the right side. If I put there
instead of the TextView the CheckedTextView then I can have custom
background for the row as well, but it used the default check mark.
The problem with the default checkmark is that its color does not fit
the company color guidelines for the application.
How can I define the custom check mark - ideally by using styles/
themes for the whole application? I have tried many ways including
this one, but nothing works. If anyone has the working example please
share.
Thanks a lot
Regards,
STeN
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en