⑴ 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手機通知欄里這個插件怎麼關
長按你標出來的紅色框框,會出現一個「應用信息」,點擊之後會進入到彈出這個通知欄的應用管理界面,點擊強行停止就可以了。當然如果可以卸載的話點卸載也行