Jump to content

[android] ViewFlipper: duvida que me atormenta o espirito


Recommended Posts

Posted

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.

=)

Posted

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.

Posted

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);

}

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.