Exploring the physics coupled with layer degrees of freedom in materials has become a hot topic in quantum layertronics. We propose a robust second-order topological insulator monolayer RuOHX (X = F, Cl, and Br), a two-dimensional ferromagnetic semiconductor with large valley polarization, capable of undergoing topological phase transition induced by strain effect. In the bilayer RuOHX, we achieve layer-polarized anomalous Hall effect through interlayer sliding, originating from layer-stacking Berry curvature. Moreover, it can be controlled and reversed by the direction of ferroelectric polarization. Under appropriate biaxial strain, the bilayer RuOHX exhibits quantum layer spin Hall effect in which the helical edge states are manifested as spin-chirality-locking, due to the degeneracy of layer-polarized quantum anomalous Hall effect. Our work explores the potential application via layer-stacking topological properties for future quantum device applications.