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

Compile Latex Documents in Android App
Scanners and multiple if statements
Is there a better way - Java Conditional Statements
Android app can not find GsonBuilder class
Zoom persist on next imageview
Target applet or JVM process exited abruptly
how can i run an other java program/class from an action? [closed]
Copy all files with specific extension from remote server with Java
Is there a way to get stricted date parsing than setting leniency to false?
Using CaCErt to certificate java applet
OJDBC 14 implicite date conversion?
How to save text attribute set to a file?
final array instance variable in a java class and resetting a reference
unable to retrive enteries from mysql database of phpmyadmin(wamp) from other pc
Json Object conversion to java object using jackson
Reading JSON data in netty server

Categories

HOME
cakephp
clips
testng
activiti
tinymce
relative-path
iterator
bpmn
leon
android-youtube-api
cross-validation
amazon-cloudformation
alignment
n-gram
serverless-framework
apache-metamodel
reactive-cocoa
pythonanywhere
text-rendering
alpine
amazonsellercentral
zapier
visjs
clickonce
jasonette
cultureinfo
selectedindexchanged
sql-server-2012-express
react-chartjs
yadcf
create-table
framemaker
stringtemplate
avcapturesession
mozilla
atl
catalog
x11-forwarding
space-complexity
event-driven
sqlite2
mapzen
galen
pdf-reactor
android-mediaprojection
node-sass
eclipse-gef
sas-jmp
osx-mavericks
azure-application-gateway
winscp-net
return-value
integrity
togetherjs
feeds
typed-lambda-calculus
windows-iot-core-10
or-tools
background-service
word-vba-mac
xcb
gridview-sorting
essence
captivenetwork
apachebench
ipconfig
rtbkit
wso2cloud
pundit
wyam
emailrelay
angular-local-storage
e10s
truevault
rake-task
ng-animate
nstableviewcell
file-copying
bitcoinj
heisenbug
funcunit
jubula
valuechangelistener
transcoding
message-driven-bean
industrial
gnu-smalltalk
oam
cdc
web2py-modules
back-stack
plasma
lcs
frameset
armcc
regsvr32
servicehost
file-comparison
floating
revisions
sef
adrotator
simpletest
mediarss
data-acquisition

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