possible duplicate: create subdomain upon user registration suppose have site, , wish give sub-domain each registered users. site, http://site.com/ . and test-user user registered on site, , site wants make sub-domain user. like http://test-user.site.com . like http://test-user1.site.com test-user1. i hope understood requirement. how can create sub-domain using sites back-end or dynamically while registering? make dns record bring * requests site ip. set web server handle * requests (thanks @animuson mentioning) check $_server['http_host'] against database. profit!!!
i experiencing problem views visibility state of gone (undesirably) taking space on screen. problem occurs on api level <= 7 devices, on 8+ devices (after utilized asynctasks populate fields, per show progress bar when activity loading ) a bit of context: created custom view extending linearlayout contains "title" button , (user defined; in cases, it's few textviews, in others it's tablelayouts) "contents". purpose of view toggle view of contents onclick of title button (i don't believe there built-in widget this.. may wrong). in onlayout() explicitly set visibility state of child views except title gone, first time drawn: protected void onlayout(boolean changed, int l, int t, int r, int b) { if(initialdraw) { setcontentsvisible(false); initialdraw = false; } super.onlayout(changed, l, t, r, b); } public void setcontentsvisible(boolean visible) { for(int = 0; < getchildcount(); i++) { view child ...
Comments
Post a Comment