Android Question [UnSolved] Adjust Margin/Padding in Preference?

Discussion in 'Android Questions' started by Jamie8763, Oct 3, 2018.

  1. Jamie8763

    Jamie8763 Active Member Licensed User

    Attached Files:

    Last edited: Oct 4, 2018
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Hello Jamie,
    I've just tried running Corwin42 example with his latest library and all appears to be looking correct to me, Android-28, TargetSDK=28 too.

    Try download and testing out Corwin42 examples to see if you are still getting the same issues @Jamie8763
     
  3. Jamie8763

    Jamie8763 Active Member Licensed User

    Hi Peter,

    Thanks for your suggestion I've tried Corwin42 example and it doesn't appear. Up until the point of updating the sdk it didn't exist and no app changes on the affected app.
     
  4. yiankos1

    yiankos1 Active Member Licensed User

    I have exaclty same problem with @corwin42 material preferences wrap after update to 28sdk. Did you figure it out how solve this?
     
  5. Jamie8763

    Jamie8763 Active Member Licensed User

    Unfortunately not.
     
  6. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    I don't have troubles with corwin42 samples, because I saved mavens 27.1.1. But ok, you use 28.0.0. In corwin42's example there are activities Prefs1, Prefs2.
    Like I understand a picture from stackoverflow, new maven makes wide left/right margins

    At the end of Activity_Create you can add something like this

    Code:
    For Each v As View In Activity
            
    If v <> ToolBar Then
                v.Width = v.Width + 
    100dip
                v.Left = -
    50dip          
            
    End If
        
    Next
    Maybe not 50dip, but less or more.
     
  7. Jamie8763

    Jamie8763 Active Member Licensed User

    The issue I find is that the view does move left but because of the space indents the header title goes off screen.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice