如何创建多层HTML嵌套列表

时间:2016-04-09 19:23:52

标签: html html-lists

如何创建这样的嵌套列表?

enter image description here

1 个答案:

答案 0 :(得分:1)

嵌套File file = new File(Environment.getExternalStorageDirectory(), "/sdcard/test.amr"); byte[] mybytearray = new byte[8092]; FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis); DataInputStream dis = new DataInputStream(bis); OutputStream os; try { os = socket.getOutputStream(); DataOutputStream dos = new DataOutputStream(os); dos.writeUTF(file.getName()); dos.writeLong(mybytearray.length); int read; while((read = dis.read(mybytearray)) != -1){ dos.write(mybytearray, 0, read); } os.flush(); os.close(); socket.close(); 或/和ol元素。

ul