Got it to work, nameDetailsPopup.setLayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams,WRAP_CONTENT) ; And when I need to roll it up nameDetailsPopup.dismiss() ;
Conny On Jul 14, 6:11 pm, Conny <[email protected]> wrote: > Log.d("NameView", "NameViewDropDown Clicked"); > View nameDetailsView = inflate(context, > R.layout.nameDetailsPopup, null); > PopupWindow nameDetailsPopup = new > PopupWindow(nameDetailsView); > nameDetailsPopup.setContentView(nameDetailsView); > TextView nameLongDescription = (TextView) > nameDetailsView > > .findViewById(R.id.nameLongDescription); > nameLongDescription.setText("DummyLongName"); > TextView nameMerchantName = (TextView) nameDetailsView > .findViewById(R.id.nameMerchantName); > nameMerchantName.setText("DummyMiddleName"); > TextView nameItemNumber = (TextView) nameDetailsView > .findViewById(R.id.nameItemNumber); > nameItemNumber.setText("DummySurName"); > TextView nameSKU = (TextView) nameDetailsView > .findViewById(R.id.nameSKU); > nameSKU.setText("DummySKU"); > TextView nameItemInfo = (TextView) nameDetailsView > .findViewById(R.id.nameItemInfo); > nameItemInfo.setText("DummyItemInfo"); > //nameDetailsPopup.showAsDropDown(nameName); > nameDetailsPopup.setFocusable(true) ; > > For some reason, its not showing up on the UI. > > I intend to show this as a dropdown just below the button that drops > this down. > > Siddharth -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

