Android hide view in layout

aqua30 / HideShowScrollParallaxActivity.java

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

xml version = » 1.0 » encoding = » utf-8 » ?>
RelativeLayout xmlns : android = » http://schemas.android.com/apk/res/android «
android : layout_width = » match_parent «
android : layout_height = » match_parent «
android : background = » @color/white «
android : orientation = » vertical » >
ImageView
android : id = » @+id/parallax_image «
android : layout_width = » match_parent «
android : layout_height = » 280dp «
android : scaleType = » centerCrop «
android : src = » @drawable/img_user_avatar »/>
ScrollView
android : id = » @+id/scrollView «
android : layout_width = » match_parent «
android : layout_height = » match_parent «
android : clipToPadding = » false «
android : orientation = » vertical » >
TextView
android : id = » @+id/tv_perhour «
android : layout_width = » match_parent «
android : layout_height = » wrap_content «
android : layout_marginTop = » 280dp «
android : layout_weight = » 1 «
android : background = » @color/white «
android : gravity = » left «
android : text = » @string/lorem_ipsum «
android : textColor = » @color/black «
android : textSize = » @dimen/size_large »/>
ScrollView >
TextView
android : id = » @+id/tv_heading «
android : layout_width = » match_parent «
android : layout_height = » 50dp «
android : background = » @color/white «
android : gravity = » left|center_vertical «
android : paddingLeft = » 16dp «
android : text = » Hey there «
android : textColor = » @color/black «
android : textSize = » @dimen/size_large »/>
RelativeLayout >

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

Читайте также:  Штрафы гибдд для android

Источник

Оцените статью