Posts by Bruno Romualdo • 1,890 points
83 posts
-
0
votes3
answers420
viewsA: Double Tap Opens Two Activitys Android
I was able to solve my problem by creating a static function similar to a timer: Utils.java private static int clk = 0; public static boolean testClique(int ms) { Handler handler = new Handler();…
-
1
votes1
answer469
viewsA: How to change the background color of an image?
Try this <img class="suaclasse" src...> css img.suaclasse { background-color: rgba(0,0,0,0); // ou uma cor que você preferir. }…
-
2
votes1
answer3673
viewsQ: Download files by link(url) Android
There’s a way I can download a file .apk from my server and open it as soon as it has finished downloading? I know I don’t have any code showing what I’ve done or tried, but it’s because I honestly…
-
0
votes2
answers2514
viewsA: Android layout with colorful embroidery
Just create a Shape rectangular in the folder drawable and define as background of his view: drawable/embroider_blue.xml <shape xmlns:android="http://schemas.android.com/apk/res/android"…
-
1
votes2
answers672
viewsA: Animated caption with Hover
Add to your div with the class .principal the property overflow: hidden.
-
2
votes4
answers116
viewsA: Help with Jquery appear div
Do so: <ul> <li><a href="#1">Conteudo1</a></li> <li><a href="#2">Conteudo2</a></li> <li><a href="#3">Conteudo3</a></li>…
jqueryanswered Bruno Romualdo 1,890 -
3
votes2
answers234
viewsA: Pass menu from "normal" to "hamburger"
The "Secret" so to speak is to use @media-queries. Following the example of the framework materialize (that recommend the use when you want to facilitate your work with responsive websites and still…
-
0
votes2
answers749
viewsA: How to take the shadow off a Toolbar?
If you are using a similar structure to implement your Toolbar: <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" ...>…
androidanswered Bruno Romualdo 1,890 -
2
votes1
answer272
viewsA: Jquery - click button to do the listing show and button Hide?
How @Pedro said set an id for your button: <button id="button" ...> or in place of id can use the this to hide the element that activated the event click: $("button").click(function(){…
jqueryanswered Bruno Romualdo 1,890 -
2
votes3
answers420
viewsQ: Double Tap Opens Two Activitys Android
I’m having a problem with a list where I use a RecyclerView, by clicking on an item in the list, OnClickListener is dealt with in the ViewHolder that RecyclerView:Meuviewholder: public…
-
0
votes1
answer397
viewsQ: Global variable data getting lost Android
Hello to all I’m creating an app that when the person logs in, the app brings the data Nome, Login, Senha and Foto(a url) of the server database, and saves that data in a Singleton so that they are…
-
0
votes2
answers1646
viewsA: Minimum height of screen size, with materialize?
Divide your html page with tags main and footer. Sort of like this: <body> <main> ...seu conteudo </main> <footer> ...seu rodape </footer> </body> then add this…
-
2
votes3
answers5170
viewsA: How do I leave a round image?
Use this API I found on the internet: In Gradle add dependency: compile 'de.hdodenhof:circleimageview:2.0.0' And in place of ImageView in XML just add:…
-
1
votes1
answer1156
viewsA: Calling another page with bootstrap button is not working
Try to put the window: function Nova() { window.location.href = 'pme_beneficiarios.html'; }
-
0
votes2
answers1072
viewsA: Fatal error: Call to Undefined Function http_response_code() php 5.2
Following the function header() by @Daniel Omine I was able to make it work once the photo upload, but then I came across the error: Warning: Cannot modify header information - headers already sent…
-
2
votes2
answers1072
viewsQ: Fatal error: Call to Undefined Function http_response_code() php 5.2
I took a script (Java android e php) from a book I’m studying, which simply takes a photo sent from android and saved in a folder on my server. The android application ran without any error, but I…
-
1
votes1
answer920
viewsQ: Change Size Dialogfragment according to Android screen
I have a very simple registration form that appears when you click a sign up button. This form appears in a DialogFragment, however, with a very small size. Zoning on the internet I found a code…
-
1
votes1
answer113
viewsQ: Set Linear background layout from String variable
I have a function that takes a number (in the String format) as a parameter and checks if it is between the numbers 1 to 5. Here is the function: if (fundo.equals("1") || fundo.equals("2") ||…
-
0
votes2
answers182
viewsA: Open different Divs via links
Do so: function abre(el) { $(el).fadeIn(700); } function fechar(el) { $(el).fadeOut(700); } And to call the function just pass the element id onClick="abre('#box');" and onClick="fecha('#box');" but…
-
0
votes2
answers34
viewsA: Doubt TD Jquery
I don’t know if it’s what you’re looking for, but try adapting your code to it with jQuery: $("seu_elemento").attr("class");
jqueryanswered Bruno Romualdo 1,890 -
2
votes1
answer241
viewsA: Display div elsewhere according to screen resolution
Use @media queries. Example: .grid6 { width:50%; } @media only screen and (max-width: 768px) { . grid6 { width:100%; } } If the resolution is less than 768px the div will occupy the entire line, if…
-
1
votes3
answers488
viewsA: responsive menu with jQuery and css
I was able to think of an example using the .offset() jquery, follow the example: $(Document). ready(Function() { $(". menu2"). onMouseEnter(test(this)); }); Function teste(el) { // I’m terrible at…
-
0
votes3
answers488
viewsA: responsive menu with jQuery and css
Then use a separate css only in that menu: css: ... .link2 {... Seu estilo normal aqui} .Link2.right { margin-left: -260px; } .right . sub_menu_arrow::after { left:280px; } And just add the right…
-
1
votes3
answers488
viewsA: responsive menu with jQuery and css
With media queries would look something like this: ... Seu estilo normal .link2 { margin: 0px 0 0 0; // Para se ajustar quando o menu estiver na esquerda padding: 0; position: absolute; top: 28px;…
-
2
votes1
answer136
viewsA: How to create a menu with jquery that performs this effect after scroll?
Apparently, it is using this jquery plugin:http://imakewebthings.com/waypoints/guides/getting-started/ What it does is monitor how much the person scrolled on the page (or 'rolled' the page in clear…
-
1
votes1
answer85
viewsA: Problem with css menu
Without an example page it is a little difficult to see your problem, but try to take the edges of this snippet of your css: #cssmenu > ul > li:hover:after { content: ''; display: block;…
-
2
votes4
answers80
viewsA: View form when password is set
I edited it in its code because it had many errors of writing. To select an element in javascript, always use id(Document.getElementById) alias Voce was typing 'byId' with b minusculo and is higher…
-
1
votes1
answer656
viewsQ: Return onPostExecute() String
I have this code: Mainactivity: @Override protected void onCreate(Bundle savedInstanceState) { ... btn_login.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {…
-
2
votes4
answers80
viewsA: View form when password is set
Actually it’s not visibility and yes display try like this: if (senha1 == senha2) { alert("PASS OK"); document.getElementbyId("cadastro").style.display="block"; } Alias your jsfiddle code is got a…
-
1
votes1
answer334
viewsQ: User login with Webservice
I would like to ask the connoisseurs of Java (Android) to guide me in this code: Mainactivity: @Override protected void onCreate(Bundle savedInstanceState) { Log.d("TESTE", "Iniciou MainActivity");…
-
0
votes1
answer47
viewsQ: Function result JAVA Android
I have a simple question for those who already understand Java but this breaking my head. Being direct, I have my Mainactivity and a layout with two Edittext’s and a button, and a Systemshttp Class.…
-
1
votes0
answers63
viewsQ: DELETE android with Webservice URL does not work
I’m with an annoying problem that I haven’t been able to solve yet and involves PHP and Android (more PHP actually). I’m accessing a PHP Webservice that makes an operation according to each method…
-
0
votes1
answer4362
viewsQ: 1264 Out of range value adjusted for column with decimal field
I have a hotel table in my database with a column estrelas(decimal(1,1)) which receives the hotel grade (from 0.0 to 5.0), however whenever I try to insert or change a field and put a value greater…