Questions tagged [percent-support-library]
5 questions
4
votes
2 answers
PercentSupportLibrary : Set percentage values in xml?
I want to use different layout width ratios for larger tablet screens. Is there a way to set percentage based (fraction-type) values such as layout_widthPercent and layout_marginStartPercent in dimens.xml?

Neoh
- 15,906
- 14
- 66
- 78
2
votes
1 answer
Assign percentage to PercentFrameLayout with databinding
Trying to create simple graph with layout using percent support library, but I'm not able to figure out, how to assign percents to view through databinding. Tried returning String "60%", float 0.6f, Float 0.6f, int 60. Nothing works.

Lubos Horacek
- 1,562
- 10
- 28
2
votes
1 answer
how to set ImageView width using Percent support lib and maintain aspect ratio?
Using the Android Percent Support Library, how can I set the width of an ImageView to a percentage of its containing PercentRelativeLayout, while scaling the height in such a way as to maintain the original aspect ratio?

Andy Dennie
- 6,012
- 2
- 32
- 51
1
vote
2 answers
What is minSDK for Percent Support Library?
I am not able to find it in official documentation, is there any info what is minSDK for new Percent Support Library?

KWA
- 312
- 3
- 15
0
votes
2 answers
How to divide space equally among odd number of views in a layout using support percent library?
I am using support percent library in my project.
compile 'com.android.support:percent:23.1.0'
I have three ImageViews in a LinearLayout which are supposed to take the space equally (in horizontal direction). But since percent support library has…

Ganesh Mohan
- 1,027
- 10
- 18