⑴ android通知栏高度可以修改么
可以,修改 Android 状态栏高度:
配置文件:frameworks/base/core/res/res/values/dimens.xml
修改条目:
<resources>
<!-- The width that is used when creating thumbnails of applications. -->
<dimen name="thumbnail_width">0dp</dimen>
<!-- The height that is used when creating thumbnails of applications. -->
<dimen name="thumbnail_height">0dp</dimen>
<!-- The standard size (both width and height) of an application icon that
will be displayed in the app launcher and elsewhere. -->
<dimen name="app_icon_size">48dip</dimen>
<dimen name="toast_y_offset">64dip</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">38dip</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_icon_size">38dip</dimen>
<!-- Margin at the edge of the screen to ignore touch events for in the windowshade. -->
<dimen name="status_bar_edge_ignore">5dp</dimen>
<!-- Size of the fastscroll hint letter -->
<dimen name="fastscroll_overlay_size">104dp</dimen>
<!-- Width of the fastscroll thumb -->
<dimen name="fastscroll_thumb_width">64dp</dimen>
<!-- Height of the fastscroll thumb -->
<dimen name="fastscroll_thumb_height">52dp</dimen>
<!-- Default height of a key in the password keyboard -->
<dimen name="password_keyboard_key_height">56dip</dimen>
<!-- Default correction for the space key in the password keyboard -->
<dimen name="password_keyboard_spacebar_vertical_correction">4dip</dimen>
</resources>
⑵ android如何调用系统自带文件下载功能
文件下载是那种从网上下载的那种吗?
如果是的话有一种http下载
1.直接打开文件
A.创建一个一个URL对象url = new URL(urlStr);这个url可以直接是网络下载地址。
B.通过URL对象,创建一个HttpURLConnection对象
// 创建一个Http连接
HttpURLConnection urlConn = (HttpURLConnection) url
.openConnection();
C.得到InputStram,这个输入流相当于一个管道,将网络上的数据引导到手机上。但是单纯的对于InputStram不好进行操作,它是字节流,因此用InputStreamReader把它转化成字符流。然后在它上面再套一层BufferedReader,这样就能整行的读取数据,十分方便。这个在java的socket编程中我们已经见识过了。
// 使用IO流读取数据
buffer = new BufferedReader(new InputStreamReader(urlConn
.getInputStream()));
D.从InputStream当中读取数据
while ((line = buffer.readLine()) != null) {
sb.append(line);}
2.文件存到sd卡中
SDPATH = Environment.getExternalStorageDirectory() + "/"
File dir = new File(SDPATH + dirName);
dir.mkdirs();
File file = new File(SDPATH + dirName + fileName);
file.createNewFile()
url = new URL(urlStr);这个url可以直接是网络下载地址。
HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();
inputStream inputStream =urlConn.getInputStream()
output = new FileOutputStream(file);
byte buffer [] = new byte[4 * 1024];
while((inputStream.read(buffer)) != -1)
{
output.write(buffer);
}//
⑶ Android手机通知栏里这个插件怎么关
长按你标出来的红色框框,会出现一个“应用信息”,点击之后会进入到弹出这个通知栏的应用管理界面,点击强行停止就可以了。当然如果可以卸载的话点卸载也行