First of all, I know there is a lot of similar questions, but i could find a complete answer to do what I want. It's about the creation of a custom component.
Thing is, I would like to create a custom animated component for my UI. Moreover, the…
i have tried with these instructions available on this devoloper link
I need to load res/layout-w1024dp-h768dp/activity_main.xml on a device of resolution 1024x768 or else a default xml file, so i configured my AVD and my project explorer looks as…
I have an activity (MainActivity.java) in which content view is like this
this.setContentView(R.layout.standalone_example);
my standalone_example.xml is like this
According to the Android documentation for screen support, they have described as follow,
xlarge screens are at least 960dp x 720dp
large screens are at least 640dp x 480dp
normal screens are at least 470dp x 320dp
small screens are at least 426dp…
The idea was to create an interface with two "buttons" that are draggable.
I didn't want to use Canvas (problems with the bitmap in the memory and redrawing everything, etc.), so I decided to use the XML Layout with ImageView as buttons.
One button…
So by selecting a button possibly save the values to the SD card (preferably) or another xml layout?
I've read some stuff on using Shared Preferences where you can save any primitive data: booleans, floats, ints, longs, and strings. I'm not 100%…
I am trying to make a league table which has a fixed header... I posted previously and got advice, but i am still having some issues! I'm sure it is only a minor issue that is causing me my problems!!!
Below is the code for the main page:
public…
I’m new to Android and have a simple question. Currently I’m working on a products application that allows users to add, remove and browse variety of products. The application uses a predefined XML-based layout file as a template that fills the…
I'm having some issue creating a layout for a league table. In my current layout, i have created a table with consists of two rows. The first row has the headings i want, and the second row has black fields that consist of the data that is obtained.…
I am a beginner and this is my first app.
I am making an app that will show the user Text View in the mainActivity.xml, ex.Music, then the user can click on the 'music' text View(via intent) , and it goes to another activity where are displayed…
After starting the application on mobile , the Layout background go to black after changing from one activity to another
NOTE : the origin color of the layout is White
this is the screen-shot :
first activity :
second activity :
Here is the XML…
I want to design the screen. layout, tab and grid view I want to scroll option. In scroll time, fix the tab on the header (Below of status bar) and grid view scroll to end of grid view content. In the bottom, I fixed bottom navigation bar.
This is…
I just started with android development. I just need a screen with some buttons on it that can contact a webserver, to trigger an action there, but i have not even gotten that far.
When i add buttons to the layout, even if they are nicely sided by…
how can delete this blue and green section!? do some different ways but not work!
mainActivity:
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
…
Hi I have multiple EditText each of them having hint text.I am loading EditText views in a fragment. Whenever the fragment is loaded,cursor blinks for a fraction in the extreme left side of the edit text,but disappears after that. Even the hint is…