合并赵再春分支。
This commit is contained in:
commit
5a7f4c3881
|
@ -1,78 +0,0 @@
|
|||
package com.stone.shop.model;
|
||||
|
||||
import cn.bmob.v3.BmobObject;
|
||||
|
||||
/**
|
||||
* 博学堂讲座实体类
|
||||
* @date 2014-5-10
|
||||
* @author Stone
|
||||
*/
|
||||
public class BXTNews extends BmobObject{
|
||||
|
||||
//private String id;
|
||||
|
||||
private String title; //标题
|
||||
private String topic; //讲座主题
|
||||
private String speaker; //主 讲 人
|
||||
private String time; //讲座时间
|
||||
private String location; //讲座地点
|
||||
private String holder1; //主办单位
|
||||
private String holder2; //承办单位
|
||||
private String points; //主讲内容提要
|
||||
private String speakerinfo; //主讲人简介
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public String getTopic() {
|
||||
return topic;
|
||||
}
|
||||
public String getSpeaker() {
|
||||
return speaker;
|
||||
}
|
||||
public String getTime() {
|
||||
return time;
|
||||
}
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
public String getHolder1() {
|
||||
return holder1;
|
||||
}
|
||||
public String getHolder2() {
|
||||
return holder2;
|
||||
}
|
||||
public String getPoints() {
|
||||
return points;
|
||||
}
|
||||
public String getSpeakerinfo() {
|
||||
return speakerinfo;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public void setTopic(String topic) {
|
||||
this.topic = topic;
|
||||
}
|
||||
public void setSpeaker(String speaker) {
|
||||
this.speaker = speaker;
|
||||
}
|
||||
public void setTime(String time) {
|
||||
this.time = time;
|
||||
}
|
||||
public void setLocation(String location) {
|
||||
this.location = location;
|
||||
}
|
||||
public void setHolder1(String holder1) {
|
||||
this.holder1 = holder1;
|
||||
}
|
||||
public void setHolder2(String holder2) {
|
||||
this.holder2 = holder2;
|
||||
}
|
||||
public void setPoints(String points) {
|
||||
this.points = points;
|
||||
}
|
||||
public void setSpeakerinfo(String speakerinfo) {
|
||||
this.speakerinfo = speakerinfo;
|
||||
}
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.stone.shop.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import cn.bmob.v3.BmobObject;
|
||||
import cn.bmob.v3.datatype.BmobFile;
|
||||
|
||||
/**
|
||||
* 商品实体类
|
||||
* @date 2014-4-24
|
||||
* @author Stone
|
||||
*/
|
||||
public class Good extends BmobObject implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = -3248168273019127389L;
|
||||
|
||||
//private String id; 商品ID, 默认
|
||||
|
||||
private String shopID = ""; // 商店ID
|
||||
private String shopName = ""; //商店名称
|
||||
private String type = ""; // 类型
|
||||
private String name = ""; // 名称
|
||||
private String price = ""; // 价格
|
||||
private BmobFile picGood = null; // 商品主图
|
||||
|
||||
public Good(String name, String price) {
|
||||
this.name = name;
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getShopID() {
|
||||
return shopID;
|
||||
}
|
||||
|
||||
public void setShopID(String shopID) {
|
||||
this.shopID = shopID;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(String price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
package com.stone.shop.model;
|
||||
|
||||
import cn.bmob.v3.BmobObject;
|
||||
|
||||
/**
|
||||
* 首页校内新闻实体类
|
||||
*
|
||||
* @date 2014-5-3
|
||||
* @author Stone
|
||||
*/
|
||||
public class News extends BmobObject {
|
||||
|
||||
// private String id;
|
||||
// private String time;
|
||||
|
||||
private String type; // 新闻类型
|
||||
private String title; // 新闻标题
|
||||
private String author; // 新闻作者
|
||||
private String content; // 新闻内容
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.stone.shop.model;
|
||||
|
||||
import cn.bmob.v3.BmobObject;
|
||||
|
||||
/**
|
||||
* 店铺评论实体类
|
||||
* @date 2014-5-3
|
||||
* @author Stone
|
||||
*/
|
||||
public class SComment extends BmobObject {
|
||||
|
||||
// private String id;
|
||||
// private String time;
|
||||
|
||||
private String shopID;
|
||||
private String shopName;
|
||||
private String userID;
|
||||
private String userName;
|
||||
private String content;
|
||||
|
||||
public String getShopID() {
|
||||
return shopID;
|
||||
}
|
||||
|
||||
public void setShopID(String shopID) {
|
||||
this.shopID = shopID;
|
||||
}
|
||||
|
||||
public String getShopName() {
|
||||
return shopName;
|
||||
}
|
||||
|
||||
public void setShopName(String shopName) {
|
||||
this.shopName = shopName;
|
||||
}
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,82 +0,0 @@
|
|||
package com.stone.shop.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import cn.bmob.v3.BmobObject;
|
||||
import cn.bmob.v3.datatype.BmobFile;
|
||||
|
||||
/**
|
||||
* 店铺实体类, 实现序列化, Activity之间实现传递
|
||||
* @date 2014-4-24
|
||||
* @author Stone
|
||||
*/
|
||||
public class Shop extends BmobObject implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = -8796635595320697255L;
|
||||
|
||||
private String userID; // 主人
|
||||
private String type; // 类型(11代表第一个GridView中的第一个)
|
||||
private String name; // 店名
|
||||
private String location; // 地理位置
|
||||
private String phone; // 联系电话
|
||||
private String info; // 简介
|
||||
private String sale; // 促销信息
|
||||
private BmobFile picShop; // 商店主图
|
||||
|
||||
public String getUserID() {
|
||||
return userID;
|
||||
}
|
||||
|
||||
public void setUserID(String userID) {
|
||||
this.userID = userID;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
public void setLocation(String location) {
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getInfo() {
|
||||
return info;
|
||||
}
|
||||
|
||||
public void setInfo(String info) {
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
public String getSale() {
|
||||
return sale;
|
||||
}
|
||||
|
||||
public void setSale(String sale) {
|
||||
this.sale = sale;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,106 +0,0 @@
|
|||
package com.stone.shop.model;
|
||||
|
||||
import cn.bmob.v3.BmobUser;
|
||||
import cn.bmob.v3.datatype.BmobFile;
|
||||
import cn.bmob.v3.datatype.BmobRelation;
|
||||
|
||||
/**
|
||||
* 用户实体类
|
||||
* @date 2014-4-24
|
||||
* @author Stone
|
||||
*/
|
||||
public class User extends BmobUser {
|
||||
|
||||
public static String userId;
|
||||
|
||||
// 父类中已经存在的属性
|
||||
// private String id;
|
||||
// private String username;
|
||||
// private String password;
|
||||
// private String email;
|
||||
// private String regTime;
|
||||
|
||||
private String sex; // 性别
|
||||
private String phone; // 电话
|
||||
private String qq; // QQ
|
||||
private String school = "湖北工业大学"; // 学校
|
||||
private String cademy; // 学院
|
||||
private String dorPart; // 校区
|
||||
private String dorNum; // 寝室号
|
||||
private String state = "未登陆"; // 登录状态
|
||||
private String type = "普通用户"; // 用户类型(普通用户、黑名单、中奖者)
|
||||
//private BmobFile picUser; // 头像
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getQQ() {
|
||||
return qq;
|
||||
}
|
||||
|
||||
public void setQQ(String qq) {
|
||||
this.qq = qq;
|
||||
}
|
||||
|
||||
public String getSchool() {
|
||||
return school;
|
||||
}
|
||||
|
||||
public void setSchool(String school) {
|
||||
this.school = school;
|
||||
}
|
||||
|
||||
public String getCademy() {
|
||||
return cademy;
|
||||
}
|
||||
|
||||
public void setCademy(String cademy) {
|
||||
this.cademy = cademy;
|
||||
}
|
||||
|
||||
public String getDorPart() {
|
||||
return dorPart;
|
||||
}
|
||||
|
||||
public void setDorPart(String dorPart) {
|
||||
this.dorPart = dorPart;
|
||||
}
|
||||
|
||||
public String getDorNum() {
|
||||
return dorNum;
|
||||
}
|
||||
|
||||
public void setDorNum(String dorNum) {
|
||||
this.dorNum = dorNum;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,756 +0,0 @@
|
|||
package com.stone.util;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.util.List;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.ContentUris;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.database.Cursor;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.Bitmap.CompressFormat;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.NetworkInfo;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Environment;
|
||||
import android.provider.MediaStore;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.widget.Toast;
|
||||
import junit.framework.Assert;
|
||||
|
||||
/**
|
||||
* 工具类
|
||||
*
|
||||
* @date 2014-5-9
|
||||
* @author Stone
|
||||
*/
|
||||
public class Util {
|
||||
|
||||
/**
|
||||
* 判断电话号码是否有效
|
||||
*
|
||||
* @param phoneNumber
|
||||
* @return true 有效 / false 无效
|
||||
*/
|
||||
public static boolean isPhoneNumberValid(String phoneNumber) {
|
||||
|
||||
boolean isValid = false;
|
||||
|
||||
String expression = "((^(13|15|18)[0-9]{9}$)|(^0[1,2]{1}\\d{1}-?\\d{8}$)|(^0[3-9] {1}\\d{2}-?\\d{7,8}$)|(^0[1,2]{1}\\d{1}-?\\d{8}-(\\d{1,4})$)|(^0[3-9]{1}\\d{2}-? \\d{7,8}-(\\d{1,4})$))";
|
||||
CharSequence inputStr = phoneNumber;
|
||||
|
||||
Pattern pattern = Pattern.compile(expression);
|
||||
Matcher matcher = pattern.matcher(inputStr);
|
||||
|
||||
if (matcher.matches()) {
|
||||
isValid = true;
|
||||
}
|
||||
return isValid;
|
||||
}
|
||||
|
||||
// 判断网络是否连接
|
||||
public static boolean isNetworkConnected(Context context) {
|
||||
if (context != null) {
|
||||
ConnectivityManager mConnectivityManager = (ConnectivityManager) context
|
||||
.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
NetworkInfo mNetworkInfo = mConnectivityManager
|
||||
.getActiveNetworkInfo();
|
||||
if (mNetworkInfo != null) {
|
||||
return mNetworkInfo.isAvailable();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static final String TAG = "SDK_Sample.Util";
|
||||
|
||||
private static Dialog mProgressDialog;
|
||||
private static Toast mToast;
|
||||
|
||||
/* Convert byte[] to hex string.这里我们可以将byte转换成int,然后利用Integer.toHexString(int)来转换成16进制字符串。
|
||||
* @param src byte[] data
|
||||
* @return hex string
|
||||
*/
|
||||
public static String bytesToHexString(byte[] src){
|
||||
StringBuilder stringBuilder = new StringBuilder("");
|
||||
if (src == null || src.length <= 0) {
|
||||
return null;
|
||||
}
|
||||
for (int i = 0; i < src.length; i++) {
|
||||
int v = src[i] & 0xFF;
|
||||
String hv = Integer.toHexString(v);
|
||||
if (hv.length() < 2) {
|
||||
stringBuilder.append(0);
|
||||
}
|
||||
stringBuilder.append(hv);
|
||||
}
|
||||
return stringBuilder.toString();
|
||||
}
|
||||
/**
|
||||
* Convert hex string to byte[]
|
||||
* @param hexString the hex string
|
||||
* @return byte[]
|
||||
*/
|
||||
public static byte[] hexStringToBytes(String hexString) {
|
||||
if (hexString == null || hexString.equals("")) {
|
||||
return null;
|
||||
}
|
||||
hexString = hexString.toUpperCase();
|
||||
int length = hexString.length() / 2;
|
||||
char[] hexChars = hexString.toCharArray();
|
||||
byte[] d = new byte[length];
|
||||
for (int i = 0; i < length; i++) {
|
||||
int pos = i * 2;
|
||||
d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));
|
||||
}
|
||||
return d;
|
||||
}
|
||||
/**
|
||||
* Convert char to byte
|
||||
* @param c char
|
||||
* @return byte
|
||||
*/
|
||||
private static byte charToByte(char c) {
|
||||
return (byte) "0123456789ABCDEF".indexOf(c);
|
||||
}
|
||||
|
||||
/*
|
||||
* 16进制数字字符集
|
||||
*/
|
||||
private static String hexString="0123456789ABCDEF";
|
||||
/*
|
||||
* 将字符串编码成16进制数字,适用于所有字符(包括中文)
|
||||
*/
|
||||
public static String toHexString(String str)
|
||||
{
|
||||
//根据默认编码获取字节数组
|
||||
byte[] bytes = null;
|
||||
try {
|
||||
bytes = str.getBytes("UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (bytes == null) return null;
|
||||
StringBuilder sb=new StringBuilder(bytes.length*2);
|
||||
//将字节数组中每个字节拆解成2位16进制整数
|
||||
for(int i=0;i<bytes.length;i++)
|
||||
{
|
||||
sb.append(hexString.charAt((bytes[i]&0xf0)>>4));
|
||||
sb.append(hexString.charAt((bytes[i]&0x0f)>>0));
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
//转换十六进制编码为字符串
|
||||
public static String hexToString(String s)
|
||||
{
|
||||
if("0x".equals(s.substring(0, 2)))
|
||||
{
|
||||
s =s.substring(2);
|
||||
}
|
||||
byte[] baKeyword = new byte[s.length()/2];
|
||||
for(int i = 0; i < baKeyword.length; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
baKeyword[i] = (byte)(0xff & Integer.parseInt(s.substring(i*2, i*2+2),16));
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
s = new String(baKeyword, "utf-8");//UTF-16le:Not
|
||||
}
|
||||
catch (Exception e1)
|
||||
{
|
||||
e1.printStackTrace();
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
public static byte[] bmpToByteArray(final Bitmap bmp, final boolean needRecycle) {
|
||||
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
||||
bmp.compress(CompressFormat.PNG, 100, output);
|
||||
if (needRecycle) {
|
||||
bmp.recycle();
|
||||
}
|
||||
|
||||
byte[] result = output.toByteArray();
|
||||
try {
|
||||
output.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static byte[] getHtmlByteArray(final String url) {
|
||||
URL htmlUrl = null;
|
||||
InputStream inStream = null;
|
||||
try {
|
||||
htmlUrl = new URL(url);
|
||||
URLConnection connection = htmlUrl.openConnection();
|
||||
HttpURLConnection httpConnection = (HttpURLConnection)connection;
|
||||
int responseCode = httpConnection.getResponseCode();
|
||||
if(responseCode == HttpURLConnection.HTTP_OK){
|
||||
inStream = httpConnection.getInputStream();
|
||||
}
|
||||
} catch (MalformedURLException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
byte[] data = inputStreamToByte(inStream);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
public static byte[] inputStreamToByte(InputStream is) {
|
||||
try{
|
||||
ByteArrayOutputStream bytestream = new ByteArrayOutputStream();
|
||||
int ch;
|
||||
while ((ch = is.read()) != -1) {
|
||||
bytestream.write(ch);
|
||||
}
|
||||
byte imgdata[] = bytestream.toByteArray();
|
||||
bytestream.close();
|
||||
return imgdata;
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static byte[] readFromFile(String fileName, int offset, int len) {
|
||||
if (fileName == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
File file = new File(fileName);
|
||||
if (!file.exists()) {
|
||||
Log.i(TAG, "readFromFile: file not found");
|
||||
return null;
|
||||
}
|
||||
|
||||
if (len == -1) {
|
||||
len = (int) file.length();
|
||||
}
|
||||
|
||||
Log.d(TAG, "readFromFile : offset = " + offset + " len = " + len + " offset + len = " + (offset + len));
|
||||
|
||||
if(offset <0){
|
||||
Log.e(TAG, "readFromFile invalid offset:" + offset);
|
||||
return null;
|
||||
}
|
||||
if(len <=0 ){
|
||||
Log.e(TAG, "readFromFile invalid len:" + len);
|
||||
return null;
|
||||
}
|
||||
if(offset + len > (int) file.length()){
|
||||
Log.e(TAG, "readFromFile invalid file len:" + file.length());
|
||||
return null;
|
||||
}
|
||||
|
||||
byte[] b = null;
|
||||
try {
|
||||
RandomAccessFile in = new RandomAccessFile(fileName, "r");
|
||||
b = new byte[len];
|
||||
in.seek(offset);
|
||||
in.readFully(b);
|
||||
in.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "readFromFile : errMsg = " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
||||
public static int computeSampleSize(BitmapFactory.Options options,
|
||||
|
||||
int minSideLength, int maxNumOfPixels) {
|
||||
|
||||
int initialSize = computeInitialSampleSize(options, minSideLength,
|
||||
|
||||
maxNumOfPixels);
|
||||
|
||||
int roundedSize;
|
||||
|
||||
if (initialSize <= 8) {
|
||||
|
||||
roundedSize = 1;
|
||||
|
||||
while (roundedSize < initialSize) {
|
||||
|
||||
roundedSize <<= 1;
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
roundedSize = (initialSize + 7) / 8 * 8;
|
||||
|
||||
}
|
||||
|
||||
return roundedSize;
|
||||
}
|
||||
|
||||
private static int computeInitialSampleSize(BitmapFactory.Options options,
|
||||
|
||||
int minSideLength, int maxNumOfPixels) {
|
||||
|
||||
double w = options.outWidth;
|
||||
|
||||
double h = options.outHeight;
|
||||
|
||||
int lowerBound = (maxNumOfPixels == -1) ? 1 :
|
||||
|
||||
(int) Math.ceil(Math.sqrt(w * h / maxNumOfPixels));
|
||||
|
||||
int upperBound = (minSideLength == -1) ? 128 :
|
||||
|
||||
(int) Math.min(Math.floor(w / minSideLength),
|
||||
|
||||
Math.floor(h / minSideLength));
|
||||
|
||||
if (upperBound < lowerBound) {
|
||||
|
||||
// return the larger one when there is no overlapping zone.
|
||||
|
||||
return lowerBound;
|
||||
|
||||
}
|
||||
|
||||
if ((maxNumOfPixels == -1) &&
|
||||
|
||||
(minSideLength == -1)) {
|
||||
|
||||
return 1;
|
||||
|
||||
} else if (minSideLength == -1) {
|
||||
|
||||
return lowerBound;
|
||||
|
||||
} else {
|
||||
|
||||
return upperBound;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 以最省内存的方式读取图片
|
||||
*/
|
||||
public static Bitmap readBitmap(final String path){
|
||||
try{
|
||||
FileInputStream stream = new FileInputStream(new File(path+"test.jpg"));
|
||||
BitmapFactory.Options opts = new BitmapFactory.Options();
|
||||
opts.inSampleSize = 8;
|
||||
opts.inPurgeable=true;
|
||||
opts.inInputShareable=true;
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(stream , null, opts);
|
||||
return bitmap;
|
||||
} catch (OutOfMemoryError e) {
|
||||
return null;
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static final int MAX_DECODE_PICTURE_SIZE = 1920 * 1440;
|
||||
public static Bitmap extractThumbNail(final String path, final int height, final int width, final boolean crop) {
|
||||
Assert.assertTrue(path != null && !path.equals("") && height > 0 && width > 0);
|
||||
|
||||
BitmapFactory.Options options = new BitmapFactory.Options();
|
||||
|
||||
try {
|
||||
options.inJustDecodeBounds = true;
|
||||
Bitmap tmp = BitmapFactory.decodeFile(path, options);
|
||||
if (tmp != null) {
|
||||
tmp.recycle();
|
||||
tmp = null;
|
||||
}
|
||||
|
||||
Log.d(TAG, "extractThumbNail: round=" + width + "x" + height + ", crop=" + crop);
|
||||
final double beY = options.outHeight * 1.0 / height;
|
||||
final double beX = options.outWidth * 1.0 / width;
|
||||
Log.d(TAG, "extractThumbNail: extract beX = " + beX + ", beY = " + beY);
|
||||
options.inSampleSize = (int) (crop ? (beY > beX ? beX : beY) : (beY < beX ? beX : beY));
|
||||
if (options.inSampleSize <= 1) {
|
||||
options.inSampleSize = 1;
|
||||
}
|
||||
|
||||
// NOTE: out of memory error
|
||||
while (options.outHeight * options.outWidth / options.inSampleSize > MAX_DECODE_PICTURE_SIZE) {
|
||||
options.inSampleSize++;
|
||||
}
|
||||
|
||||
int newHeight = height;
|
||||
int newWidth = width;
|
||||
if (crop) {
|
||||
if (beY > beX) {
|
||||
newHeight = (int) (newWidth * 1.0 * options.outHeight / options.outWidth);
|
||||
} else {
|
||||
newWidth = (int) (newHeight * 1.0 * options.outWidth / options.outHeight);
|
||||
}
|
||||
} else {
|
||||
if (beY < beX) {
|
||||
newHeight = (int) (newWidth * 1.0 * options.outHeight / options.outWidth);
|
||||
} else {
|
||||
newWidth = (int) (newHeight * 1.0 * options.outWidth / options.outHeight);
|
||||
}
|
||||
}
|
||||
|
||||
options.inJustDecodeBounds = false;
|
||||
|
||||
Log.i(TAG, "bitmap required size=" + newWidth + "x" + newHeight + ", orig=" + options.outWidth + "x" + options.outHeight + ", sample=" + options.inSampleSize);
|
||||
Bitmap bm = BitmapFactory.decodeFile(path, options);
|
||||
if (bm == null) {
|
||||
Log.e(TAG, "bitmap decode failed");
|
||||
return null;
|
||||
}
|
||||
|
||||
Log.i(TAG, "bitmap decoded size=" + bm.getWidth() + "x" + bm.getHeight());
|
||||
final Bitmap scale = Bitmap.createScaledBitmap(bm, newWidth, newHeight, true);
|
||||
if (scale != null) {
|
||||
bm.recycle();
|
||||
bm = scale;
|
||||
}
|
||||
|
||||
if (crop) {
|
||||
final Bitmap cropped = Bitmap.createBitmap(bm, (bm.getWidth() - width) >> 1, (bm.getHeight() - height) >> 1, width, height);
|
||||
if (cropped == null) {
|
||||
return bm;
|
||||
}
|
||||
|
||||
bm.recycle();
|
||||
bm = cropped;
|
||||
Log.i(TAG, "bitmap croped size=" + bm.getWidth() + "x" + bm.getHeight());
|
||||
}
|
||||
return bm;
|
||||
|
||||
} catch (final OutOfMemoryError e) {
|
||||
Log.e(TAG, "decode bitmap failed: " + e.getMessage());
|
||||
options = null;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final void showResultDialog(Context context, String msg,
|
||||
String title) {
|
||||
if(msg == null) return;
|
||||
String rmsg = msg.replace(",", "\n");
|
||||
Log.d("Util", rmsg);
|
||||
new AlertDialog.Builder(context).setTitle(title).setMessage(rmsg)
|
||||
.setNegativeButton("知道了", null).create().show();
|
||||
}
|
||||
|
||||
public static final void showProgressDialog(Context context, String title,
|
||||
String message) {
|
||||
dismissDialog();
|
||||
if (TextUtils.isEmpty(title)) {
|
||||
title = "请稍候";
|
||||
}
|
||||
if (TextUtils.isEmpty(message)) {
|
||||
message = "正在加载...";
|
||||
}
|
||||
mProgressDialog = ProgressDialog.show(context, title, message);
|
||||
}
|
||||
|
||||
public static AlertDialog showConfirmCancelDialog(Context context,
|
||||
String title, String message,
|
||||
DialogInterface.OnClickListener posListener) {
|
||||
AlertDialog dlg = new AlertDialog.Builder(context).setMessage(message)
|
||||
.setPositiveButton("确认", posListener)
|
||||
.setNegativeButton("取消", null).create();
|
||||
dlg.setCanceledOnTouchOutside(false);
|
||||
dlg.show();
|
||||
return dlg;
|
||||
}
|
||||
|
||||
public static final void dismissDialog() {
|
||||
if (mProgressDialog != null) {
|
||||
mProgressDialog.dismiss();
|
||||
mProgressDialog = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印消息并且用Toast显示消息
|
||||
*
|
||||
* @param activity
|
||||
* @param message
|
||||
* @param logLevel
|
||||
* 填d, w, e分别代表debug, warn, error; 默认是debug
|
||||
*/
|
||||
public static final void toastMessage(final Activity activity,
|
||||
final String message, String logLevel) {
|
||||
if ("w".equals(logLevel)) {
|
||||
Log.w("sdkDemo", message);
|
||||
} else if ("e".equals(logLevel)) {
|
||||
Log.e("sdkDemo", message);
|
||||
} else {
|
||||
Log.d("sdkDemo", message);
|
||||
}
|
||||
activity.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// TODO Auto-generated method stub
|
||||
if (mToast != null) {
|
||||
mToast.cancel();
|
||||
mToast = null;
|
||||
}
|
||||
mToast = Toast.makeText(activity, message, Toast.LENGTH_SHORT);
|
||||
mToast.show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印消息并且用Toast显示消息
|
||||
*
|
||||
* @param activity
|
||||
* @param message
|
||||
* @param logLevel
|
||||
* 填d, w, e分别代表debug, warn, error; 默认是debug
|
||||
*/
|
||||
public static final void toastMessage(final Activity activity,
|
||||
final String message) {
|
||||
toastMessage(activity, message, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据一个网络连接(String)获取bitmap图像
|
||||
*
|
||||
* @param imageUri
|
||||
* @return
|
||||
* @throws MalformedURLException
|
||||
*/
|
||||
public static Bitmap getbitmap(String imageUri) {
|
||||
Log.v(TAG, "getbitmap:" + imageUri);
|
||||
// 显示网络上的图片
|
||||
Bitmap bitmap = null;
|
||||
try {
|
||||
URL myFileUrl = new URL(imageUri);
|
||||
HttpURLConnection conn = (HttpURLConnection) myFileUrl
|
||||
.openConnection();
|
||||
conn.setDoInput(true);
|
||||
conn.connect();
|
||||
InputStream is = conn.getInputStream();
|
||||
bitmap = BitmapFactory.decodeStream(is);
|
||||
is.close();
|
||||
|
||||
Log.v(TAG, "image download finished." + imageUri);
|
||||
} catch (OutOfMemoryError e) {
|
||||
e.printStackTrace();
|
||||
bitmap = null;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
Log.v(TAG, "getbitmap bmp fail---");
|
||||
bitmap = null;
|
||||
}
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
public static void release() {
|
||||
mProgressDialog = null;
|
||||
mToast = null;
|
||||
}
|
||||
|
||||
// =========
|
||||
// =通过URI获取本地图片的path
|
||||
// =兼容android 5.0
|
||||
// ==========
|
||||
|
||||
public static String ACTION_OPEN_DOCUMENT = "android.intent.action.OPEN_DOCUMENT";
|
||||
public static int Build_VERSION_KITKAT = 19;
|
||||
public static String getPath(final Context context, final Uri uri) {
|
||||
|
||||
final boolean isKitKat = Build.VERSION.SDK_INT >= 19;
|
||||
|
||||
// DocumentProvider
|
||||
if (isKitKat && isDocumentUri(context, uri)) {
|
||||
// ExternalStorageProvider
|
||||
if (isExternalStorageDocument(uri)) {
|
||||
final String docId = getDocumentId(uri);
|
||||
final String[] split = docId.split(":");
|
||||
final String type = split[0];
|
||||
|
||||
if ("primary".equalsIgnoreCase(type)) {
|
||||
return Environment.getExternalStorageDirectory() + "/" + split[1];
|
||||
}
|
||||
|
||||
}
|
||||
// DownloadsProvider
|
||||
else if (isDownloadsDocument(uri)) {
|
||||
|
||||
final String id = getDocumentId(uri);
|
||||
final Uri contentUri = ContentUris.withAppendedId(Uri.parse("content://downloads/public_downloads"),
|
||||
Long.valueOf(id));
|
||||
|
||||
return getDataColumn(context, contentUri, null, null);
|
||||
}
|
||||
// MediaProvider
|
||||
else if (isMediaDocument(uri)) {
|
||||
final String docId = getDocumentId(uri);
|
||||
final String[] split = docId.split(":");
|
||||
final String type = split[0];
|
||||
|
||||
Uri contentUri = null;
|
||||
if ("image".equals(type)) {
|
||||
contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
|
||||
} else if ("video".equals(type)) {
|
||||
contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
|
||||
} else if ("audio".equals(type)) {
|
||||
contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
|
||||
}
|
||||
|
||||
final String selection = "_id=?";
|
||||
final String[] selectionArgs = new String[] { split[1] };
|
||||
|
||||
return getDataColumn(context, contentUri, selection, selectionArgs);
|
||||
}
|
||||
}
|
||||
// MediaStore (and general)
|
||||
else if ("content".equalsIgnoreCase(uri.getScheme())) {
|
||||
|
||||
// Return the remote address
|
||||
if (isGooglePhotosUri(uri))
|
||||
return uri.getLastPathSegment();
|
||||
|
||||
return getDataColumn(context, uri, null, null);
|
||||
}
|
||||
// File
|
||||
else if ("file".equalsIgnoreCase(uri.getScheme())) {
|
||||
return uri.getPath();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final String PATH_DOCUMENT = "document";
|
||||
|
||||
/**
|
||||
* Test if the given URI represents a {@link Document} backed by a
|
||||
* {@link DocumentsProvider}.
|
||||
*/
|
||||
private static boolean isDocumentUri(Context context, Uri uri) {
|
||||
final List<String> paths = uri.getPathSegments();
|
||||
if (paths.size() < 2) {
|
||||
return false;
|
||||
}
|
||||
if (!PATH_DOCUMENT.equals(paths.get(0))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static String getDocumentId(Uri documentUri) {
|
||||
final List<String> paths = documentUri.getPathSegments();
|
||||
if (paths.size() < 2) {
|
||||
throw new IllegalArgumentException("Not a document: " + documentUri);
|
||||
}
|
||||
if (!PATH_DOCUMENT.equals(paths.get(0))) {
|
||||
throw new IllegalArgumentException("Not a document: " + documentUri);
|
||||
}
|
||||
return paths.get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of the data column for this Uri. This is useful for
|
||||
* MediaStore Uris, and other file-based ContentProviders.
|
||||
*
|
||||
* @param context
|
||||
* The context.
|
||||
* @param uri
|
||||
* The Uri to query.
|
||||
* @param selection
|
||||
* (Optional) Filter used in the query.
|
||||
* @param selectionArgs
|
||||
* (Optional) Selection arguments used in the query.
|
||||
* [url=home.php?mod=space&uid=7300]@return[/url] The value of
|
||||
* the _data column, which is typically a file path.
|
||||
*/
|
||||
public static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {
|
||||
|
||||
Cursor cursor = null;
|
||||
final String column = "_data";
|
||||
final String[] projection = { column };
|
||||
|
||||
try {
|
||||
cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);
|
||||
if (cursor != null && cursor.moveToFirst()) {
|
||||
final int index = cursor.getColumnIndexOrThrow(column);
|
||||
return cursor.getString(index);
|
||||
}
|
||||
} finally {
|
||||
if (cursor != null)
|
||||
cursor.close();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param uri
|
||||
* The Uri to check.
|
||||
* @return Whether the Uri authority is ExternalStorageProvider.
|
||||
*/
|
||||
public static boolean isExternalStorageDocument(Uri uri) {
|
||||
return "com.android.externalstorage.documents".equals(uri.getAuthority());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param uri
|
||||
* The Uri to check.
|
||||
* @return Whether the Uri authority is DownloadsProvider.
|
||||
*/
|
||||
public static boolean isDownloadsDocument(Uri uri) {
|
||||
return "com.android.providers.downloads.documents".equals(uri.getAuthority());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param uri
|
||||
* The Uri to check.
|
||||
* @return Whether the Uri authority is MediaProvider.
|
||||
*/
|
||||
public static boolean isMediaDocument(Uri uri) {
|
||||
return "com.android.providers.media.documents".equals(uri.getAuthority());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param uri
|
||||
* The Uri to check.
|
||||
* @return Whether the Uri authority is Google Photos.
|
||||
*/
|
||||
public static boolean isGooglePhotosUri(Uri uri) {
|
||||
return "com.google.android.apps.photos.content".equals(uri.getAuthority());
|
||||
}
|
||||
}
|
Binary file not shown.
|
@ -1,15 +0,0 @@
|
|||
# This file is automatically generated by Android Tools.
|
||||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||
#
|
||||
# This file must be checked in Version Control Systems.
|
||||
#
|
||||
# To customize properties used by the Ant build system edit
|
||||
# "ant.properties", and override values to adapt the script to your
|
||||
# project structure.
|
||||
#
|
||||
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
|
||||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||
|
||||
# Project target.
|
||||
target=android-19
|
||||
proguard.config=proguard.cfg
|
Binary file not shown.
Before Width: | Height: | Size: 10 KiB |
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval" >
|
||||
|
||||
<!-- 填充颜色 -->
|
||||
<solid android:color="#FF8833"/>
|
||||
|
||||
<!-- 矩形的圆角半径 -->
|
||||
<corners android:radius="5dp"/>
|
||||
|
||||
<!--线的宽度,颜色-->
|
||||
<stroke
|
||||
android:width="0.5dp"
|
||||
android:color="#ffffff" />
|
||||
|
||||
</shape>
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- TabHost必须包含一个 TabWidget和一个FrameLayout -->
|
||||
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/tabhost"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:background="#FFFFFFFF">
|
||||
|
||||
<!-- FrameLayout的id属性必须为 @android:id/tabcontent -->
|
||||
|
||||
<FrameLayout
|
||||
android:id="@android:id/tabcontent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="top" >
|
||||
</FrameLayout>
|
||||
|
||||
<!-- TabWidget的id属性必须为 @android:id/tabs -->
|
||||
|
||||
<TabWidget
|
||||
android:id="@android:id/tabs"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:layout_gravity="bottom" >
|
||||
</TabWidget>
|
||||
</TabHost>
|
|
@ -1,189 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_bxt_news"/>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp" >
|
||||
|
||||
<!-- 标题 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="第417期“相约博学堂”之人文讲座预告"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<!-- 讲座主题 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="讲座主题"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_topic"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:text="红楼梦——艺术思维与人物赏析"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 主讲人 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主讲人"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_speaker"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:text="易栋 武汉大学艺术学院教师"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 讲座时间 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="讲座时间"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:text="2014年5月9日(周五)晚19:00"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 讲座地点 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="讲座地点"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_loc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:text="大学生活动中心博学堂"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 主办单位 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主办单位"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_holder1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:text="学生工作部"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 承办单位 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="承办单位"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_holder2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:text="校学生工作助理办公室"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 主讲内容提要 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主讲内容提要"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_point"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:lineSpacingMultiplier="1.4"
|
||||
android:text=" 1.概述《红楼梦》的“奇书”特征和魅力\n 2.评说《红楼梦》的艺术基调、整体结构和寓意\n 3.解析贾宝玉、林黛玉、薛宝钗、妙玉的性格特点。"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 主讲人简介 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主讲人简介"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bxt_news_speaker_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:lineSpacingMultiplier="1.4"
|
||||
android:text="易栋 武汉大学艺术学院青年教师、湖北艺术研究所特约研究员,湖北省优秀教师、武汉大学十佳教师及最受欢迎的公选课老师"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,30 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_feedback"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_feedback_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:gravity="top"
|
||||
android:lines="5"
|
||||
android:hint="您的意见"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_feedback_submit"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_margin="5dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:layout_gravity="right"
|
||||
android:text="提交"
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,130 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/header_home" />
|
||||
|
||||
<com.stone.ui.ListScrollView
|
||||
android:id="@+id/listScrollView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="65dp" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<!-- 校历 -->
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:layout_margin="5dp"
|
||||
android:background="#fffaf0"
|
||||
android:padding="5dp" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_date"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="#f5deb3" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/img_date"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:padding="5dp"
|
||||
android:text="校历 "
|
||||
android:textColor="#ff0000"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_week"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:padding="5dp"
|
||||
android:text="第 10 周 星期六" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_day"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:padding="5dp"
|
||||
android:text="2014 年 4 月 26 日"
|
||||
android:typeface="monospace" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
<!-- 图片轮播 -->
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fl_image_ads"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:background="#ffDEDEDE"
|
||||
android:padding="5dp"
|
||||
android:visibility="gone" >
|
||||
|
||||
<com.stone.ui.AutoScrollViewPager
|
||||
android:id="@+id/view_pager"
|
||||
android:layout_width="400dp"
|
||||
android:layout_height="100dp" >
|
||||
</com.stone.ui.AutoScrollViewPager>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_hide_ads"
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_gravity="right|center"
|
||||
android:layout_margin="3dp"
|
||||
android:background="@drawable/ic_banner_hide" />
|
||||
</FrameLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<!-- 校园新闻 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="校园动态"
|
||||
android:textColor="#ff0000"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<!-- 新闻列表 -->
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lv_news"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="300dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:divider="@null">
|
||||
</ListView>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</com.stone.ui.ListScrollView>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,193 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/back_blue"
|
||||
android:gravity="center"
|
||||
android:padding="20dp" >
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_welcome"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="100dp" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_welcome"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:contentDescription="欢迎登陆"
|
||||
android:src="@drawable/ic_app" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/img_welcome"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:text="在 这 里"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="26sp"
|
||||
android:typeface="monospace" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_row1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_below="@id/rl_welcome"
|
||||
android:orientation="horizontal" >
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_row2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_below="@id/ll_row1"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_row3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/ll_row2"
|
||||
android:layout_marginTop="30dp"
|
||||
android:orientation="horizontal" >
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_last"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="25dp"
|
||||
android:layout_below="@id/ll_row3"
|
||||
android:layout_marginTop="8.0dip"
|
||||
android:padding="2dp" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_register"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="#00000000"
|
||||
android:gravity="left|center"
|
||||
android:paddingLeft="8.0dip"
|
||||
android:paddingRight="8.0dip"
|
||||
android:text=" 注 册 "
|
||||
android:textColor="#2e8b57"
|
||||
android:textSize="12.0sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/cb_rem_psd"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:background="#00000000"
|
||||
android:paddingLeft="8.0dip"
|
||||
android:paddingRight="8.0dip"
|
||||
android:text="找回账号"
|
||||
android:textColor="#2e8b57"
|
||||
android:textSize="12.0sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_qq"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:background="#00000000"
|
||||
android:paddingRight="8.0dip"
|
||||
android:text="QQ登录"
|
||||
android:textColor="#2e8b57"
|
||||
android:textSize="12.0sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/rl_last"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/new_login_btn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/qq" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_nickname"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="昵称" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/user_logo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_callback"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="返回消息" />
|
||||
</LinearLayout>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_username"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_above="@+id/ll_row2"
|
||||
android:layout_alignLeft="@+id/rl_welcome"
|
||||
android:layout_marginBottom="41dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#fffaf0"
|
||||
android:ems="10"
|
||||
android:hint="账号"
|
||||
android:inputType="text"
|
||||
android:lines="2"
|
||||
android:paddingLeft="12.0dp"
|
||||
android:textSize="18sp"
|
||||
android:typeface="monospace" >
|
||||
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_alignLeft="@+id/ll_row1"
|
||||
android:layout_alignTop="@+id/ll_row1"
|
||||
android:layout_marginTop="19dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#fffaf0"
|
||||
android:ems="10"
|
||||
android:hint="密码"
|
||||
android:inputType="textPassword"
|
||||
android:lines="2"
|
||||
android:paddingLeft="12.0dp"
|
||||
android:textSize="18sp"
|
||||
android:typeface="monospace" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_login"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_alignLeft="@+id/ll_row2"
|
||||
android:layout_alignTop="@+id/ll_row2"
|
||||
android:layout_marginTop="22dp"
|
||||
android:background="#ffffff"
|
||||
android:text="登录"
|
||||
android:textColor="#20B2AA"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FFFFFFFF"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_mine"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<!-- 用户资料 -->
|
||||
<ListView
|
||||
android:id="@+id/lv_mine_user"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none"
|
||||
android:dividerHeight="0.5dp"
|
||||
android:divider="#88000000">
|
||||
</ListView>
|
||||
|
||||
|
||||
<!-- 小菜订单 -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:text="在这里订单"
|
||||
android:textColor="#FF0000"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#FF0000"/>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lv_mine_order"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none"
|
||||
android:dividerHeight="0.5dp"
|
||||
android:divider="#88000000" >
|
||||
</ListView>
|
||||
|
||||
|
||||
<!-- 其他 -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:text="其他"
|
||||
android:textColor="#FF0000"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#FF0000"/>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lv_mine_about"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none"
|
||||
android:dividerHeight="0.5dp"
|
||||
android:divider="#88000000">
|
||||
</ListView>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,218 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FFFFFFFF" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_mine_info" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="昵称"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mineinfo_username"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="资料"
|
||||
android:textColor="#FF0000" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#FF0000" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="学校"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mineinfo_school"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="学院"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mineinfo_cademy"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="宿舍楼"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mineinfo_dorpart"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="寝室号"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mineinfo_dornum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="联系方式"
|
||||
android:textColor="#FF0000" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#FFFF0000" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="手机"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mineinfo_phone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="QQ"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mineinfo_qq"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
|
@ -1,218 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FFFFFFFF" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_mine_info_edit" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="昵称"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_mineinfo_username"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:inputType="text"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="资料"
|
||||
android:textColor="#FF0000" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#FF0000" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="学校"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_mineinfo_school"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:inputType="text"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="学院"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_mineinfo_cademy"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:inputType="text"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="宿舍楼"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_mineinfo_dorpart"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:inputType="text"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="寝室号"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_mineinfo_dornum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:inputType="number"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="联系方式"
|
||||
android:textColor="#FF0000" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#FF0000" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="手机"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_mineinfo_phone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:inputType="phone"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_star_yes"
|
||||
android:drawablePadding="5dp"
|
||||
android:gravity="center"
|
||||
android:text="QQ"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_mineinfo_qq"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:inputType="number"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
|
@ -1,335 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="65dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="50dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:background="#fffaf0" />
|
||||
|
||||
<View
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/ic_circle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_username"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
android:padding="5dp"
|
||||
android:text="admin"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:typeface="monospace" />
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<!-- 左线轴 -->
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp">
|
||||
|
||||
<View
|
||||
android:layout_width="0.5dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:background="#008B8B" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_me"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:background="@drawable/ic_circle"
|
||||
android:gravity="center"
|
||||
android:text="我"
|
||||
android:textColor="#FFFFFF" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bowl"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginTop="260dp"
|
||||
android:background="@drawable/ic_circle"
|
||||
android:gravity="center"
|
||||
android:text="订单"
|
||||
android:textColor="#FFFFFF" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_xiaocai"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginTop="435dp"
|
||||
android:background="@drawable/ic_circle"
|
||||
android:gravity="center"
|
||||
android:text="在这里"
|
||||
android:textColor="#FFFFFF" />
|
||||
</FrameLayout>
|
||||
|
||||
<!-- 右边 我 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<!-- 个人资料 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="60dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="学校"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tv_school"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:padding="10dp"
|
||||
android:hint="学校"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="2dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="学院"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tv_cademy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:padding="10dp"
|
||||
android:hint="学院"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="2dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="所在区"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tv_dorPart"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:padding="10dp"
|
||||
android:hint="所在区"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="2dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="宿舍楼号"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tv_dorNum"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:padding="10dp"
|
||||
android:hint="宿舍楼号"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 寝室号
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/shape_color_frame" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:background="@drawable/shape_left_radius_color_square"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="寝室号"
|
||||
android:textColor="#FF8C00"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:padding="10dp"
|
||||
android:text="418"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout> -->
|
||||
|
||||
<!-- 右边 小菜 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="在这里订单"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="历史订单"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="我的钱包"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_about"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="关于在这里"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_contact"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="联系我们"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_share"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="10dp"
|
||||
android:text="分享在这里"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
|
@ -1,97 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_news" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_news_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="德国柏林自由大学教授讲座预告"
|
||||
android:padding="10dp"
|
||||
android:textColor="#2F4F4F"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_news_author"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="left"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingTop="3dp"
|
||||
android:paddingBottom="3dp"
|
||||
android:text="作者: 小菜"
|
||||
android:textColor="#ff0000"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_news_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="left"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingTop="3dp"
|
||||
android:paddingBottom="3dp"
|
||||
android:text="发布日期 : 2014-5-3"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_news_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="10dp"
|
||||
android:lineSpacingExtra="10dp"
|
||||
android:padding="10dp"
|
||||
android:text="
|
||||
讲座教授:德国柏林自由大学教授 朴圣祚Park sung-jo
|
||||
\n
|
||||
\n讲座信息:
|
||||
\n
|
||||
\n 题目: Lifestyle and lifestyle industries in globalization
|
||||
\n 全球化背景下的生活方式和生活方式产业
|
||||
\n 时间: 2014年4月28日10:00
|
||||
\n 地点: 大学生活动中心 博学堂
|
||||
\n
|
||||
\n 题目: Samsung's globalization strategy
|
||||
\n 三星的全球化战略
|
||||
\n 时间: 2014年4月28日14:00
|
||||
\n 地点: 大学生活动中心 博学堂
|
||||
\n
|
||||
\n承办单位:国际交流与合作处 学工部
|
||||
\n
|
||||
\n教授简介:
|
||||
\n -1964-1968年,德国萨尔大学,发展研究院辅助研究员
|
||||
\n -1966-1967年,联合国湄公河计划专家,研究泰国区域发展
|
||||
\n -1975-1977年,波鸿鲁尔大学,东亚研究院副院长、院长
|
||||
\n -自1978年担任柏林自由大学,东亚研究学院东亚经济系及政治科学学院全职教授
|
||||
\n -1993-2005:中国延吉市延边大学科学技术学院副校长主管外事
|
||||
\n -2002-2004:贝尔格拉德美佳特莱德应用科技大学校长
|
||||
\n -1989-1991:韩国当代欧洲研究协会创始人和会长
|
||||
\n -1982-1990:欧亚管理协会创始人、会长和董事会成员
|
||||
\n -1994-2001:世界高校联盟发起人和执行秘书长
|
||||
\n
|
||||
\n获奖情况:
|
||||
\n 2003年,荣获美佳特莱德大学经济学荣誉博士
|
||||
\n 2005年,荣获韩国广播公司(KBS)授予的人文社会类韩侨奖
|
||||
\n 2014年,荣获德国总统授予的联邦十字勋章"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,218 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_order" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="店铺"
|
||||
android:textColor="#88000000"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_order_shop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textColor="#008B8B"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="商品"
|
||||
android:textColor="#88000000"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_order_good"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text=""
|
||||
android:textColor="#008B8B"
|
||||
android:textSize="14sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="数量"
|
||||
android:textColor="#88000000"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_order_count_less"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:text="-"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_order_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="30dp"
|
||||
android:text="1"
|
||||
android:textColor="#008B8B" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_order_count_more"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginLeft="30dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:text="+"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="22sp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="取餐时间"
|
||||
android:textColor="#88000000"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_order_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="12 : 30"
|
||||
android:textColor="#008B8B"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_set_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:padding="3dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp"
|
||||
android:text="设置时间"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp" >
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="联系电话"
|
||||
android:textColor="#88000000"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_order_phone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:background="#88FFFFFF"
|
||||
android:hint=" "
|
||||
android:inputType="phone"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingTop="5dp"
|
||||
android:textSize="14sp"
|
||||
android:typeface="monospace" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="3dp"
|
||||
android:text="贴张小纸条"
|
||||
android:textColor="#88000000"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_order_words"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:background="#88FFFFFF"
|
||||
android:gravity="top"
|
||||
android:hint="您的留言"
|
||||
android:lines="2"
|
||||
android:padding="10dp"
|
||||
android:textSize="14sp"
|
||||
android:typeface="monospace" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_order_submit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:text="提交订单"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</LinearLayout>
|
|
@ -1,130 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/back_blue"
|
||||
android:padding="20dp"
|
||||
android:gravity="center" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_reg_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="50dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:typeface="monospace"
|
||||
android:text="在这里|全部在这里!"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_row1"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_below="@id/tv_reg_title">
|
||||
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_username"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
android:hint="账号"
|
||||
android:inputType="text"
|
||||
android:background="#ffffff"
|
||||
android:paddingLeft="12.0dp"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_row2"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_below="@id/ll_row1">
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
android:hint="密码"
|
||||
android:inputType="textPassword"
|
||||
android:background="#ffffff"
|
||||
android:paddingLeft="12.0dp"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_row3"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_below="@id/ll_row2">
|
||||
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_comfirm_psd"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
android:hint="确认密码"
|
||||
android:inputType="textPassword"
|
||||
android:background="#ffffff"
|
||||
android:paddingLeft="12.0dp"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_row4"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_below="@id/ll_row3">
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_phone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
android:hint="手机"
|
||||
android:inputType="number"
|
||||
android:background="#ffffff"
|
||||
android:paddingLeft="12.0dp"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_row6"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_below="@id/ll_row4">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_reg_now"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:background="#ffffff"
|
||||
android:text="加入在这里"
|
||||
android:textColor="#20B2AA"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,179 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_shop" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:scrollbars="none"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="80dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 学习小菜 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:text="学 习"
|
||||
android:textColor="#ff0000"
|
||||
android:textSize="16sp"
|
||||
android:typeface="monospace" />
|
||||
|
||||
<View
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="1.5dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:background="#ff0000"/>
|
||||
|
||||
<com.stone.ui.MyGridView
|
||||
android:id="@+id/gv_school_class"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="140dp"
|
||||
android:columnWidth="80dp"
|
||||
android:horizontalSpacing="1dp"
|
||||
android:verticalSpacing="1dp"
|
||||
android:gravity="center"
|
||||
android:minHeight="90dp"
|
||||
android:numColumns="auto_fit"
|
||||
android:stretchMode="columnWidth" >
|
||||
</com.stone.ui.MyGridView>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<!-- 购物小菜 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:text="校园服务"
|
||||
android:textColor="#ff0000"
|
||||
android:textSize="16sp"
|
||||
android:typeface="monospace" />
|
||||
|
||||
<View
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="1.5dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:background="#ff0000"/>
|
||||
|
||||
<com.stone.ui.MyGridView
|
||||
android:id="@+id/gv_gift_class"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="140dp"
|
||||
android:columnWidth="80dp"
|
||||
android:horizontalSpacing="1dp"
|
||||
android:verticalSpacing="1dp"
|
||||
android:gravity="center"
|
||||
android:minHeight="90dp"
|
||||
android:numColumns="auto_fit"
|
||||
android:stretchMode="columnWidth" >
|
||||
</com.stone.ui.MyGridView>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 吃饭小菜 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:text="点 餐"
|
||||
android:textColor="#ff0000"
|
||||
android:textSize="16sp"
|
||||
android:typeface="monospace" />
|
||||
|
||||
<View
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="1.5dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:background="#ff0000"/>
|
||||
|
||||
<com.stone.ui.MyGridView
|
||||
android:id="@+id/gv_food_class"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="140dp"
|
||||
android:columnWidth="80dp"
|
||||
android:horizontalSpacing="1dp"
|
||||
android:verticalSpacing="1dp"
|
||||
android:gravity="center"
|
||||
android:minHeight="90dp"
|
||||
android:numColumns="auto_fit"
|
||||
android:stretchMode="columnWidth" >
|
||||
</com.stone.ui.MyGridView>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 疯狂小菜 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:visibility="gone"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:text="娱乐"
|
||||
android:textColor="#dd3CB371"
|
||||
android:textSize="14sp"
|
||||
android:typeface="monospace" />
|
||||
|
||||
<com.stone.ui.MyGridView
|
||||
android:id="@+id/gv_out_class"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="140dp"
|
||||
android:columnWidth="80dp"
|
||||
android:horizontalSpacing="1dp"
|
||||
android:verticalSpacing="1dp"
|
||||
android:gravity="center"
|
||||
android:minHeight="90dp"
|
||||
android:numColumns="auto_fit"
|
||||
android:stretchMode="columnWidth" >
|
||||
</com.stone.ui.MyGridView>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<com.stone.ui.ViewPagerCompat
|
||||
android:id="@+id/viewpager"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center" >
|
||||
|
||||
<android.support.v4.view.PagerTabStrip
|
||||
android:id="@+id/pagertab"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_gravity="top"
|
||||
android:background="#fffaf0" />
|
||||
|
||||
</com.stone.ui.ViewPagerCompat>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="#fffaf0"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:padding="10dp"
|
||||
android:text="设置取餐时间"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_dlg_ok"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="35dp"
|
||||
android:layout_margin="3dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:textColor="#FFFFFF"
|
||||
android:text="确定" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/actionbar_background"/>
|
||||
|
||||
<TimePicker
|
||||
android:id="@+id/tp_dlg_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="10dp"
|
||||
android:soundEffectsEnabled="true" />
|
||||
|
||||
</LinearLayout>
|
|
@ -1,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:padding="2dp" >
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:background="#F5F5F5"
|
||||
android:padding="10dp" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<!-- 菜名 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_good_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="原味石锅"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<!-- 价格 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_good_price"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="¥9.0"
|
||||
android:textColor="#FF0000"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_buy_good"
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="36dp"
|
||||
android:padding="3dp"
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:text="碗里来"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#ffffff" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,26 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="博学堂"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/sp_bxt_header"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
</RelativeLayout>
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="博学堂讲座详情"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,30 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:padding="5dp"
|
||||
android:onClick="clickFeedBack"
|
||||
android:clickable="true"
|
||||
android:text="返回"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="意见反馈"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="NUDT"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,26 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_info_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="学校通知"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/sp_bxt_header"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
</RelativeLayout>
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:gravity="center"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="学校通知详情"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,46 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:padding="5dp"
|
||||
android:onClick="clickBack"
|
||||
android:clickable="true"
|
||||
android:text="返回"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="个人资料"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:padding="5dp"
|
||||
android:onClick="clickEdit"
|
||||
android:clickable="true"
|
||||
android:text="编辑"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,46 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:padding="5dp"
|
||||
android:text="取消"
|
||||
android:onClick="clickCancel"
|
||||
android:clickable="true"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="修改资料"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:padding="5dp"
|
||||
android:onClick="clickSave"
|
||||
android:clickable="true"
|
||||
android:text="保存"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="校内新闻"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="订单"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="当前订单"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,29 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="过桥米线"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_search"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_search"/>
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,31 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:padding="5dp"
|
||||
android:onClick="clickSoftBack"
|
||||
android:clickable="true"
|
||||
android:text="返回"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="软件相关"
|
||||
android:textSize="20sp"
|
||||
android:textColor="#ffffff"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,28 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include layout="@layout/header_bxt" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_room"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="15dp"
|
||||
android:text="教室:"
|
||||
android:textColor="#20B2AA"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_login"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:text="预定教室"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</LinearLayout>
|
|
@ -1,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="2dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:background="#F5F5F5"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp" >
|
||||
|
||||
<!-- 新闻标题15字以内 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_news_type"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical|left"
|
||||
android:layout_weight="3"
|
||||
android:text="【博学堂】"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#FF0000"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_news_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="大礼堂电影预告大礼堂电影预告"
|
||||
android:textColor="#696969"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_news_date"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:gravity="center"
|
||||
android:text="2014-4-28"
|
||||
android:textSize="13sp"
|
||||
android:typeface="monospace" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,80 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="96dp"
|
||||
android:layout_weight="2"
|
||||
android:background="#fffaf0"
|
||||
android:padding="5dp" >
|
||||
|
||||
<!-- 店铺名 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_order_info_good_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="10dp"
|
||||
android:text="韩式石锅拌饭"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<!-- 店铺类型 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_order_info_shop_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@id/tv_good_name"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="xx店"
|
||||
android:textColor="#808080"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 店铺地点 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@id/tv_good_name"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:text="二食堂三楼"
|
||||
android:textColor="#ff0000"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="96dp"
|
||||
android:layout_weight="5"
|
||||
android:background="#ff0000"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_order_info_price"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="72dp"
|
||||
android:gravity="center"
|
||||
android:text="¥ 9.0"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.3dp"
|
||||
android:background="#FFFFFF" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_order_info_state"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="24dp"
|
||||
android:gravity="center"
|
||||
android:text="未取餐"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,104 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<!-- 商铺展示主图 96x96 -->
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_shop"
|
||||
android:layout_width="96dp"
|
||||
android:layout_height="96dp"
|
||||
android:background="@drawable/sgbf"
|
||||
android:contentDescription="商店展示主图" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="96dp"
|
||||
android:layout_alignBaseline="@id/img_shop"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_toRightOf="@id/img_shop"
|
||||
android:background="#fffaf0"
|
||||
android:padding="5dp" >
|
||||
|
||||
<!-- 店铺名 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="10dp"
|
||||
android:text="韩式石锅拌饭"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<!-- 活动标志/劵 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_paper"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_alignBaseline="@id/tv_shop_name"
|
||||
android:layout_margin="2dp"
|
||||
android:layout_toRightOf="@id/tv_shop_name"
|
||||
android:background="#008000"
|
||||
android:gravity="center_vertical"
|
||||
android:visibility="gone"
|
||||
android:text="劵"
|
||||
android:textColor="#F8F8FF"
|
||||
android:textSize="12sp"
|
||||
android:typeface="monospace" />
|
||||
|
||||
<!-- 活动标志/折 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_discount"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_alignBaseline="@id/tv_shop_name"
|
||||
android:layout_margin="2dp"
|
||||
android:layout_toRightOf="@id/tv_shop_paper"
|
||||
android:background="#FF0000"
|
||||
android:gravity="center"
|
||||
android:text="新"
|
||||
android:textColor="#FfFfFF"
|
||||
android:textSize="12sp"
|
||||
android:typeface="monospace" />
|
||||
|
||||
<!-- 店铺类型 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_type"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@id/tv_shop_name"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="美食/中餐"
|
||||
android:textColor="#808080"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 店铺地点 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_loc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@id/tv_shop_name"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:text="二食堂三楼"
|
||||
android:textColor="#ff0000"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- 评分 #F8F8FF -->
|
||||
|
||||
<RatingBar
|
||||
android:id="@+id/rb_rate"
|
||||
style="?android:attr/ratingBarStyleSmall"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:rating="2.5" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="3dp"
|
||||
android:background="@drawable/tab_bg_selector">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageview"
|
||||
android:layout_width="35dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_gravity="center_horizontal|top" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textview"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#ffffff"/>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,292 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<!-- 店铺展示背景图 -->
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:contentDescription="商店信息背景图"
|
||||
android:fitsSystemWindows="true" />
|
||||
|
||||
<!-- 店名 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:gravity="center"
|
||||
android:text="过桥米线"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="26sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<RatingBar
|
||||
android:id="@+id/ratingBar1"
|
||||
style="?android:attr/ratingBarStyleSmall"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|right"
|
||||
android:rating="1.5" />
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1.2dp"
|
||||
android:background="#bb000000" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="20dp" >
|
||||
|
||||
<!-- 店铺信息 -->
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:background="#F5F5F5"
|
||||
android:padding="10dp" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_location"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="位置:二食堂二楼"
|
||||
android:textColor="#808080"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_phone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="电话:13308647200"
|
||||
android:textColor="#808080"
|
||||
android:textSize="12sp"
|
||||
android:typeface="monospace" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_call"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_phone3" />
|
||||
</RelativeLayout>
|
||||
|
||||
<!-- 店铺简介 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:text="店铺简介"
|
||||
android:textColor="#2F4F4F"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="center"
|
||||
android:background="#F5F5F5"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_introduce"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:lineSpacingMultiplier="1.5"
|
||||
android:padding="10dp"
|
||||
android:text="暂无"
|
||||
android:textColor="#696969"
|
||||
android:textSize="14sp"
|
||||
android:typeface="monospace" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<!-- 促销信息 -->
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:text="最新公告"
|
||||
android:textColor="#2F4F4F"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:background="#F5F5F5"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_shop_promotion"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:lineSpacingMultiplier="1.5"
|
||||
android:padding="10dp"
|
||||
android:text=" 本店最近新推出多种美食,米线A情侣版--¥10,欢迎大家一起来品尝。有免费免单的机会哦"
|
||||
android:textColor="#696969"
|
||||
android:textSize="14sp"
|
||||
android:typeface="monospace" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 历史评价记录 -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_commit_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:text="历史评价 (2)"
|
||||
android:textColor="#2F4F4F"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_commit_parent_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:background="#F5F5F5"
|
||||
android:orientation="vertical"
|
||||
android:padding="2dp" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_commit_son_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_commit_user"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:text="stonekity:"
|
||||
android:textColor="#2F4F4F"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_commit_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="米线很不错,味道真棒。价格还比较实惠,这个学期我几乎天天吃米线,真心觉得是美好的回忆"
|
||||
android:textColor="#696969"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:text="猫猫:"
|
||||
android:textColor="#2F4F4F"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="很好吃的哦, 希望推出更多的新品"
|
||||
android:textColor="#696969"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="3dp" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:text="丫丫:"
|
||||
android:textColor="#2F4F4F"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="天天吃米线, 相信自己总有一天也会变成米线, (*^__^*) 嘻嘻……"
|
||||
android:textColor="#696969"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 发表评论 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_commit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#F5F5F5"
|
||||
android:hint="亲,(*^__^*)"
|
||||
android:padding="8dp"
|
||||
android:textColor="#2F4F4F" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_commit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_weight="3"
|
||||
android:background="@drawable/actionbar_background"
|
||||
android:text="评论"
|
||||
android:textColor="#FFFFFF"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue