java


Android - Snackbar Cover my View


Why Snackbar cover my view
here is my xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/fullview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#color/dark_gray"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<TextView
android:id="#+id/reload"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:layout_centerInParent="true"
android:text="#string/reload"
android:visibility="visible" />
<ProgressBar
android:id="#+id/progressbar"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:visibility="gone" />
<android.support.v7.widget.RecyclerView
android:id="#+id/complist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fadeScrollbars="false" />
</RelativeLayout>
<LinearLayout
android:id="#+id/buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_margin="5dp"
android:orientation="horizontal">
<Button
android:id="#+id/send"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="#color/blue"
android:text="#string/send"
android:textColor="#android:color/white" />
<Button
android:id="#+id/cancel"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="#color/green"
android:text="#string/cancel"
android:textColor="#android:color/white" />
</LinearLayout>
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
java code used to show snake bar
private CoordinatorLayout _CoordinatorLayout;
#Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.compition, null);
_CoordinatorLayout = (CoordinatorLayout) v.findViewById(R.id.fullview);
}
Snackbar.make(_CoordinatorLayout , message , Snackbar.LENGTH_LONG).show();
here is screen shot
what I miss ??
The documentation here says:
Snackbars appear above all other elements on screen and only one can
be displayed at a time.
So, Snackbar will cover your view, just like a Toast.

Related Links

Instant toString prepends plus
Java get REAL loopback address programmatically
difference in GET request between HTTPS and HTTP
Running tests with Spring Boot
Can I use Python for Android development? [closed]
Hibernate - Errors while querying, “loop” of exceptions
Why JOptionPane cannot stop flow of execution, in my application?
How to retain session after java web server redeployed or crashed
Hibernate does not refresh entity childs completely
Android: How to make EditText digital input string into int?
How to set priorities for multiple threads in java [duplicate]
SimpleDateFormat gives API Error
NoSuchBeanDefinitionException in DelegatingFilterProxy
NullPointerException when using String from SQL database
Parsing Multiple Lines As Object Before Creating Tuple For Apache PIG UDF
How to return deep nested projections in Spring data rest?

Categories

HOME
gerrit
amazon-ec2
minimum-spanning-tree
layout
relative-path
view
hp-exstream
octobercms
spring-cloud-stream
malloc
amazon-ecs
electronics
cakephp-2.5
dxl
ojdbc
flyway4
multiple-records
maude-system
jplayer
circular-dependency
ibm-odm
windows-server-2012
msp430
google-static-maps
aurigma
http-status-code-504
normalizr
jquery-ajaxq
cultureinfo
shopware
buildbot
fish
chromebook
info.plist
webkitspeechrecognition
sql-server-2012-express
key-value-observing
code-contracts
vsts-build-task
ghost4j
objectlistview
ncalc
import-from-excel
gpx
auto-update
rainbowtable
theming
fancybox-2
carrot
directory-structure
linode
orthogonal
medium.com
libpng
xml-attribute
disque
blackberry-10
ready-api
essence
independentsoft
netmq
fouc
responsive-images
sysinternals
graph-api-explorer
umbraco6
csquery
block-device
tt-news
network-interface
preferences
rdl
rebol3
concurrent-collections
multiprocessor
xsockets.net
jmapviewer
back-stack
qt-faststart
clipper
libstdc++
google-email-migration
broken-links
armcc
hosts-file
regsvr32
subscript
deobfuscation
celltable
actionview
sql-server-profiler
remember-me
radcombobox
cxxtest
bespin
perfect-hash
nintendo-ds
thread-local-storage
scripting-languages
grid-system
ugc
caching-application-block

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App