Claim : For the finite vector space V and its finite subspaces $U_i, i =1,2,...,n $
$V = \sum_{i=1}^{n} \oplus U_i \Rightarrow {\rm dim}\ (V) = \sum_{i=1}^{n} {\rm dim}\ (U_i) $
Proof
Let $\beta_i$ be the basis of subspace $U_i$ and denote each element of $\beta_i$ $\beta_{i0}, \beta_{i1},....,\beta_{in}$
Since $V = \sum_{i=1}^{n} \oplus U_i$, it follows that $\beta:= \cup_{i}^{n}\beta_i$ spans $V$ and $\cap_{i}^{n}\beta_i = \emptyset$.
Then $\mid\beta\mid =\dim(V)$ and $\mid \cup_{i}^{n}\beta_i\mid = \sum_i^n dim(U_i) $ whcih concludes that
${\rm dim}\ (V) = \sum_{i=1}^{n} {\rm dim}\ (U_i) $ Q.E.D.
You need to prove that for any $i$, $V_i\cap(\sum_{j\ne i} V_j)=\{0\}$.
For this, observe that $\dim (\sum_{j\ne i} V_j) = \sum_{j\ne i} \dim(V_j)$ (if not, \sum_{i} \dim(V_i) can't be $\dim(V)$), and $\dim(\sum_{j} V_j)=\dim(V_i)+\sum_{j\ne i} \dim(V_j) - \dim(V_i\cap(\sum_{j\ne i} V_j))$.
This means $\dim(V_i\cap(\sum_{j\ne i} V_j))=0$, and you're done.