全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2214|回复: 0
打印 上一主题 下一主题

[Windows VPS] 求android 介面設計論壇大神指教

[复制链接]
跳转到指定楼层
1#
发表于 2016-7-9 20:30:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
200金钱
本帖最后由 CloudLink.asia 于 2016-7-9 20:31 编辑

預期結果:
IMG_4824.JPG (254.65 KB, 下载次数: 2)

現實結果:
IMG_4823.JPG (1.25 MB, 下载次数: 2)

  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.     xmlns:tools="http://schemas.android.com/tools"
  3.     android:layout_width="match_parent"
  4.     android:layout_height="match_parent"
  5.     android:orientation="vertical"
  6.     tools:context="com.exercise.android.ivecode.result"
  7.     android:background="#FFFFFF">

  8.     <TextView
  9.         android:id="@+id/resultText"
  10.         android:layout_width="match_parent"
  11.         android:layout_height="wrap_content"
  12.         android:textSize="50dp"
  13.         android:layout_gravity="center"
  14.         android:gravity="center"
  15.         android:padding="50dp"
  16.         android:textColor="#FFFFFF"
  17.         android:layout_alignParentTop="true"
  18.         android:background="#607D8B"
  19.         android:fontFamily="sans-serif-light"
  20.         />
  21. <LinearLayout
  22.     android:layout_marginTop="10dp"
  23.     android:layout_width="match_parent"
  24.     android:layout_height="wrap_content"
  25.     android:id="@+id/timelayout"
  26.     android:layout_below="@+id/resultText"
  27.     android:orientation="horizontal">
  28.     <ImageView
  29.         android:layout_width="50dp"
  30.         android:layout_height="50dp"
  31.         android:src="@drawable/clock"
  32.         android:layout_marginTop="10dp"
  33.         android:layout_marginLeft="30dp"/>
  34.     <TextView
  35.         android:id="@+id/timetext"
  36.         android:layout_width="wrap_content"
  37.         android:layout_height="wrap_content"
  38.     android:layout_marginLeft="30dp"
  39.         android:layout_below="@+id/resultText"
  40.         android:textSize="50dp"
  41.         android:textColor="#696969"
  42.         android:fontFamily="sans-serif-light"
  43.         />
  44. </LinearLayout>
  45.     <LinearLayout
  46.         android:id="@+id/horline"
  47.         android:layout_width="match_parent"
  48.         android:layout_height="wrap_content"
  49.         android:orientation="vertical"
  50.         android:layout_below="@+id/timelayout">
  51.         <TextView
  52.             android:id="@+id/time"
  53.             android:layout_width="match_parent"
  54.             android:layout_height="wrap_content"
  55.             android:textSize="50dp"
  56.             android:layout_gravity="center"
  57.             android:gravity="center"
  58.             android:textColor="@color/darkblue"
  59.             android:fontFamily="sans-serif-light"
  60.             />
  61.         <TextView
  62.             android:layout_marginTop="10dp"
  63.             android:layout_width="match_parent"
  64.             android:layout_height="2dp"
  65.             android:background="#c0c0c0"
  66.             android:id="@+id/your_id"
  67. />

  68.     </LinearLayout>


  69. <LinearLayout
  70.      android:layout_marginTop="10dp"
  71.      android:id="@+id/scoreLayout"
  72.      android:layout_width="match_parent"
  73.      android:layout_height="wrap_content"
  74.      android:orientation="horizontal"
  75.      android:layout_below="@+id/horline">
  76.      <ImageView
  77.          android:layout_width="50dp"
  78.          android:layout_height="50dp"
  79.          android:src="@drawable/score"
  80.          android:layout_marginTop="10dp"
  81.          android:layout_marginLeft="30dp"/>
  82.     <TextView
  83.         android:id="@+id/scoreText"
  84.         android:layout_width="wrap_content"
  85.         android:layout_height="wrap_content"
  86.         android:layout_marginLeft="30dp"
  87.         android:textSize="50dp"
  88.         android:textColor="#696969"
  89.         android:fontFamily="sans-serif-light"
  90.         />

  91. </LinearLayout>

  92.     <LinearLayout
  93.         android:layout_below="@+id/scoreLayout"
  94.         android:layout_width="match_parent"
  95.         android:layout_height="wrap_content"
  96.         android:orientation="vertical"
  97.         android:id="@+id/scoreLayout2">
  98.     <TextView
  99.         android:id="@+id/score"
  100.         android:layout_width="match_parent"
  101.         android:layout_height="wrap_content"
  102.         android:textSize="50dp"
  103.         android:layout_gravity="center"
  104.         android:gravity="center"
  105.         android:textColor="@color/darkblue"
  106.         android:fontFamily="sans-serif-light" />
  107.     </LinearLayout>

  108.     <TableLayout
  109.         android:layout_marginTop="10dp"
  110.         android:layout_below="@id/scoreLayout2"
  111.         android:layout_width="match_parent"
  112.         android:layout_height="match_parent"
  113.         android:background="#CFD8DC"
  114.         android:stretchColumns="0,1">

  115.         <TableRow>
  116.             <Button
  117.                 android:id="@+id/backToHome"
  118.                 android:layout_width="match_parent"
  119.                 android:layout_height="50dp"
  120.                 android:text="Back to Home"
  121.                 android:background="#9C2542"
  122.                 android:textColor="#FFFFFF"
  123.                 android:onClick="buttonBackToHome"
  124.                 android:layout_column="0"/>

  125.             <Button
  126.                 android:id="@+id/tryAgain"
  127.                 android:layout_width="match_parent"
  128.                 android:layout_height="50dp"
  129.                 android:text="Try Again"
  130.                 android:background="#367588"
  131.                 android:textColor="#FFFFFF"
  132.                 android:onClick="buttonGoOnClick"
  133.                 android:layout_column="1"/>
  134.         </TableRow>
  135.         <TableRow>
  136.             <Button
  137.                 android:id="@+id/showResult"
  138.                 android:layout_width="match_parent"
  139.                 android:layout_height="wrap_content"
  140.                 android:text="Show Result"
  141.                 android:background="#8C8984"
  142.                 android:textColor="#FFFFFF"
  143.                 android:onClick="buttonShowResult"
  144.                 android:layout_span="3"/>
  145.         </TableRow>
  146.     </TableLayout>

  147. </RelativeLayout>
复制代码

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-25 21:23 , Processed in 0.113648 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表