我想在导航抽屉中有2个ListViews。有人告诉我将2个ListViews包装在LinearLayout中,因为导航抽屉只能有2个孩子。但是,在LinearLayout中仅包装一个ListView会破坏我的导航抽屉。
我在做什么错了?
library(tidyverse)
newdat = data.2.test%>%
unlist()%>%
read.table(text = .,sep = ':')%>%
as.matrix()%>%
gsub(';','\n',.)%>%
data.frame(stringsAsFactors = FALSE)
dat1 = newdat[-3]%>%
group_by(V1)%>%
mutate(V2=list(read.csv(text=V2,header = F,stringsAsFactors = F)))%>%
unnest()
dat2 = newdat[-2]%>%
group_by(V1)%>%
mutate(V3=list(read.csv(text=V3,header = F,stringsAsFactors = F)))%>%
unnest()
dat1
A tibble: 58 x 7
# Groups: V1 [2]
V1 V11 V2 V3 V4 V5 V6
<chr> <int> <int> <int> <int> <int> <dbl>
1 1614689 -1 1 -1 -826 -3484 0
2 1614689 -1 2 -1 -311 -3450 0
3 1614689 -1 3 -1 -3732 -708 0
4 1614689 -1 4 -1 137 -3387 0
5 1614689 4 5 -1 5550 4400 0
6 1614689 4 6 -1 5550 4400 0
7 1614689 4 7 -1 5550 4400 0
8 1614689 4 8 -1 5550 4400 0
9 1614689 -1 9 -1 -1971 -2660 0
10 1614689 4 10 -1 5550 4400 0
# ... with 48 more rows
dat2
# A tibble: 2 x 7
# Groups: V1 [2]
V1 V11 V2 V3 V4 V5 V6
<chr> <int> <int> <int> <dbl> <chr> <chr>
1 1614689 -1971 -2660 0 6.08 A Dead
2 1614690 -1970 -2666 0 6.08 A Dead