Use the version of addView that takes LayoutParams:
LayoutParams params = mLayout.generateLayoutParams();
params.x = remoteObject.x;
params.y = remoteObject.y;
mLayout.addView(button, params);
More Related Contents:
- Set the absolute position of a view
- Create a NinePatch/NinePatchDrawable in runtime
- How permission can be checked at runtime without throwing SecurityException?
- RecyclerView – How to smooth scroll to top of item on a certain position?
- Indoor Positioning System based on Gyroscope and Accelerometer
- How to rename a file on sdcard with Android application?
- Android Runtime Layout Tutorial
- What’s the purpose of item-id’s in Android ListView Adapter?
- Android – Use of view.setX() and setY in api 8
- android span click event
- Android: Detecting When ScrollView Hits Bottom [duplicate]
- Get Canvas coordinates after scaling up/down or dragging in android
- Changing position of a button
- combining wrap_content on parent and fill_parent on child
- Android layout with one side round [closed]
- Android: How do I get string from resources using its name?
- Different resolution support android
- What is the difference between match_parent and fill_parent?
- Android YouTube app Play Video Intent
- How to make a background 20% transparent on Android
- Add and Remove Views in Android Dynamically?
- Intent action for network events in android sdk
- How to use SharedPreferences [duplicate]
- RecyclerView GridLayoutManager: how to auto-detect span count?
- Firebase : What is the difference between setPersistenceEnabled and keepSynced?
- How do I create an android Intent that carries data?
- How to get contact email id?
- android – Moto G mobile doesn’t show in the devices List of Eclipse
- adb shell dumpsys iphonesubinfo not working since Android 5.0 Lollipop
- How can I update the Android Gallery after a photo?