Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom Checkbox Shows Different layouts for 2.3 and 4.2
    primarykey
    data
    text
    <p>I am Working on Project with inside i want to Use custome image for Checkbox checked/unchecked event.</p> <p>inside my login xml i have write :</p> <pre><code>&lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:layout_marginTop="5dp" &gt; &lt;CheckBox android:id="@+id/chk_remember_me" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@drawable/checkbox_uncheked" android:paddingLeft="5dp" android:text="Remember Me" android:textColor="#024d94" android:textSize="12dp" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Here i have Used <code>android:paddingLeft="5dp"</code> for getting space between button and textview.</p> <p><strong>My Problem :</strong> i got two different views for 2.3 and 4.2</p> <blockquote> <p>for Device that has xhdpi or below density or that has large screen i am getting below screen (this one is perfect as i want ):</p> </blockquote> <p><img src="https://i.stack.imgur.com/c4nM6.png" alt="enter image description here"></p> <blockquote> <p>for Device that has hdpi or below density or that has normal/small screen i am getting below screen :</p> </blockquote> <p><img src="https://i.stack.imgur.com/JwHp7.png" alt="enter image description here"></p> <p>Can anyone tellme where am i missing? or anything Wrong in my layout?</p> <p>I want the same layout screen which i am getting for 4.2 device in normal/large screen devices.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload