Posts by Leonardo Assunção • 700 points
25 posts
-
2
votes1
answer34
viewsA: Doubt about images on Android
According to a blogpost do Google: It’s best Practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions Different from the device’s Current…
-
0
votes1
answer636
viewsA: Change width of angular mat tooltip
Using the example given in the documentation, just add the width. HTML mat-form-field class="example-user-input"> <mat-select placeholder="Tooltip position" [formControl]="position">…
-
0
votes2
answers373
viewsA: Problems with setOnItemClickListener
I believe the @Override in this part of the code listaAlunos.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemCIick(AdapterView<?> lista, View item,…
-
0
votes3
answers11617
viewsA: Problems with special characters Html5 bootstrap
Try entities. Example: To write Song, you would write Canção where ç = ç ã = ã (point and comma are part of the code) Follows a link of an example table…
-
2
votes1
answer197
viewsA: Adjusting images on different screens
Create images with different resolutions and place in the respective Packages, according to the list below: xlarge (xhdpi): 640x960 (320 dpi) large (hdpi): 480x800 (240 dpi) medium (mdpi): 320x480…
androidanswered Leonardo Assunção 700 -
0
votes2
answers2126
viewsA: How to increase the size of the icon by hovering the mouse over a list
Add vertical-align: middleto the items in the list, thus .social ul li { margin: 4px; list-style: none outside none; display: inline-block; vertical-align: middle; } Working example here…
-
1
votes1
answer117
viewsA: Drawerlayout - control visibility
Make two menus and inflate them according to need, whether you are logged in or not. Example: Create these two menus in the menu directory menu_logged.xml <?xml version="1.0"…
-
3
votes2
answers1818
viewsA: How to adjust a DIV inside another DIV vertically?
What you can do is the following: Put the <div id="divAreaConteudo"> with the property display: table; and the orange div lay with the property display: table-cell DON’T USE FLOAT Example…
-
2
votes1
answer16
viewsA: How to use 2 values in a css property
Use only font and not font-style and add the size and which font to use. Example: font: italic bold 15px Georgia; You can see running here Reference in W3schools…
cssanswered Leonardo Assunção 700 -
2
votes2
answers553
viewsA: Div or image appears only inside another
Use the property overflow:hidden, which defines what happens to the content of div if it "overflows" the size of the div
-
1
votes3
answers75
viewsA: Should I use Everywhere or just Fonts?
WHAT IS IN? 1 MS was originally the size of the capital M letter of a given font. In CSS, 1 EM corresponds to the font-size value, which by default is 16px. So starting from the general definition…
-
4
votes3
answers170
viewsA: Why use layout before loading information?
This is called Preload overlay and, as they said in the other responses, it is a user-friendly practice, showing a layout and a warning that the page is loading, for example. This can be done with…
-
9
votes2
answers639
viewsA: Registration screen skipping field with "Enter"
Put the attribute below in the EditText in question android:singleLine="true" EDIT As stated, the android:singleLine was discontinued from API 3. You will have to use android:maxLines. In your case,…
androidanswered Leonardo Assunção 700 -
1
votes1
answer405
viewsA: How do I place a variable inside a Resources string?
According to the reply in English (here) and the reference (here), put this code in xml: <string name="meatShootingMessage">You shot %1$d pounds of meat!</string> And so in the code: int…
-
0
votes2
answers771
viewsA: Back button without action bar
Try this code <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"…
androidanswered Leonardo Assunção 700 -
0
votes4
answers1988
viewsA: Is there any way to know if I’ve done git push?
You can use git log for commit history. Output will be from the most recent commit to the oldest, along with SHA-1, author’s name and email, commit date and message. Output example commit…
gitanswered Leonardo Assunção 700 -
0
votes2
answers2009
viewsA: Change background color
I believe you want something like this: HTML <label for="check" class="btn btn-default">Mudar cor do fundo</label> <input type="checkbox" id="check" /> <div></div> CSS…
-
2
votes4
answers6185
viewsA: What is the difference between match_parent and fill_parent?
Basically, nothing. They’re both the same thing. Documentation link here fill_parent was renamed to match_parent in API 8 and larger. Always try using match_parent…
-
4
votes2
answers1092
viewsA: Menu css separated by bar
For this you will use css. The code is as follows:: ul li { display: inline; } li:before { content: " | "; } li:first-child:before { content: none; } The example here…
-
0
votes1
answer73
viewsA: How to have a layout adaptable to all screens?
You can add the following code to Androidmanifest in the Activity in question <activity android:windowSoftInputMode="adjustResize"> </activity> So Activity always reorganizes to give…
-
2
votes1
answer57
viewsA: CSS - Resize Both
You can’t customize it. An alternative is to put an image in the lower right corner, using some code of the type, above the "dashes": textarea { height: 150px; width: 150px; position: relative;…
-
0
votes3
answers99
viewsA: Firebaseexception: Failed to Bounce to type
I figured out what the problem was. The Json from the Firebase database had users registered in the application. Follow the code { "Train" : { "description" : "dbdjem", "local" : "shsusn" }, "users"…
-
2
votes3
answers99
viewsQ: Firebaseexception: Failed to Bounce to type
I’m trying to requisition an app for firebase. I can save data in the database normally, but when retrieving it, I find the following error: 06-20 12:07:15.151 28158-28158/sgk.com.br.sgk…
-
1
votes1
answer426
viewsA: Card View with Scroll
Add the following code above the first Linearlayout tag <ScrollView android:layout_height="match_parent" android:layout_width="match_parent"…
androidanswered Leonardo Assunção 700 -
5
votes2
answers175
viewsA: What would be the best way to make a website with responsive design
A tip to start making responsive, standardized designs is to use the framework Materialize . They have a very basic initial template and great documentation to learn. Get started here The site…