xml - Android: Screen Layout looks different on 2 phones of the same model -


i'm alpha testing app , first time people looking @ on multiple devices. 1 person told me buttons on screen getting cut off.

the weird thing - we're using same device. we're both using samsung galaxy s3, our screen resolutions should same.

  1. is there setting on (or my) phone might have changed resolution see things larger? (like ctrl + in browser)
  2. what else cause this??

screenshots , xml included below. differences on right: text bigger, homemade ellipses missing, settings button cut off

good screenshot bad screenshot

<scrollview xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     tools:context="com.farmsoft.lunchguru.app.pick_restaurant"     android:layout_height="match_parent"     android:layout_width="match_parent"> <linearlayout     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingleft="@dimen/activity_horizontal_margin"     android:paddingright="@dimen/activity_horizontal_margin"     android:paddingtop="@dimen/activity_vertical_margin"     android:paddingbottom="@dimen/activity_vertical_margin"     android:orientation="vertical">      <textview         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/pickrest_header"         android:textstyle="bold"         android:textsize="20sp"         android:gravity="center_horizontal"         android:id="@+id/lbl_title"/>      <textview         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/pickrest_companionhdr"/>      <tablelayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:id="@+id/companion_box">      </tablelayout>      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:gravity="right"         android:orientation="horizontal">          <button             android:layout_width="45dp"             android:layout_height="30dp"             android:text="•••"             android:gravity="top"             android:id="@+id/more_companions"             android:onclick="onclick_more_companions"/>          </linearlayout>      <space         android:layout_width="0dip"         android:layout_height="35dp" />      <com.farmsoft.lunchguru.utils.listbutton         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/pickrest_recommend_button"         android:id="@+id/recommend_button"         android:onclick="onclick_recommend"         android:enabled="false"/>      <textview         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/or"         android:gravity="center_horizontal"         android:textsize="10pt"         android:textstyle="bold"/>      <com.farmsoft.lunchguru.utils.listbutton         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/pickrest_nearby_button"         android:id="@+id/nearby_button"         android:onclick="onclick_nearby"         android:enabled="false"/>      <textview         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/or"         android:gravity="center_horizontal"         android:textsize="10pt"         android:textstyle="bold"/>      <com.farmsoft.lunchguru.utils.listbutton         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/pickrest_search_button"         android:id="@+id/search_button"         android:onclick="onclick_search"/>      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/lbl_version"/>      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/lbl_coordinates"         android:text="@string/pickrest_coordinates_load"/>      <space         android:layout_width="0dip"         android:layout_height="35dp" />      <button         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/pickrest_iatethere_button"         android:id="@+id/attend_button"         android:onclick="onclick_attend"         android:visibility="gone"/>      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:orientation="horizontal">          <button             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:id="@+id/ratings_button"             android:text="@string/pickrest_rating_button"             android:onclick="onclick_ratings"             android:enabled="false"/>         <space             android:layout_width="0dp"             android:layout_height="0dip"             android:layout_weight="1" />         <button             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:id="@+id/settings_button"             android:text="@string/pickrest_settings_button"             android:onclick="onclick_settings"/>         </linearlayout>      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:orientation="horizontal">          <button             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:id="@+id/connections_button"             android:text="@string/pickrest_connections_button"             android:onclick="onclick_connections"/>          <space             android:layout_width="0dp"             android:layout_height="wrap_content"             android:layout_weight="1"/>         </linearlayout> </linearlayout> </scrollview> 

you're doing correctly, using sp specify font size. scale fonts you've chosen based on system-wide font-scale. 1 of users has increased system-wide font-size. on aosp phones, in settings/display/font size. should in similar spot samsung devices.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -