How can i change the width and height programmatically so the shape will fit the android device it's running on ? the 90dp height fits to my device , but i want it to fit in other devices.
here is my shape.xml code :
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://ift.tt/nIICcg"
android:id="@+id/cellfilled" >
<size android:width="0dp"
android:height="90dp" />
<solid android:color="#00000000" />
<stroke
android:width="1dp"
android:color="#ff000000"/>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
</shape>
No comments:
Post a Comment