Dialog in the nest in a ListView (with the Selector)
Dialog initially blocked ImageView background shows the default background Selector settings are not displayed, and only when it gets the focus of the display, not any lose focus after the Dialog background removed and a problem
The question now is pop Dialog looks like
2 layers

Came out over one second layer, because the background is transparent translucent so will see more and more low

Click then click and hold the



Selector ↓

With the ListView Item is a ImageView ↓
android: orientation = "vertical" android: layout_width = "match_parent"
android: background = "@ drawable / one_menu_bg"
android: layout_height = "match_parent">android: id = "@ + id / one_menu_ico"
android: layout_width = "46dp"
android: layout_height = "46dp" />
ListView ↓
android: id = "@ + id / layout_one_menu"
android: layout_width = "64dp"
android: cacheColorHint = "@ android: color / transparent"
android: layout_height = "wrap_content">
Dialog pop-up method
ArrayList<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->data = initData ();
Dialog alertDialog;
LayoutInflater inflater = (LayoutInflater) this.getSystemService (LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate (R.layout.one_menu_list, (ViewGroup) findViewById (R.id.layout_myview));
ListView oneMenuList = (ListView) layout.findViewById (R.id.layout_one_menu);
OneMenuAdapter oneMenuAdapter = new OneMenuAdapter (this, data);
oneMenuList.setAdapter (oneMenuAdapter);
alertDialog = new Dialog (this, R.style.one_menu_dialog);
alertDialog.setContentView (layout);
alertDialog.show ();
Reply:
Use alertDialog and when combined listview is not transparent set listview's success, there are two solutions, first, forms of activity with a dialog instead of alertDialog, can achieve this activity, listview transparent so as to achieve the effect you want, The second solution is not to try, the feeling should be, is replaced by popwindow alertDialog
Reply:
So this is
When I try and give points on Monday
Reply:
On the first floor of positive solutions

No comments:
Post a Comment