Posts by Felipe Campos • 96 points
15 posts
-
0
votes2
answers53
viewsA: How to Select a Query
I got it another way: public ArrayList<Exercise> getExercisesByCategory(String categoria){ DBHelper dbHelper = null; SQLiteDatabase sqLiteDatabase = null; Cursor cursor = null;…
-
0
votes2
answers53
viewsQ: How to Select a Query
I’m having doubts about how to make a SELECT in my database. Here are the classes I use: DBHELPER public class DBHelper extends SQLiteOpenHelper { private static String NAME = "sqlitejuh.db";…
-
0
votes2
answers2215
viewsA: Change Fragment by clicking on a button inside another Fragment
That’s my fragment class public class TrainingFragment extends Fragment implements View.OnClickListener{ ImageButton btCone; @Nullable @Override public View onCreateView(@NonNull LayoutInflater…
-
1
votes0
answers27
viewsQ: Problem with android agenda
I’m starting an interview to get a contact in the contact list: if (AceitouContacts) { Intent intent = new Intent(Intent.ActionPick, ContactsContract.CommonDataKinds.Phone.ContentUri);…
-
-1
votes2
answers1957
viewsA: background image of android screen
Try to put this in your xml: <Button android:id="@+id/bt_login_face" android:layout_width="wrap_content" android:layout_height="@dimen/bt_login_height" />…
-
0
votes1
answer44
viewsA: How to make proportional screens on different phones on Android?
Hello! In order to use the compatibility in other cell phones, there is usually no use of fixed spaces. For example, in this code snippet (excerpt below) the margins you are giving may look good for…
-
1
votes1
answer96
viewsA: White screen in transition between activities
I managed to solve my problem... When I used to use it: intent.AddFlags(ActivityFlags.NoAnimation); intent.AddFlags(ActivityFlags.NewTask | ActivityFlags.ClearTop); The whole stack of activities was…
-
2
votes1
answer96
viewsQ: White screen in transition between activities
I have a project in which I developed a method to save a reference to the activity current and when I used the HOME from the next screen, it returned to the activity using that saved reference. But…
-
1
votes0
answers68
viewsQ: My Xamarin is only working in the debug version!
During my applications, my Xamarin started running only in debug, when I change to release solution, it keeps using debug. I tried to restart the pc, download the project again, change some configs,…
-
2
votes1
answer354
viewsA: Change the color of a background image on Android
You can’t do this with images, you can do it with xml (vector files). For this, in your case, your vector needs to be divided into 2 parts... The largest area and this folding... Example: <vector…
androidanswered Felipe Campos 96 -
0
votes2
answers132
viewsA: Dynamic button layout in Android Layout
Depending on the shape you want to position and, if it is only buttons, you can create the layout with numerous buttons, leave the visibility Invisible or Gone (depending on the situation) and go…
android-layoutanswered Felipe Campos 96 -
0
votes1
answer477
viewsA: No specific details appear in android studio when configuring application for various screen sizes
When you create a layout, usually this layout is automatically docked to all screen sizes, for example, if you create a Linearlayout and put size attributes like match_parent or wrap_content, they…
-
0
votes1
answer42
viewsA: Changing button color dynamically on Android
I would need the code to see how you are doing, but basically, when you start an Activity, the previous one is destroyed, that is, this tablayout would be destroyed and recreate a new one. Then you…
-
0
votes1
answer702
viewsA: Add icon to Android Studio mode
This is correct, but icons are usually made by the Asset vector, as they are mostly vectors. Just be careful with some properties of the exported icon that cannot work in older Apis. For example…
-
1
votes3
answers2244
viewsA: Position Button in the center of a Linearlayout with layout_gravity
To leave the button centered on the screen, you can put a gravity on the parent: <?xml version="1.0" encoding="utf-8"?> <LinearLayout…