tintim_22 Posted February 6, 2013 at 09:53 AM Report #494361 Posted February 6, 2013 at 09:53 AM Boas, Tenho um ViewFlipper que tem um LinearLayout, que por codigo funciona, no entanto não consigo fazer um scroll vertical para ver todo o conteudo do Linear, se coloco ScrollView deixo de ter o flipper e vice-versa, mas queria ter scroll vertical e continuar a ter o flipper, é possivel? Como resolver? Obg. =)
tintim_22 Posted February 11, 2013 at 03:57 PM Author Report #494877 Posted February 11, 2013 at 03:57 PM Como ninguem me percebeu, resolvi o problema com um ViewPager, mas agora tenho um outro problema, queria aumentar o tamanho do texto via menu, mas não estou a conseguir chegar ao TextView da pagina onde estou, mudando-me o texto da pagina seguinte. Como obter todos os "filhos" da pagina onde estou? Agradecia ajuda, se possivel. Obg.
NunoDinis Posted February 11, 2013 at 04:07 PM Report #494884 Posted February 11, 2013 at 04:07 PM Mostra o trecho de código que tens para mudar o tamanho do texto. Estranha forma de vida que tem a capacidade de transformar comandos em mensagens de erro. ndsotware.org
tintim_22 Posted February 11, 2013 at 04:23 PM Author Report #494889 Posted February 11, 2013 at 04:23 PM Mostra o trecho de código que tens para mudar o tamanho do texto. public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() == R.id.menu_menosTamanho) { diminuirTamanho(); return true; } else return super.onOptionsItemSelected(item); } private void diminuirTamanho() { ViewPager vp = (ViewPager) findViewById(R.id.vpShow); View layout = vp.getChildAt(vp.getCurrentItem()); textSize-=2; TextView txt = (TextView) layout.findViewById(R.id.txt_); txt.setTextSize(textSize); }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now