This repository was archived by the owner on Apr 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
androidTest/java/xyz/leezoom/view/treeview
main/java/moe/leer/tree2view
test/java/xyz/leezoom/treeview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,15 +58,15 @@ git clone git@github.com:LeeReindeer/Tree2View.git
58581 . ε¨ ` xml ` δΈζ·»ε οΌε ` ListView ` η±»δΌΌη.
5959
6060``` xml
61- <xyz .leezoom.view.treeview .TreeView
61+ <moe .leer.tree2view .TreeView
6262 android : id =" @+id/tree_view"
6363 android : layout_marginTop =" 16dp"
6464 android : layout_width =" match_parent"
6565 android : layout_height =" match_parent"
6666 android : divider =" #ffffff"
6767 android : dividerHeight =" 1px" >
6868
69- </xyz .leezoom.view.treeview .TreeView>
69+ </moe .leer.tree2view .TreeView>
7070```
71712 . ε¨δ»£η ιζ·»ε εε§εοΌθΏιδ½Ώη¨Kotlin(Java 代η η±»δΌΌ)
7272
Original file line number Diff line number Diff line change @@ -62,15 +62,15 @@ module.
6262Feel free to use it as ` ListView ` .
6363
6464``` xml
65- <xyz .leezoom.view.treeview .TreeView
65+ <moe .leer.tree2view .TreeView
6666 android : id =" @+id/tree_view"
6767 android : layout_marginTop =" 16dp"
6868 android : layout_width =" match_parent"
6969 android : layout_height =" match_parent"
7070 android : divider =" #ffffff"
7171 android : dividerHeight =" 1px" >
7272
73- </xyz .leezoom.view.treeview .TreeView>
73+ </moe .leer.tree2view .TreeView>
7474```
7575
76762 . Add children in Kotlin code(Java is similar whit it)
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ apply plugin: 'kotlin-android-extensions'
77android {
88 compileSdkVersion 28
99 defaultConfig {
10- applicationId " xyz.leezoom.tree2 "
10+ applicationId " moe.leer.filetree "
1111 minSdkVersion 16
1212 targetSdkVersion 28
1313 versionCode 1
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3+ xmlns : tools =" http://schemas.android.com/tools"
34 package =" xyz.leezoom.tree2" >
45
56 <uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
67 <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
78
89 <application
9- android : name =" .MyApp"
10+ android : name =" moe.leer.filetree .MyApp"
1011 android : allowBackup =" true"
1112 android : icon =" @mipmap/ic_launcher"
1213 android : label =" @string/app_name"
1314 android : roundIcon =" @mipmap/ic_launcher_round"
1415 android : supportsRtl =" true"
15- android : theme =" @style/AppTheme" >
16+ android : theme =" @style/AppTheme"
17+ tools : ignore =" GoogleAppIndexingWarning" >
1618 <activity
17- android : name =" .activity.MainActivity"
19+ android : name =" moe.leer.filetree .activity.MainActivity"
1820 android : launchMode =" singleTop" >
1921 <intent-filter >
2022 <action android : name =" android.intent.action.MAIN" />
2325 </intent-filter >
2426 </activity >
2527 <activity
26- android : name =" .activity.AboutActivity"
28+ android : name =" moe.leer.filetree .activity.AboutActivity"
2729 android : launchMode =" singleTop" >
2830 </activity >
2931 </application >
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2017 LeeReindeer <reindeerlee.work@gmail.com>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ package moe .leer .filetree ;
18+
19+ import android .app .Application ;
20+
21+ import com .github .johnkil .print .PrintConfig ;
22+
23+ public class MyApp extends Application {
24+
25+ @ Override
26+ public void onCreate () {
27+ super .onCreate ();
28+ PrintConfig .initDefault (getAssets (), "fonts/material-icon-font.ttf" );
29+ }
30+
31+ }
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package xyz.leezoom.tree2 .activity
17+ package moe.leer.filetree .activity
1818
1919import android.content.pm.PackageInfo
2020import android.content.pm.PackageManager
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package xyz.leezoom.tree2 .activity
17+ package moe.leer.filetree .activity
1818
1919import android.Manifest
2020import android.content.pm.PackageManager
@@ -32,13 +32,14 @@ import android.view.animation.Animation
3232import android.view.animation.AnimationUtils
3333import android.widget.AdapterView
3434import kotlinx.android.synthetic.main.activity_main.*
35+ import moe.leer.filetree.*
3536import org.jetbrains.anko.*
3637import xyz.leezoom.tree2.*
37- import xyz.leezoom.tree2 .module.FileItem
38- import xyz.leezoom.tree2 .module.FileTreeAdapter
39- import xyz.leezoom.tree2 .module.FileUtils
40- import xyz.leezoom.view.treeview .TreeUtils
41- import xyz.leezoom.view.treeview .module.DefaultTreeNode
38+ import moe.leer.filetree .module.FileItem
39+ import moe.leer.filetree .module.FileTreeAdapter
40+ import moe.leer.filetree .module.FileUtils
41+ import moe.leer.tree2view .TreeUtils
42+ import moe.leer.tree2view .module.DefaultTreeNode
4243import java.io.File
4344
4445@Suppress(" PrivatePropertyName" , " UNUSED_ANONYMOUS_PARAMETER" )
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package xyz . leezoom . tree2 .module ;
17+ package moe . leer . filetree .module ;
1818
1919import java .io .File ;
2020import java .util .HashMap ;
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package xyz . leezoom . tree2 .module ;
17+ package moe . leer . filetree .module ;
1818
1919import android .os .Build ;
2020import android .support .annotation .RequiresApi ;
Load Diff This file was deleted.
You canβt perform that action at this time.
0 commit comments