本文是关于第一篇博文里的项目布局的修改

将main.xml里面的绝对布局改为线性布局即可,感觉这样看起来舒服些!

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="vertical"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:padding="10px"

android:background="@color/gainsboro"

>

<TextView

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:textSize="18sp"

android:text="@string/info"

android:textColor="@color/blue"

/>

<LinearLayout

android:orientation="horizontal"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

>

<!-- 建立一個EditText -->

<EditText

android:id="@+id/myEditText1"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:textSize="18sp"

android:layout_weight="1"

/>

<!-- 建立一個Button -->

<Button

android:id="@+id/query"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:text="@string/chaxun"

android:layout_weight="2"

/>

<Button

android:id="@+id/reset"

android:layout_height="fill_parent"

android:layout_width="fill_parent"

android:text="@string/qingkong"

android:layout_weight="2"

/>

</LinearLayout>

<!-- 建立一個WebView -->

<WebView

android:id="@+id/myWebView1"

android:layout_height="fill_parent"

android:layout_width="fill_parent"

android:focusable="false"

/>

</LinearLayout>

关于android有道词典的修改相关推荐

  1. Android有道词典查询功能

    有道词典 任务要求:完成查词等功能 因为需要申请API key,这里直接给出地址供使用:http://fanyi.youdao.com/openapi?path=data-mode 1.activit ...

  2. Android有道词典开发

    第一步,申请API key,申请地址:http://fanyi.youdao.com/openapi?path=data-mode 数据接口: http://fanyi.youdao.com/open ...

  3. android有道词典简单开发

    Android剪切板(ClipBoardManager)复制的内容,可以粘贴到任何地方,对于一些词典,翻译工具等app具有较高的使用价值.有道词典在3.6版本后就使用到该功能,本文来剖析具体的实现过程 ...

  4. 简易词典Android界面代码,Android 有道词典的简单实现方法介绍

    第一步:思路解析 从界面看一共用了三个控件EditText,Button,WebView.其实是四个,是当我们查询内容为空的时候用来提示的Toast控件.我们在EditText输入查询内容,这里包括中 ...

  5. android 网页词典,android 有道词典查询单词(webview版)

    [实例简介] [实例截图] [核心代码] package com.example.youdaodictionary; import android.app.Activity; import andro ...

  6. android简单的有道词典开发

    简单的android有道词典开发 第一次写教程,不好勿怪哈!其实想写这篇教程已经很久了,但却一直没有付诸行动,这个项目是偶然间在论坛里发现的,我算是弄出来整理了一下吧!所以在此要感谢那些前辈们,没有他 ...

  7. 有道词典Android客户端包体积优化之路

    1 背景 有道词典从移动互联网之初就凭借小巧快速.功能强大的印象让用户爱上翻译查词,爱上学习.随着业务不断地迭代以及功能不断完善,有道词典不再是单纯的查词软件,而是变成了用户的综合学习平台.我们探索过 ...

  8. Android进阶2之有道词典开发

    本博文只是实现有道词典的功能,并着重界面. 首先,你需要获取有道开发平台的API key.点击打开链接 申请一个吧. 利用数据接口获取数据: http://fanyi.youdao.com/opena ...

  9. PC版有道词典全白皮肤太亮?自己修改背景颜色(Win10)

    问题描述 网易有道词典Win10版太亮刺眼,设置里也没法更改皮肤 解决办法 第一步 打开有道词典安装目录,找到 main_layout.xml 文件,在 Sublime 打开 笔者的目录为 D:\So ...

最新文章

  1. sql镶嵌查询_sql数据库的嵌套查询
  2. mysql100万数据一键下载csv_使用PHP来导入包含100万条数据的csv文件,请问你最快多久能全部导入mysql 数据库?...
  3. 数据库-ADONET-使用强类型DataSet
  4. ASP.NET 程序中常用的三十三种代码(2)
  5. WebStorm 使用经验
  6. Go语言_通神路五耀篇(3)
  7. ROS笔记(15) Xacro
  8. restful 参数带斜杠_SpringCloud实战:Restful架构API接口经典设计误区
  9. python 在线培训费用-线下python培训要多少钱?
  10. 表格筛选后复制粘贴方法
  11. C#/VB.NET 如何旋转PDF页面
  12. 自己用的停用词(2955个)
  13. xp怎么删除计算机管理员用户名和密码,Windows XP 的 Administrator 超级管理员密码忘记了,如何清除?...
  14. 90.pygame游戏-玩个球(play the ball)最终版
  15. 基于ACF多通道特征的人脸检测——从原理到实现
  16. 计算机在机械智能制造中的应用,机电一体化技术应用于智能制造中的优势研究...
  17. 为华生物NH2-PEG2000-MAL氨基聚乙二醇马来酰亚胺的简介及应用
  18. TDengine与InfluxDB性能对比
  19. linux--挂载,解挂
  20. c语言sizeof char,sizeof 你真的弄明白了吗?来看看这个例子

热门文章

  1. syntax error, expect ')' 数据库报错批量插入
  2. 使用网站域名封装Web2App
  3. Android脑图--Android动画
  4. 读书百客:《嘲鲁儒》赏析
  5. 浅谈响应式开发与自适应布局!
  6. 店铺没有自然流量,系统平台如何引流。
  7. 独家!阿里开源自用OpenJDK版本,Java社区迎来中国力量
  8. 【AOP】面向切面谈恋爱(一)|学会了AOP,他最终收获了爱情
  9. Android post ---花两天事件踩一个联网坑
  10. Sim Lock —— 手机Network锁