I would like to edit the value of one of the items in a style:
<style name="do_the_dog">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
<item name="android:visibility">visible</item>
...
</style>
more info
The third item in the style is a visibility item. I was hoping I could change the value of that item to GONE or perhaps add an item for visibility.
Another thought is to add the item
<item name="android:id">@+id/dog_id</item>
to the style and do findViewById(R.id.dog_id).setVisibility(View.GONE)
. But this second idea has not worked so far. eclipse is not finding dog_id
. And I think that's because I define it within the style; which I don't get since id
is one of the items presented when I looked to see what I can define in the stylesheet.