Android拍照上传程序的xml配置文件
2010-03-10 15:21
676 查看
1. login_window.xml
2. func_selector.xml
3. night_item.xml
4. config_window.xml
5. AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/bg_logo" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:text="@string/user_name" /> <EditText android:id="@+id/username" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:scrollHorizontally="true" android:autoText="false" android:text="user" android:capitalize="none" android:gravity="fill_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:text="@string/user_passwd" /> <EditText android:id="@+id/userpasswd" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:scrollHorizontally="true" android:autoText="false" android:text="user" android:capitalize="none" android:gravity="fill_horizontal" android:password="true" android:textAppearance="?android:attr/textAppearanceMedium" /> <CheckBox android:id="@+id/cbx_cmwap" android:text="CMWAP" android:checked="false" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <RelativeLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"> <Button android:id="@+id/login_button" android:text="LOGIN" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:layout_alignParentRight="true" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <Button android:id="@+id/exit_button" android:text="EXIT" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:layout_toLeftOf="@id/login_button" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout> </LinearLayout>
2. func_selector.xml
<?xml version="1.0" encoding="utf-8"?> <GridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/func_selector" android:layout_width="fill_parent" android:layout_height="fill_parent" android:numColumns="auto_fit" android:verticalSpacing="10dp" android:horizontalSpacing="10dp" android:columnWidth="90dp" android:stretchMode="columnWidth" android:gravity="center" android:background="@drawable/bg_logo" />
3. night_item.xml
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:paddingBottom="4dip" android:layout_width="fill_parent"> <ImageView android:layout_height="wrap_content" android:id="@+id/ItemImage" android:layout_width="wrap_content" android:layout_centerHorizontal="true"> </ImageView> <TextView android:layout_width="wrap_content" android:layout_below="@+id/ItemImage" android:layout_height="wrap_content" android:text="TextView01" android:layout_centerHorizontal="true" android:id="@+id/ItemText"> </TextView> </RelativeLayout>
4. config_window.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:text="@string/server_ip" /> <EditText android:id="@+id/serverip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:scrollHorizontally="true" android:autoText="false" android:capitalize="none" android:gravity="fill_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:text="@string/server_port" /> <EditText android:id="@+id/serverport" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:scrollHorizontally="true" android:autoText="false" android:capitalize="none" android:gravity="fill_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <RelativeLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"> <Button android:id="@+id/ok_button" android:text="@string/ok_button" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:layout_alignParentRight="true" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <Button android:id="@+id/back_button" android:text="@string/back_button" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" android:layout_toLeftOf="@id/ok_button" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout> </LinearLayout>
5. AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hemi.rhet" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:label="@string/app_name" android:name="LoginWindow"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="FuncSelector"></activity> <activity android:name="PhotoUpload"></activity> <activity android:name="ConfigWindow"></activity> </application> <uses-sdk android:minSdkVersion="5"/> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission> </manifest>
相关文章推荐
- Android之用XML文件对程序进行配置
- Qt编写Android程序中添加XML配置文件
- Android apk反编译图解(得到程序的java源代码,图片、XML配置、语言资源等文件)
- Android apk反编译图解(得到程序的java源代码,图片、XML配置、语言资源等文件)
- Android apk反编译图解(得到程序的java源代码,图片、XML配置、语言资源等文件)
- Android程序开发通过HttpURLConnection上传文件到服务器
- AndroidManifest.xml配置文件详解
- AndroidManifest.xml配置文件各个知识点详解
- AndroidManifest.xml 主配置清单文件 各句解释
- android Manifest.xml全局配置文件中根标签中package属性及<original-package>标签注意点
- 文件上传--图片上传 (注解配置以及xml配置)
- Android下使用TinyXml读取xml配置文件(Cocos2d-x游戏开发)
- Android程序调试时生成main.out.xml文件,报错: Resource entry main is already defined
- 赵雅智_AndroidManifest.xml配置文件详解
- Android程序apk文件上传的问题
- Android开发中界面采用xml配置文件的优势
- android 上传文件用php程序在服务端接受(一)
- struts.xml配置文件上传文件类型的详解
- apk反编译生成程序的源代码和图片、XML配置、语言资源等文件
- Android程序的时候就要设计到编写xml布局文件,这里就教你如何设置xml的自动补全。