java - Android: ListView fixed height of child view -


How to set a fixed high (in dip) for the child's view of the ListView component?

I am using the relative layout as the root layout for the child view

When I set the background image in relative layout it can be very high ( Maybe the background picture may be larger, because) and I want to set the exact height in the DP.

While stopping the problem, looking for answers to some related questions. Anyway, the problem is to increase the scene. Instead of increasing a new layout, instead of raising your getView (or newView), instead of

  inflater.inflate (R.layout.your_layout, null)  

Instead of using the cursor adapter) / Pre>

Instead:

  inflater.inflate (R.layout.your_layout, guardian, incorrect)  
< P> Passing the view of the parents honors the child with the parent's limits, and there are false meanings that you instruct the Influencer not to attach it to the parents. After placing a certain height in the dip, it will work.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -