다음은 내가 사용중인 XML파일의 일부이다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" > <TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="30dp" android:layout_gravity="center_horizontal|center" android:gravity="center" android:text="위치" android:textSize="20sp" /> </TableRow> <View android:layout_height="1dip" android:background="#000000" /> <TableRow android:layout_width="fill_parent" android:layout_height="70dp" > <TextView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:gravity="center" android:text="위치" android:textSize="18sp" /> <Spinner android:id="@+id/myspinner" android:layout_width="0dip" android:layout_height="48dp" android:layout_gravity="bottom" android:layout_weight="2" android:animateLayoutChanges="true" android:drawSelectorOnTop="true" /> <Button android:id="@+id/btnConnect" android:layout_width="0dp" android:layout_height="48dp" android:layout_gravity="center" android:layout_weight="1" android:text="접속" android:textColor="#ffffff" /> </TableRow> <View android:layout_height="1dip" android:background="#000000" /> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:layout_marginTop="28dp" android:text="" android:textSize="25sp" /> </TableRow> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:layout_marginTop="28dp" android:text="" android:textSize="25sp" /> </TableRow> <View android:layout_height="1dp" android:background="#000000" /> <TableRow android:layout_width="wrap_content" android:layout_height="70dp" > <Button android:id="@+id/btnAdd" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:textColor="#ffffff" android:text="추가" /> <Button android:id="@+id/btnModify" android:layout_width="0dip" android:layout_height="wrap_content" android:textColor="#ffffff" android:text="수정" android:layout_weight="1" /> <Button android:id="@+id/btnDelete" android:layout_width="0dip" android:layout_height="wrap_content" android:textColor="#ffffff" android:text="삭제" android:layout_weight="1" /> </TableRow> <View android:layout_height="1dip" android:background="#000000" /> <TextView android:id="@+id/textVersion" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:gravity="center" android:text="버전표시" android:textSize="14sp" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <!-- 자동업데이트 나타나는 부분 --> <RelativeLayout android:id="@+id/layoutDownloadUpdate" android:layout_width="match_parent" android:layout_height="60dp" android:visibility="gone" android:layout_gravity="center_horizontal" android:gravity="center" android:background="#A0909090"> <TextView android:id="@+id/progressTitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:paddingLeft="5dp" android:paddingRight="5dp" android:text="" android:textStyle="bold" android:textColor="#000000" /> <ProgressBar android:id="@+id/progressBar" android:layout_width="match_parent" android:layout_height="wrap_content" style="?android:attr/progressBarStyleHorizontal" android:paddingTop="22dp" android:paddingLeft="5dp" android:paddingRight="5dp" android:layout_alignParentTop="true" android:max="100"/> <TextView android:id="@+id/progressText" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="40dp" android:paddingLeft="5dp" android:paddingRight="5dp" android:layout_alignParentTop="true" android:text="" android:textStyle="bold" android:textColor="#000000" /> </RelativeLayout> </LinearLayout> </TableLayout> |
복사해서 사용하면 되겠다.
'안드로이드 자동업데이트 구현' 카테고리의 다른 글
4. 안드로이드 어플리케이션 자동 업데이트 환경 구현 소스 (0) | 2014.11.25 |
---|---|
3. 업데이트가 있다고 알려주는 화면 XML (0) | 2014.11.24 |
1. 웹서버에 올릴 설정파일 (0) | 2014.11.21 |