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

  • Home
  • SEARCH
  • 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 6533653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:09:14+00:00 2026-05-25T10:09:14+00:00

I am creating an AppWidget that allows users to skin the widget and download

  • 0

I am creating an AppWidget that allows users to skin the widget and download from a list of widgets online. I would like to allow skinners to offset the position of the icons vertically.

I initally tried calling offsetTopAndBottom on the LinearLayout that holds the icons, this is not allowed as its not supported with RemoteViews.

I then had an idea of using 2 Views inside a LinearLayout (on top and below the icon Layout) to “squash” the icons towards the bottom (if the height of the top layout was set to > 0).

When I tried to set the height of these views: –

 views.setInt(R.id.iconMarginTop, "setMinimumHeight", offset);

it also complained that it wasn’t supported with RemoteViews

Any ideas what I could do to acheive this offset?

Thanks for your help!

  • 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-25T10:09:15+00:00Added an answer on May 25, 2026 at 10:09 am

    I don’t think this can be done. The best thing I can think of is to have multiple layouts with the view at different positions. This might not suit every situations though

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

Sidebar

Related Questions

I'm creating an app widget that queries data from a database, and uses a
I'm having trouble starting a Service to update an AppWidget that I'm creating as
Creating a calculator-like dialog, I noticed that quickly clicking on a button in IE
i am creating a few appwidgets on android. I would also like to resuse
I am creating a appwidget that consists of a single custom view called Foo.
I am creating a AppWidget that consists of a ImageView that gets filled with
Creating hashes of hashes in Ruby allows for convenient two (or more) dimensional lookups.
Creating liquid layouts is an immense pain. Now, I totally understand that tables should
I'm creating both an appWidget container and appWidgets. I have a problem which I
I'm creating an appwidget, where the user should be able to configure it before

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.