Monday, 15 March 2010

Android three circles different sizes -


Hello, I have 3 circles in Android that show progress, there is a custom element (viewfinder palette) that is inherited from the relative layout.

  & lt; LinearLayout Android: layout_width = "match_parent" android: layout_height = "wrap_content" android: orientation = "horizontal" Android: gravity = "center" & gt; & Lt; Com.theproject.ui.view.ViewProgressbar android: Android: Android: Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" app: value = "@ string / zero" app: subject = "@ string / txt_progress1" / & Gt; & Lt; Com.theproject.ui.view.ViewProgressbarAndroid: Android: Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" app: value = "@ string / zero" app: subject = "@ string / txt_progress2" /> ; & Lt; Com.theproject.ui.view.ViewProgressbar Android: Android: Android: Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" app: value = "@ string / zero" app: subject = "@ string / txt_progress3" / & Gt; & Lt; / LinearLayout & gt;  

The problem I am facing is that the triangle cycles in small screen devices are smaller than others I think that I am using wrap_content, what is the three Is there any way to force the same size of roads?

Thanks

Yes, there is weight attribute Use:

  & lt; Com.theproject.ui.view.ViewProgressbarAndroid: id = "@ + id / vps_history_progress1" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: layout_weight = 1 app: value = "@ string / zero" app : Topic = "@ string / txt_progress1" />  

Repeat this for your other ideas inside your linear layout.


No comments:

Post a Comment