An analysis of the Android File Manager (Project i) _android

Source: Internet
Author: User

A file manager is a software that manages files, helps users with their day-to-day work, and manages files stored locally and on the network. All file managers provide basic operations such as creating, opening, viewing, editing, moving, and deleting files. Many Android file managers also provide additional functionality, such as network connectivity, application management, archiving and compression processing, search, and more.

The files below res were written tonight, because it would be very annoying if the resource folders were not available when you wrote the logic. So when you study, you will always write the resources before you start writing logic.

And I'll summarize what I've learned tonight.

Ide:android Studio

Convention, on the Code.

First Color.xml. Today, I learned that there are four values in the original color.

Always think that is RGB is over, the result is also preceded by a A, the middle because the IDE prompts a spelling error, I thought it is not so write. Remember this later.

And then there's dimens.xml. This folder is actually generated automatically during the writing of Eclipse (or the previous IDE) and is a specification. That is, up and down from the edge of the screen to have a 16dp distance, easy to click. Now the new project basically will not generate this file. However, in the development process should be noted. Because Relativelayout will have similar settings when it is created.

Then there's string.xml, and here's a bit of%1 $ s, which I'm currently determining as a placeholder. is used to prompt the statement, for the time being not yet known. Let's talk about it later.

In addition, Hello World and Setting useless, completely can be deleted. But it's no use saving a few bytes. Probably.

Then is Styles.xml, the above is created when the creation, the following that I copied. And look at the source code, is actually created when the project is generated. The project author has just added a windownotitle and Windowactionbar. may have modified the color, in order to unify the style.

Activity_main This file is included in a look inside, but contains a actionbar, previously declared in style not to actionbar entirely for customization. Because it is included in a linearlayout, it is not a standard title bar.

custom toolbar, which is just a set of colors and themes.

Here is already OK, the main interface should be this framelayout is right, because file browsing without this probably is not.

This has learned many ListView properties.

<listview
  android:id= "@+id/listview"
  android:layout_width= "match_parent"
  android:layout_height= "Match_parent"
  android:cachecolorhint= "#ffffffff"//Buffer color hint
  android:cliptopadding= "false"//four week padding shortened 
  Android:divider= "@null"//item separator (horizontal line between each item in ListView)
  android:dividerheight= "0DP"//Item separator height
  android: Fadingedge= "None"//Edge Fading
  android:fadingedgelength= "0DP"//Edge fading Height

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.