Horizontal Scroll View and layouts - Android -


i'm new android.

i grid of image buttons on top of image in horizontal scroll view (phone in landscape mode) background image , image buttons in grid view scroll together

i thought relative layout, horizontal scroll view, linear layout(with background image), gridview (with rows , columns of image buttons)

i can't seem overlay image button on top of image in gridview. seems work if put image button in linear layout, need them in grid. how go this? in advance

if try put image button in grid view, render error: addview(view,layoutparams) not supported in adapter view

maybe should using grid layout?

build.gradle (module:app) apply plugin: 'com.android.application'  android { compilesdkversion 26 buildtoolsversion "26.0.0" defaultconfig {     applicationid "com.example.tim.myapplication"     minsdkversion 16     targetsdkversion 26     versioncode 1     versionname "1.0"       testinstrumentationrunner "android.support.test.runner. androidjunitrunner" } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile ('proguard- android.txt'), 'proguard-rules.pro'     }   } }  dependencies { compile filetree(dir: 'libs', include: ['*.jar']) androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', {     exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:26.+' compile 'com.android.support.constraint:constraint-layout:1.0.2' testcompile 'junit:junit:4.12' compile 'com.android.support:gridlayout-v7:25.3.1' } 

this question unclear , try upload picture of desired layout.

anyway can suggest use horizontal linear layout parent , in add vertical relative layout , can have button on 1 side , image on other side.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -