Posts by Ilgner de Oliveira • 1,098 points
60 posts
-
-2
votes1
answer24
viewsQ: Is there a way to access a Vector programmable?
I have a vector of a star and wanted to access a path of it from within my Java class to change the color. <vector android:height="24dp" android:viewportHeight="197.24483"…
-
0
votes1
answer106
viewsQ: ng-bind-html removing style
I’m trying to pass a style in a span, more when I use ng-Bing-html it pulls out In the json that is placed on the page until this with the style <script id="data" type="application/json"…
-
5
votes5
answers10050
viewsQ: Run script js when trying to close the window
I have a form that is a popup (overlapping div) <div class="bloco-newsletter" style="background-image: url(http://bhpump.izap.ws/plus/imggen/imageChangeColor/005873/bg-newsletter.png)">…
-
5
votes3
answers17714
viewsQ: Disable Submit button to make no multiple calls to the server
I am trying to disable the button after clicking , so that it does not keep sending the form data several times if the user keeps clicking. my button <input type="submit" class="formButton"…
-
4
votes1
answer566
viewsQ: How to create a circle of progress?
I’m looking to make progress in a circle like this: In Java, I could only find something about JProgressBar.…
-
7
votes6
answers8471
viewsQ: Do not open keyboard automatically when on screen with Edittext
I have a screen with a EditText ai whenever I enter it already opens the keyboard. I wanted you to only open the keyboard when I clicked on it. I tried that but the keyboard is not opening at all:…
androidasked Ilgner de Oliveira 1,098 -
5
votes1
answer63
viewsA: Distance image from text on Button
I found the solution. android:drawablePadding="8dp"
androidanswered Ilgner de Oliveira 1,098 -
3
votes1
answer63
viewsQ: Distance image from text on Button
I have this Buttoncom an image and text xml <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/notificacao"…
androidasked Ilgner de Oliveira 1,098 -
6
votes1
answer228
viewsQ: Problem to execute a query in Sqlite
Table statement @DatabaseTable(tableName = "alarmes") public class ListenerAlarme { @DatabaseField(generatedId = true) public long id; @DatabaseField(canBeNull = true) public Date dataAlarme;…
-
4
votes1
answer4993
viewsQ: How to change the font color of the application title
I’m looking to change the font color of the application title There where it is written COMO ESTOU DIRIGINDO? how to do this?…
androidasked Ilgner de Oliveira 1,098 -
1
votes1
answer3540
viewsA: Change Actionbar menu icon
You can use a menu within an Item, ai in the item you define an icon <item android:icon="@drawable/ic_opcoes" app:showAsAction="always" android:title="@string/comecar"> <menu> //aqui…
-
1
votes1
answer203
viewsQ: How to go to the end of Scrollview
Is there any way I can send to the end of ScrollView When you click a button? I have a RadioGroup and a Buttom, the two are in a ScrollView, I want when click on one of the RadioButtom go to the end…
-
0
votes1
answer359
viewsQ: Put invisible item and other get in place
I have a RadioGroup and a button underneath it, but this button is invisible until a certain moment, I can do the RadioGroup occupy the white space while the button is invisible ?…
androidasked Ilgner de Oliveira 1,098 -
1
votes1
answer369
viewsA: Add imageview and break line
I did it using 3 LinearLayout <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout…
-
0
votes1
answer807
viewsQ: How to Share Image and Text
In my application I have a share button, until then it only shares an image I was wanting it to share a text too , a reference of my application the name Code I use to share image int drawableId =…
androidasked Ilgner de Oliveira 1,098 -
0
votes1
answer1292
viewsQ: Load images in listview
I have a listview with this layout layoutlist.xml <?xml version="1.0" encoding="utf-8"?> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"…
androidasked Ilgner de Oliveira 1,098 -
3
votes1
answer149
viewsQ: How to leave space between images?
I have this layout: telainicial.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"…
-
1
votes1
answer393
viewsQ: How to keep listview item loaded
I have this listview main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent"…
-
0
votes1
answer674
viewsQ: Listview occupy the entire screen
I have this listview main.xml <ListView android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/praias" android:layout_above="@+id/adView" /> I was Wanting the…
-
1
votes1
answer691
viewsQ: Listview is catching up
I’ve been ListView layout.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"…
-
0
votes0
answers49
viewsQ: Advertising error
I’m trying to put advertising in my application, my application has two screens the first screen I managed to put like this telainicial.xml <com.google.android.gms.ads.AdView…
androidasked Ilgner de Oliveira 1,098 -
0
votes2
answers180
viewsQ: How to use html tag as <b> in android
I have a text and put it in a dialog , how do I not keep showing the tag but the effect of it AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);…
androidasked Ilgner de Oliveira 1,098 -
0
votes1
answer630
viewsQ: Add a button inside a Textview
I have a text at the end of the text I want to put a button see more, it has like a hyperlink or have to create a button right next to the Textview ?…
-
0
votes0
answers17
viewsQ: How to get the size of the phone the application is running
I need to take the size of the phone my application is running , to try to use this bm.createScaledBitmap(bm,200,200,true);
androidasked Ilgner de Oliveira 1,098 -
0
votes1
answer55
viewsQ: Leave listview item by filling the entire screen
It has to leave an item of a Listview taking the whole screen of the cell phone?
-
1
votes1
answer1478
viewsQ: error while trying to generate android apk
I’m trying to generate apk , more is giving error , not understanding Error:Execution failed for task ':app:packageDebug'. > Failed to read key from keystore Evente log 19:33:33 Gradle build…
-
0
votes0
answers208
viewsQ: Browse a gallery and put in a scrollview
I’m using this to use as an image gallery . <android.support.v4.view.ViewPager android:id="@+id/galeria" android:layout_width="match_parent" android:layout_height="match_parent"…
androidasked Ilgner de Oliveira 1,098 -
0
votes1
answer773
viewsQ: align Linearlayout
I have three Linearlayout inside a Linearlayout <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout…
androidasked Ilgner de Oliveira 1,098 -
1
votes1
answer14680
viewsQ: Centralize a textview
I have this layout in my app: And I’m raising him like this: TextView txtCategoria = (TextView)LayoutInflater.from(this).inflate(R.layout.text, null); txtCategoria.setText(listenerCategoria.nome);…
androidasked Ilgner de Oliveira 1,098 -
0
votes0
answers107
viewsQ: Place an arrow in viewPager indicating to pass the photo
I’m using this viewPager to make a kind of gallery <android.support.v4.view.ViewPager android:id="@+id/galeria" android:layout_width="match_parent" android:layout_height="match_parent"…
androidasked Ilgner de Oliveira 1,098 -
3
votes1
answer1247
viewsQ: Change Actionbar button icon
I have this layout with this button of heart , it has as inside of the event of click of this button I change the icon I was hoping to trade my heart for this heart when you click the answer below…
androidasked Ilgner de Oliveira 1,098 -
4
votes1
answer1749
viewsQ: Application icon does not appear
I’m making an application, but when I install it on my phone, the icon does not appear. I have no idea what it might be, the ic_laucher is there in the drawable folders. What can be? Manifest…
-
1
votes1
answer7649
viewsQ: Button with transparent background
I am creating button in my application like this final Button btCategoria = (Button) LayoutInflater.from(this).inflate(R.layout.button, null); btCategoria.setId((int) listenerCategoria.id);…
androidasked Ilgner de Oliveira 1,098 -
0
votes3
answers188
viewsQ: How to share an android photo
I have this drawable: String nome_foto = itens.get(pos).nome_foto; int drawableId = getResources().getIdentifier(nome_foto, "drawable", getPackageName()); Drawable drawable =…
androidasked Ilgner de Oliveira 1,098 -
0
votes1
answer200
viewsQ: How to get a Drawable id by name
I tried it like this but it’s returning 0 try { String nome_foto = itens.get(position).nome_foto; int drawableId = context.getResources().getIdentifier(nome_foto, "drawable",…
androidasked Ilgner de Oliveira 1,098 -
1
votes2
answers414
viewsQ: How to put a subheading at the bottom of the app name in the bar menu
I’m willing to put two things on the bar menu, but I have no idea how you do that. Whatsapp has two things on the menu bar, the contact name and the time that viewed Whatsapp. Is there any way I can…
androidasked Ilgner de Oliveira 1,098 -
0
votes3
answers2343
viewsQ: How to use a Fragment button
I have a button in my Ragment fragment_main <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"…
androidasked Ilgner de Oliveira 1,098 -
1
votes1
answer124
viewsQ: View notification every day
I’m wanting to show a notification every day at the same time, I managed to show a notification at a time , more when it arrives at the same time again it does not appear Myactivity Calendar cal =…
androidasked Ilgner de Oliveira 1,098 -
0
votes1
answer2295
viewsQ: Program android notification
My app shows notification when it opens, but I didn’t want it to show the notification every time I opened the app, I wanted to show it once a day or even several times, with specific times. I’ll…
-
0
votes0
answers567
viewsQ: Drag list item to the side
I was going through my phone and I saw a feature that I would like to use in my apps , when I enter contacts there I pick up a contact and drag it to the left picks up an event to send sms and when…
-
4
votes1
answer1518
viewsQ: Compare two dates
I have two string containing dates dataSalva and dataDoDia and I’m wondering if the dataDoDia and 5 days longer than dataSalva how do I do this SimpleDateFormat dateFormat = new…
-
4
votes1
answer1346
viewsQ: How to make scrollview scroll always visible
I have a horizontalScrollView and wanted to leave the scroll bar always the display. <HorizontalScrollView android:layout_width="fill_parent" android:layout_height="wrap_content"…
androidasked Ilgner de Oliveira 1,098 -
1
votes1
answer33
viewsQ: Has to erase Imagebutton
I’m creating several ImageButton ImageButton imageButton = (ImageButton) LayoutInflater.from(this).inflate(R.layout.imagebutton, null); imageButton.setImageBitmap(bMap);…
androidasked Ilgner de Oliveira 1,098 -
3
votes1
answer735
viewsQ: Json org.json.Jsonexception error: Unterminated Object at Character
I’m not finding the error at the time I catch this json http://www.sinestandar.com.br/maker/sugeridos.txt look what’s coming out in the log 12-19 13:39:53.589 9554-9564/json.exemplo.com.cortecabelo…
-
7
votes1
answer4382
viewsQ: Split the app screen into two layouts
I’m looking to split the screen of the phone in half. I have two LinearLayout the same size, but it seems that the only way to do this, is to put the size on the property…
-
4
votes1
answer339
viewsQ: How to create button in Android Behind code?
I’m developing an app where I download some images from the internet when the app opens. I want, when I have these images downloaded, to create a button for each image and put it in the background.…
-
0
votes1
answer135
viewsQ: Recovers image saved in internal memory
I’m saving my image in internal memory using this code public String baixarImagem(String urlC, String nomeImagem) throws MalformedURLException { URL url = new URL(urlC); InputStream input = null;…
-
3
votes3
answers3750
viewsQ: consuming JSON
I’m having trouble getting a file from the internet by JSON. I have some data on this link http://www.sinestandar.com.br/maker/categorias.txt and I want to take to use in my application, the link…
-
0
votes3
answers2766
viewsA: Get id of the last record inserted in the database
public long insertH(HistoricoObjeto historico) { /* Mapa com a coluna e os valores de cada coluna. */ ContentValues values = new ContentValues(); values.put("datahora", historico.getDatahora());…
-
0
votes3
answers2766
viewsQ: Get id of the last record inserted in the database
I was wondering if I have how to insert a record in the database and already returns the id of this record in android sqlite use this method to insert public boolean insertH(HistoricoObjeto…