Posts by Welbert Moreira • 109 points
6 posts
-
0
votes2
answers66
viewsA: Why does my "Textappearence" and my "Textcolor" not work on some Android devices?
That one @style/Base.TextAppearance.AppCompat.Headline is different depending on the version of Android and device. I recommend creating your own styles. Check the documentation here…
-
1
votes1
answer177
viewsA: Calling Activity from Webview
Look to do this with Webview is a bad way, Webview consumes absurd resources besides being nothing indicated to access your service. The correct way is to request your PHP script, so you can check…
-
0
votes1
answer180
viewsA: Textview findviewbyid Fragment Mainactivity
You are trying to access the textview of Fragment within Activity. Logico these Textview does not exist in Activity so you are taking the Nullpointerexception Caused by:…
-
2
votes1
answer61
viewsA: How to use Sharedpreferences access modes?
MODE_PRIVATE Only your application can have access to data preferably. MODE_WORLD_REABLE All applications on the device can read your data preferably but cannot edit, save or write to the data.…
-
0
votes1
answer278
viewsA: Close app upon checkout
You can remove this line from your code: fragmentTransaction.addToBackStack(null); It brings the button back, back from Fragment and not from Activity.
-
1
votes3
answers455
viewsA: Show or hide an image in Android Studio
This is a matter of programming logic. To make an image visible use: imageView.setVisibility(View.VISIBLE); To make an image invisible use: imageView.setVisibility(View.GONE);…