3
正如您可以从标题中了解到的,我在缩放时遇到了一些问题,并且我目前正在构建这些问题。在我的GalaxyS5上,一切运行都很完美,但是当我尝试在三星平板电脑上运行它时,屏幕更大,我遇到了一些问题。Android缩放(布局)问题
因为我不能发布图片,这里是提供我的问题的直观描述的链接: https://www.sendspace.com/file/83j0tp
更新:因为我有10reputation职位,我可以添加图片。
三星S5
状态1
状态2
SamsungTab(片剂)
状态1
国家2
这是我的XML代码:
我希望你们能帮助我。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/linearLayout5"
android:layout_alignTop="@+id/linearLayout6">
<ImageView
android:id="@+id/loginImage"
android:layout_width="fill_parent"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/loginImage2"
android:layout_width="fill_parent"
android:layout_height="match_parent" />
<TextView
android:layout_width="372dp"
android:layout_height="match_parent"
android:layout_alignLeft="@+id/loginImage"
android:layout_alignTop="@+id/loginImage"
android:layout_alignRight="@+id/loginImage"
android:layout_alignBottom="@+id/loginImage"
android:gravity="center|right"
android:id="@+id/textLoginmail" />
</LinearLayout>
<LinearLayout
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:layout_height="49.5dp"
android:layout_marginTop="45dp"
android:id="@+id/linearLayout6"
android:weightSum="1"
android:layout_alignParentEnd="false">
<TextView
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="Registreer"
android:gravity="center|right"
android:textColor="#FFFFFF"
android:id="@+id/textRegistreer"
android:layout_weight="0.72" />
<TextView
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:id="@+id/textLogin"
android:layout_weight="0.44"
android:text="Login"
android:textColor="#FFFFFF"
android:gravity="center"/>
<Button
android:layout_width="81dp"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:id="@+id/closeButton" />
</LinearLayout>
<FrameLayout
android:layout_above="@id/linearLayout5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="25dp"
android:id="@+id/framelayout_facebook">
<ImageView
android:id="@+id/facebookImage"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.facebook.widget.LoginButton
android:id="@+id/fb_login_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_action_labels"
android:drawableRight="@drawable/ic_action_next_item"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"/>
<LinearLayout
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="horizontal"
android:id="@+id/overlay_for_terms"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:textColor="#FFFFFF"
android:id="@+id/textFacebook"
android:layout_weight="0.90" />
</LinearLayout>
</FrameLayout>
遵循三星S5和标签有不同势屏幕尺寸http://developer.android.com/training/multiscreen/screensizes.html – 2014-10-01 13:10:33
S5从拿文件'hdpi'文件夹..检查乌尔标签文件夹可能需要从'xhdpi'或'xxhdpi' – prabhakaran 2014-10-01 13:15:06
图片是从服务器中挑选的。你有没有检查寄存空间文件?我不认为这是hdpi或mdpi的问题,我认为我的代码不正确。 – Zakdroid 2014-10-01 13:17:17