Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6996063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:06:32+00:00 2026-05-27T20:06:32+00:00

I would prefer to do most UI layout and set view properties in XML

  • 0

I would prefer to do most UI layout and set view properties in XML but have run into times when I need to override these values in code before rendering the view.

I can continue to do this after the layout/viewgroup has been constructed from the processed XML files but am wondering if there is a better way.

I know which property values need to be overwritten before the UI is constructed. Is there an event / pipeline I can extent that would allow me to inject a new value for a property while it is being constructed by the system?

Not sure if this more efficient – just thinking about alternative solutions.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:06:32+00:00Added an answer on May 27, 2026 at 8:06 pm

    If such a pipeline exists (I don’t think it does) it will probably not gain you more in terms of efficiency.

    When you compile your application, each XML layout file is compiled into a View resource, which are loaded from your application code (mostly in the onCreate() method of Activity).

    This basically means after compiling, there’s no XML to be edited/injected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to do some process injection using C++ but I would prefer to
I need to access a mysql database from c# code but I would prefer
I have some template code that I would prefer to have stored in a
My customer doesn't want a database but would prefer to update their data in
I have some user controls that I'm loading in SharePoint and I would prefer
I need to create hot-keys for every control + number combination and would prefer
I have some data in my user database that I would prefer to be
Brief blurb, My skill in .net has been called innovative but I would prefer
I have some legacy code to reuse written in c++ with opengl but most
I would prefer that a console app would default to multithreaded debug. warning level

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.