Posts by Leonardo Cardoso • 483 points
10 posts
-
0
votes2
answers81
viewsA: Toolbar is behind the Layouts
By the attributes of your Linearlayout container, the parent of these views is a Relativelayout, correct?! Relativelayout works different from other views. You need to inform the hierarchy of views,…
-
1
votes2
answers304
viewsA: Android Studio - Coordinatorlayout, Appbarlayout and Floatingactionbutton
Uses Theme.Appcompat as the parent of your themes in Styles.xml <style name="AppTheme" parent="Theme.AppCompat"> </style>
androidanswered Leonardo Cardoso 483 -
0
votes1
answer36
viewsA: Capture values via a button
When you speak other screens means other activities? If yes, you can pass values between activities using Bundle that you send along with the Intent. Here’s a good example on how to use Bundle +…
-
0
votes2
answers332
viewsA: Different orientations on smartphone and tablet
Use this method to know if the device is tablet: public static boolean isTabletDevice(final Context ct) { if (android.os.Build.VERSION.SDK_INT >= 11) { // honeycomb /** * testa o tamanho da tela…
-
0
votes5
answers1154
viewsA: Map does not load, showing error
Try these changes. You have to instantiate the map. public class MapActivity extends FragmentActivity { private GoogleMap mMap; @Override protected void onCreate(Bundle savedInstanceState) {…
-
0
votes2
answers1054
viewsA: Keeping an item from a selected Listview when pressed
You can use custom layouts to generate this pressed or normal effect. In the list item you can have a enable Boolean flag and when you press the item you setEnable(true) and…
-
0
votes5
answers1154
viewsA: Map does not load, showing error
When you download sdk, Google Play services is there. You can check if it is installed by clicking on the Android SDK Manager button (that button that sits on the bar that has an Android with an…
-
0
votes2
answers864
viewsA: How to get the registry ID that is populated in Listview
By its code the id is R.id.lvObjectsEmpres. But you can get it by using this function that every view has: listview.getId(); Remembering that R.id.lvObjectsEmprestates must be in the activity_main…
-
30
votes6
answers15594
viewsA: How to do a search ignoring Javascript accent?
As these characters have no mathematical relation at all in the table Unicode. The way I see it is to do the substitution "manually", at least using regular expression. It takes a job, but it is…
-
4
votes9
answers17662
viewsA: Error: R cannot be resolved
This can occur for several reasons, but the most common are: Newly Created Project. Give Clean and Build. Class order in Java Build Path is incorrect or wrong priority. Preferably leave the…